]> git.pld-linux.org Git - packages/ack.git/blame - ack.spec
- updated to 2.26
[packages/ack.git] / ack.spec
CommitLineData
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"
81f268ee 6%bcond_with pty_tests # do not perform tests requiring a pty
7c730201 7#
3b51bee7 8%include /usr/lib/rpm/macros.perl
7c730201 9%define pdir ack
10Summary: grep-like text finder
89a99560 11Summary(pl.UTF-8): produkt grepopodobny
33e5a24e 12Name: ack
2e6173ec
AG
13Version: 2.26
14Release: 1
7c730201 15License: GPL v1+ or Artistic
16Group: Development/Languages/Perl
81f268ee 17Source0: http://www.cpan.org/modules/by-authors/id/P/PE/PETDANCE/%{name}-%{version}.tar.gz
2e6173ec 18# Source0-md5: f0fa77b0432bd07b6324893cb97e029a
7ce2421c 19Patch0: %{name}-deps.patch
81f268ee 20Patch1: %{name}-interactive-tests.patch
89a99560 21URL: http://betterthangrep.com/
e6d740cb 22Requires: perl-ack = %{version}
78a5158c 23%if %{with tests}
2e6173ec 24BuildRequires: perl-File-Next >= 1.16
81f268ee 25%{?with_pty_tests:BuildRequires: perl-IO-Tty}
78a5158c
KK
26BuildRequires: perl-Test-Simple >= 0.98
27%endif
7c730201 28BuildRequires: perl-devel >= 1:5.8.0
29BuildRequires: perl-perldoc
30BuildRequires: rpm-perlprov >= 4.1-13
89a99560 31BuildArch: noarch
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
7c730201 35Ack is designed as a replacement for 99% of the uses of grep.
89a99560 36
7c730201 37Ack searches the named input FILEs (or standard input if no files are
38named, or the file name - is given) for lines containing a match to
39the given PATTERN. By default, ack prints the matching lines.
40
41Ack can also list files that would be searched, without actually
42searching them, to let you take advantage of ack's file-type filtering
43capabilities.
89a99560 44
29efeb0a 45%description -l pl.UTF-8
3b51bee7
ER
46ack jest narzędziem podobnym do grepa, zaprojektowanym dla
47programistów pracujących z dużymi drzewami różnorodnych plików.
89a99560 48
561d9e5a
TP
49ack jest napisany w czystym perlu i korzysta z potęgi wyrażeń
50regularnych tego języka.
89a99560 51
33e5a24e 52%package -n perl-ack
53Summary: ack perl library
54Summary(pl.UTF-8): biblioteka ack dla języka perl
55Group: Development/Languages/Perl
56
57%description -n perl-ack
58ack perl library.
59
60%description -n perl-ack -l pl.UTF-8
61ack perl library.
62
89a99560 63%prep
7c730201 64%setup -q -n %{pdir}-%{version}
7ce2421c 65%patch0 -p0
81f268ee 66%patch1 -p0
89a99560 67
68%build
7c730201 69%{__perl} Makefile.PL \
70 INSTALLDIRS=vendor
71%{__make} \
72 CC="%{__cc}" \
73 OPTIMIZE="%{rpmcflags}"
74
81f268ee 75%{?with_tests:%{!?with_pty_tests: RUN_INTERACTIVE=0} %{__make} -j1 test}
89a99560 76
77%install
78rm -rf $RPM_BUILD_ROOT
7c730201 79
80%{__make} pure_install \
81 DESTDIR=$RPM_BUILD_ROOT
89a99560 82
83%clean
84rm -rf $RPM_BUILD_ROOT
85
86%files
87%defattr(644,root,root,755)
78a5158c 88%doc Changes README.md
7c730201 89%attr(755,root,root) %{_bindir}/ack
33e5a24e 90%{_mandir}/man1/ack.1p*
91
92%files -n perl-ack
93%defattr(644,root,root,755)
7c730201 94%{perl_vendorlib}/App/Ack.pm
95%{perl_vendorlib}/App/Ack
This page took 0.139785 seconds and 4 git commands to generate.