]>
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 |
33e5a24e | 11 | Name: ack |
7c730201 | 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 | |
89a99560 | 24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
7c730201 | 28 | Ack is designed as a replacement for 99% of the uses of grep. |
89a99560 | 29 | |
7c730201 | 30 | Ack searches the named input FILEs (or standard input if no files are |
31 | named, or the file name - is given) for lines containing a match to | |
32 | the given PATTERN. By default, ack prints the matching lines. | |
33 | ||
34 | Ack can also list files that would be searched, without actually | |
35 | searching them, to let you take advantage of ack's file-type filtering | |
36 | capabilities. | |
89a99560 | 37 | |
29efeb0a | 38 | %description -l pl.UTF-8 |
3b51bee7 ER |
39 | ack jest narzędziem podobnym do grepa, zaprojektowanym dla |
40 | programistów pracujących z dużymi drzewami różnorodnych plików. | |
89a99560 | 41 | |
3b51bee7 ER |
42 | ack jest napisane w czystym Perlu i korzysta z ptęgi wyrażeń |
43 | regularnych języka Perl. | |
89a99560 | 44 | |
33e5a24e | 45 | %package -n perl-ack |
46 | Summary: ack perl library | |
47 | Summary(pl.UTF-8): biblioteka ack dla języka perl | |
48 | Group: Development/Languages/Perl | |
49 | ||
50 | %description -n perl-ack | |
51 | ack perl library. | |
52 | ||
53 | %description -n perl-ack -l pl.UTF-8 | |
54 | ack perl library. | |
55 | ||
89a99560 | 56 | %prep |
7c730201 | 57 | %setup -q -n %{pdir}-%{version} |
89a99560 | 58 | |
59 | %build | |
7c730201 | 60 | %{__perl} Makefile.PL \ |
61 | INSTALLDIRS=vendor | |
62 | %{__make} \ | |
63 | CC="%{__cc}" \ | |
64 | OPTIMIZE="%{rpmcflags}" | |
65 | ||
66 | %{?with_tests:%{__make} test} | |
89a99560 | 67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
7c730201 | 70 | |
71 | %{__make} pure_install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
89a99560 | 73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
7c730201 | 79 | %doc Changes README TODO ack-help.txt ack-help-types.txt |
80 | %attr(755,root,root) %{_bindir}/ack | |
33e5a24e | 81 | %{_mandir}/man1/ack.1p* |
82 | ||
83 | %files -n perl-ack | |
84 | %defattr(644,root,root,755) | |
7c730201 | 85 | %{perl_vendorlib}/App/Ack.pm |
86 | %{perl_vendorlib}/App/Ack |