2 # - split /usr/share/perl* part into perl-ack subpackage
5 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
9 Summary: grep-like text finder
10 Summary(pl.UTF-8): produkt grepopodobny
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-authors/id/P/PE/PETDANCE/ack-%{version}.tar.gz
17 # Source0-md5: 9ae2c3939d0f069c6781ee5b6de47c27
18 Patch0: %{name}-deps.patch
19 URL: http://betterthangrep.com/
21 BuildRequires: perl-File-Next >= 1.10
22 BuildRequires: perl-Test-Simple >= 0.98
24 BuildRequires: perl-devel >= 1:5.8.0
25 BuildRequires: perl-perldoc
26 BuildRequires: rpm-perlprov >= 4.1-13
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Ack is designed as a replacement for 99% of the uses of grep.
33 Ack searches the named input FILEs (or standard input if no files are
34 named, or the file name - is given) for lines containing a match to
35 the given PATTERN. By default, ack prints the matching lines.
37 Ack can also list files that would be searched, without actually
38 searching them, to let you take advantage of ack's file-type filtering
41 %description -l pl.UTF-8
42 ack jest narzędziem podobnym do grepa, zaprojektowanym dla
43 programistów pracujących z dużymi drzewami różnorodnych plików.
45 ack jest napisane w czystym Perlu i korzysta z ptęgi wyrażeń
46 regularnych języka Perl.
49 Summary: ack perl library
50 Summary(pl.UTF-8): biblioteka ack dla języka perl
51 Group: Development/Languages/Perl
53 %description -n perl-ack
56 %description -n perl-ack -l pl.UTF-8
60 %setup -q -n %{pdir}-%{version}
64 %{__perl} Makefile.PL \
68 OPTIMIZE="%{rpmcflags}"
70 %{?with_tests:%{__make} -j1 test}
73 rm -rf $RPM_BUILD_ROOT
75 %{__make} pure_install \
76 DESTDIR=$RPM_BUILD_ROOT
79 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
83 %doc Changes README.md
84 %attr(755,root,root) %{_bindir}/ack
85 %{_mandir}/man1/ack.1p*
88 %defattr(644,root,root,755)
89 %{perl_vendorlib}/App/Ack.pm
90 %{perl_vendorlib}/App/Ack