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