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