3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: grep-like text finder
8 Summary(pl.UTF-8): produkt grepopodobny
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/P/PE/PETDANCE/ack-%{version}.tar.gz
15 # Source0-md5: c25b5a16d0a27386a75c91d531b86cea
16 URL: http://betterthangrep.com/
17 BuildRequires: perl-File-Next
18 %{?with_tests:BuildRequires: perl-Test-Pod}
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl-perldoc
21 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Ack is designed as a replacement for 99% of the uses of grep.
29 Ack searches the named input FILEs (or standard input if no files are
30 named, or the file name - is given) for lines containing a match to
31 the given PATTERN. By default, ack prints the matching lines.
33 Ack can also list files that would be searched, without actually
34 searching them, to let you take advantage of ack's file-type filtering
37 %description -l pld.UTF-8
38 ack jest narzędziem podobnym do grepa, zaprojektowanym dla
39 programistów pracujących z dużymi drzewami różnorodnych plików.
41 ack jest napisane w czystym Perlu i korzysta z ptęgi wyrażeń
42 regularnych języka Perl.
45 %setup -q -n %{pdir}-%{version}
48 %{__perl} Makefile.PL \
52 OPTIMIZE="%{rpmcflags}"
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
59 %{__make} pure_install \
60 DESTDIR=$RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc Changes README TODO ack-help.txt ack-help-types.txt
68 %attr(755,root,root) %{_bindir}/ack
69 %{perl_vendorlib}/App/Ack.pm
70 %{perl_vendorlib}/App/Ack
71 %{_mandir}/man1/ack.1p*