]> git.pld-linux.org Git - packages/ack.git/blame - ack.spec
- up to 2.02
[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
33e5a24e 11Name: ack
78a5158c 12Version: 2.02
3719e747 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
78a5158c 17# Source0-md5: 9ae2c3939d0f069c6781ee5b6de47c27
89a99560 18URL: http://betterthangrep.com/
78a5158c
KK
19%if %{with tests}
20BuildRequires: perl-File-Next >= 1.10
21BuildRequires: perl-Test-Simple >= 0.98
22%endif
7c730201 23BuildRequires: perl-devel >= 1:5.8.0
24BuildRequires: perl-perldoc
25BuildRequires: rpm-perlprov >= 4.1-13
89a99560 26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
7c730201 30Ack is designed as a replacement for 99% of the uses of grep.
89a99560 31
7c730201 32Ack searches the named input FILEs (or standard input if no files are
33named, or the file name - is given) for lines containing a match to
34the given PATTERN. By default, ack prints the matching lines.
35
36Ack can also list files that would be searched, without actually
37searching them, to let you take advantage of ack's file-type filtering
38capabilities.
89a99560 39
29efeb0a 40%description -l pl.UTF-8
3b51bee7
ER
41ack jest narzędziem podobnym do grepa, zaprojektowanym dla
42programistów pracujących z dużymi drzewami różnorodnych plików.
89a99560 43
3b51bee7
ER
44ack jest napisane w czystym Perlu i korzysta z ptęgi wyrażeń
45regularnych języka Perl.
89a99560 46
33e5a24e 47%package -n perl-ack
48Summary: ack perl library
49Summary(pl.UTF-8): biblioteka ack dla języka perl
50Group: Development/Languages/Perl
51
52%description -n perl-ack
53ack perl library.
54
55%description -n perl-ack -l pl.UTF-8
56ack perl library.
57
89a99560 58%prep
7c730201 59%setup -q -n %{pdir}-%{version}
89a99560 60
61%build
7c730201 62%{__perl} Makefile.PL \
63 INSTALLDIRS=vendor
64%{__make} \
65 CC="%{__cc}" \
66 OPTIMIZE="%{rpmcflags}"
67
78a5158c 68%{?with_tests:%{__make} -j1 test}
89a99560 69
70%install
71rm -rf $RPM_BUILD_ROOT
7c730201 72
73%{__make} pure_install \
74 DESTDIR=$RPM_BUILD_ROOT
89a99560 75
76%clean
77rm -rf $RPM_BUILD_ROOT
78
79%files
80%defattr(644,root,root,755)
78a5158c 81%doc Changes README.md
7c730201 82%attr(755,root,root) %{_bindir}/ack
33e5a24e 83%{_mandir}/man1/ack.1p*
84
85%files -n perl-ack
86%defattr(644,root,root,755)
7c730201 87%{perl_vendorlib}/App/Ack.pm
88%{perl_vendorlib}/App/Ack
This page took 0.052538 seconds and 4 git commands to generate.