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