]>
Commit | Line | Data |
---|---|---|
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 |
7 | Summary: grep-like text finder | |
89a99560 | 8 | Summary(pl.UTF-8): produkt grepopodobny |
7c730201 | 9 | Name: perl-ack |
10 | Version: 1.92 | |
181dbcde | 11 | Release: 1 |
7c730201 | 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 | |
89a99560 | 16 | URL: http://betterthangrep.com/ |
7c730201 | 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 | |
89a99560 | 23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
7c730201 | 27 | Ack is designed as a replacement for 99% of the uses of grep. |
89a99560 | 28 | |
7c730201 | 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. | |
89a99560 | 36 | |
37 | %description -l pld.UTF-8 | |
3b51bee7 ER |
38 | ack jest narzędziem podobnym do grepa, zaprojektowanym dla |
39 | programistów pracujących z dużymi drzewami różnorodnych plików. | |
89a99560 | 40 | |
3b51bee7 ER |
41 | ack jest napisane w czystym Perlu i korzysta z ptęgi wyrażeń |
42 | regularnych 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 | |
57 | rm -rf $RPM_BUILD_ROOT | |
7c730201 | 58 | |
59 | %{__make} pure_install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
89a99560 | 61 | |
62 | %clean | |
63 | rm -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* |