Author: pawelz Date: Sun Apr 4 19:35:07 2010 GMT Module: packages Tag: HEAD ---- Log message: - up to 0.92 - merged perl-ack.spec
---- Files affected: packages/ack: ack.spec (1.3 -> 1.4) ---- Diffs: ================================================================ Index: packages/ack/ack.spec diff -u packages/ack/ack.spec:1.3 packages/ack/ack.spec:1.4 --- packages/ack/ack.spec:1.3 Fri Dec 4 13:30:19 2009 +++ packages/ack/ack.spec Sun Apr 4 21:35:01 2010 @@ -1,27 +1,39 @@ # $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# %include /usr/lib/rpm/macros.perl -Summary: grep-like tool +%define pdir ack +Summary: grep-like text finder Summary(pl.UTF-8): produkt grepopodobny -Name: ack -Version: 1.90 +Name: perl-ack +Version: 1.92 Release: 1 -License: GPL -Group: Applications -Source0: http://betterthangrep.com/%{name}-standalone -# Source0-md5: d15d059166beff6103d2401aa2d783c7 +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-authors/id/P/PE/PETDANCE/ack-%{version}.tar.gz +# Source0-md5: c25b5a16d0a27386a75c91d531b86cea URL: http://betterthangrep.com/ -BuildRequires: perl-tools-pod -BuildRequires: rpm-perlprov -Suggests: perl-perldoc +BuildRequires: perl-File-Next +%{?with_tests:BuildRequires: perl-Test-Pod} +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: perl-perldoc +BuildRequires: rpm-perlprov >= 4.1-13 +Obsoletes: perl-ack BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -ack is a tool like grep, designed for programmers with large trees of -heterogeneous source code. +Ack is designed as a replacement for 99% of the uses of grep. -ack is written purely in Perl, and takes advantage of the power of -Perl's regular expressions. +Ack searches the named input FILEs (or standard input if no files are +named, or the file name - is given) for lines containing a match to +the given PATTERN. By default, ack prints the matching lines. + +Ack can also list files that would be searched, without actually +searching them, to let you take advantage of ack's file-type filtering +capabilities. %description -l pld.UTF-8 ack jest narzędziem podobnym do grepa, zaprojektowanym dla @@ -31,38 +43,55 @@ regularnych języka Perl. %prep -%setup -q -c -T +%setup -q -n %{pdir}-%{version} %build -pod2man %{SOURCE0} > ack.1 -pod2text %{SOURCE0} > ack.txt +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} \ + CC="%{__cc}" \ + OPTIMIZE="%{rpmcflags}" + +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} -install -p %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/%{name} -cp -a ack.1 $RPM_BUILD_ROOT%{_mandir}/man1/ack.1 + +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc ack.txt -%attr(755,root,root) %{_bindir}/%{name} -%{_mandir}/man1/ack.1* +%doc Changes README TODO ack-help.txt ack-help-types.txt +%attr(755,root,root) %{_bindir}/ack +%{perl_vendorlib}/App/Ack.pm +%{perl_vendorlib}/App/Ack +%{_mandir}/man1/ack.1p* -%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} PLD Team <[email protected]> All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ -Revision 1.3 2009/12/04 12:30:19 glen -- pldize +Revision 1.4 2010/04/04 19:35:01 pawelz +- up to 0.92 +- merged perl-ack.spec + +Revision 1.5 2010/01/21 14:40:05 sparky +- BR: perl-perldoc + +Revision 1.4 2010/01/21 09:55:17 amateja +- updated to 1.92 + +Revision 1.3 2009/11/30 21:08:48 draenog +- correct arch and license -Revision 1.2 2009/12/04 10:58:50 pawelz -- seems to work, rel 1 +Revision 1.2 2009/11/30 21:00:35 draenog +- cosmetics -Revision 1.1 2009/12/04 10:24:28 pawelz -- initial commit, perl-like tool +Revision 1.1 2009/11/30 20:56:59 draenog +- initial release ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ack/ack.spec?r1=1.3&r2=1.4&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
