Browse Source

upgrading package: ack 2.999.08 -> 3.0.2

master
parent
commit
6d3c90b601
  1. 29
      ack/ack.spec

29
ack/ack.spec

@ -22,13 +22,13 @@
##
# package version
%define V_opkg 2.999.08
%define V_dist 2.999_08
%define V_opkg 3.0.2
%define V_dist 3.0.2
# package information
Name: ack
Summary: Regular Expression Based Line Matching
URL: http://betterthangrep.com/
URL: https://beyondgrep.com/
Vendor: Andy Lester
Packager: OpenPKG Project
Distribution: OpenPKG Community
@ -36,15 +36,14 @@ Class: EVAL
Group: Text
License: Artistic
Version: %{V_opkg}
Release: 20190521
Release: 20190814
# list of sources
Source0: http://ftp.hosteurope.de/pub/CPAN/authors/id/P/PE/PETDANCE/ack-%{V_dist}.tar.gz
Source0: https://beyondgrep.com/ack-v%{V_dist}
# build information
BuildPreReq: OpenPKG, openpkg >= 20160101, perl-openpkg
BuildPreReq: OpenPKG, openpkg >= 20160101
PreReq: OpenPKG, openpkg >= 20160101
BuildPreReq: perl
PreReq: perl
%description
@ -56,20 +55,22 @@ PreReq: perl
%track
prog ack = {
version = %{V_dist}
url = http://ftp.hosteurope.de/pub/CPAN/authors/id/P/PE/PETDANCE/
regex = ack-(__VER__)\.tar\.gz
url = https://beyondgrep.com/install/
regex = v(\d+\.\d+\.\d+)
}
%prep
%setup -q -n ack-%{V_dist}
%setup -q -T -c
%build
%install
%{l_prefix}/bin/perl-openpkg prepare
%{l_prefix}/bin/perl-openpkg configure build install
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin
%{l_shtool} install -c -m 755 \
-e 's;/usr/bin/env perl;%{l_prefix}/bin/perl;g' \
%{SOURCE ack-v%{V_dist}} $RPM_BUILD_ROOT%{l_prefix}/bin/ack
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files

Loading…
Cancel
Save