Summary: grep-like text finder
Summary(pl.UTF-8): produkt grepopodobny
Name: ack
-Version: 1.92
-Release: 3
+Version: 2.02
+Release: 1
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-authors/id/P/PE/PETDANCE/ack-%{version}.tar.gz
-# Source0-md5: c25b5a16d0a27386a75c91d531b86cea
+# Source0-md5: 9ae2c3939d0f069c6781ee5b6de47c27
+Patch0: %{name}-deps.patch
URL: http://betterthangrep.com/
-BuildRequires: perl-File-Next
-%{?with_tests:BuildRequires: perl-Test-Pod}
+%if %{with tests}
+BuildRequires: perl-File-Next >= 1.10
+BuildRequires: perl-Test-Simple >= 0.98
+%endif
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: perl-perldoc
BuildRequires: rpm-perlprov >= 4.1-13
-Requires: perl-ack = %{version}-%{release}
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q -n %{pdir}-%{version}
+%patch0 -p0
%build
%{__perl} Makefile.PL \
CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"
-%{?with_tests:%{__make} test}
+%{?with_tests:%{__make} -j1 test}
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc Changes README TODO ack-help.txt ack-help-types.txt
+%doc Changes README.md
%attr(755,root,root) %{_bindir}/ack
%{_mandir}/man1/ack.1p*