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