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