]> git.pld-linux.org Git - packages/ack.git/blame - ack.spec
- release 3
[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
bc3c2e65 13Release: 3
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
c5d7fdaf 24Requires: perl-ack = %{version}-%{release}
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
29efeb0a 39%description -l pl.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
33e5a24e 46%package -n perl-ack
47Summary: ack perl library
48Summary(pl.UTF-8): biblioteka ack dla języka perl
49Group: Development/Languages/Perl
50
51%description -n perl-ack
52ack perl library.
53
54%description -n perl-ack -l pl.UTF-8
55ack perl library.
56
89a99560 57%prep
7c730201 58%setup -q -n %{pdir}-%{version}
89a99560 59
60%build
7c730201 61%{__perl} Makefile.PL \
62 INSTALLDIRS=vendor
63%{__make} \
64 CC="%{__cc}" \
65 OPTIMIZE="%{rpmcflags}"
66
67%{?with_tests:%{__make} test}
89a99560 68
69%install
70rm -rf $RPM_BUILD_ROOT
7c730201 71
72%{__make} pure_install \
73 DESTDIR=$RPM_BUILD_ROOT
89a99560 74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%files
79%defattr(644,root,root,755)
7c730201 80%doc Changes README TODO ack-help.txt ack-help-types.txt
81%attr(755,root,root) %{_bindir}/ack
33e5a24e 82%{_mandir}/man1/ack.1p*
83
84%files -n perl-ack
85%defattr(644,root,root,755)
7c730201 86%{perl_vendorlib}/App/Ack.pm
87%{perl_vendorlib}/App/Ack
This page took 0.257699 seconds and 4 git commands to generate.