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