]> git.pld-linux.org Git - packages/ack.git/blame - ack.spec
- TODO: split /usr/share/perl* part into perl-ack subpackage
[packages/ack.git] / ack.spec
CommitLineData
eaa174a2 1# TODO:
2# - split /usr/share/perl* part into perl-ack subpackage
7c730201 3#
4# Conditional build:
5%bcond_without tests # do not perform "make test"
6#
3b51bee7 7%include /usr/lib/rpm/macros.perl
7c730201 8%define pdir ack
9Summary: grep-like text finder
89a99560 10Summary(pl.UTF-8): produkt grepopodobny
7c730201 11Name: perl-ack
12Version: 1.92
181dbcde 13Release: 1
7c730201 14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-authors/id/P/PE/PETDANCE/ack-%{version}.tar.gz
17# Source0-md5: c25b5a16d0a27386a75c91d531b86cea
89a99560 18URL: http://betterthangrep.com/
7c730201 19BuildRequires: perl-File-Next
20%{?with_tests:BuildRequires: perl-Test-Pod}
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: perl-perldoc
23BuildRequires: rpm-perlprov >= 4.1-13
24Obsoletes: perl-ack
89a99560 25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
7c730201 29Ack is designed as a replacement for 99% of the uses of grep.
89a99560 30
7c730201 31Ack searches the named input FILEs (or standard input if no files are
32named, or the file name - is given) for lines containing a match to
33the given PATTERN. By default, ack prints the matching lines.
34
35Ack can also list files that would be searched, without actually
36searching them, to let you take advantage of ack's file-type filtering
37capabilities.
89a99560 38
39%description -l pld.UTF-8
3b51bee7
ER
40ack jest narzędziem podobnym do grepa, zaprojektowanym dla
41programistów pracujących z dużymi drzewami różnorodnych plików.
89a99560 42
3b51bee7
ER
43ack jest napisane w czystym Perlu i korzysta z ptęgi wyrażeń
44regularnych języka Perl.
89a99560 45
46%prep
7c730201 47%setup -q -n %{pdir}-%{version}
89a99560 48
49%build
7c730201 50%{__perl} Makefile.PL \
51 INSTALLDIRS=vendor
52%{__make} \
53 CC="%{__cc}" \
54 OPTIMIZE="%{rpmcflags}"
55
56%{?with_tests:%{__make} test}
89a99560 57
58%install
59rm -rf $RPM_BUILD_ROOT
7c730201 60
61%{__make} pure_install \
62 DESTDIR=$RPM_BUILD_ROOT
89a99560 63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
7c730201 69%doc Changes README TODO ack-help.txt ack-help-types.txt
70%attr(755,root,root) %{_bindir}/ack
71%{perl_vendorlib}/App/Ack.pm
72%{perl_vendorlib}/App/Ack
73%{_mandir}/man1/ack.1p*
This page took 0.060149 seconds and 4 git commands to generate.