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