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