Author: qboosh Date: Fri Feb 25 18:14:57 2011 GMT Module: packages Tag: HEAD ---- Log message: - new
---- Files affected: packages/perl-PPIx-Regexp: perl-PPIx-Regexp.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/perl-PPIx-Regexp/perl-PPIx-Regexp.spec diff -u /dev/null packages/perl-PPIx-Regexp/perl-PPIx-Regexp.spec:1.1 --- /dev/null Fri Feb 25 19:14:57 2011 +++ packages/perl-PPIx-Regexp/perl-PPIx-Regexp.spec Fri Feb 25 19:14:52 2011 @@ -0,0 +1,80 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%define pdir PPIx +%define pnam Regexp +%include /usr/lib/rpm/macros.perl +Summary: PPIx::Regexp - represent a regular expression of some sort +Summary(pl.UTF-8): PPIx::Regexp - reprezentacja pewnego rodzaju wyrażenia regularnego +Name: perl-PPIx-Regexp +Version: 0.018 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-authors/id/W/WY/WYANT/PPIx-Regexp-%{version}.tar.gz +# Source0-md5: 87cdd26b813067ae6e6fe565b9b01f53 +URL: http://search.cpan.org/dist/PPIx-Regexp/ +BuildRequires: perl-Module-Build +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl-List-MoreUtils +BuildRequires: perl-PPI >= 1.117 +BuildRequires: perl-Task-Weaken +BuildRequires: perl-Test-Simple >= 0.40 +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This package parses regular expressions as they appear in Perl +scripts, generating a structure similar to the structure generated by +PPI when it parses a Perl script, and navigable in much the same way. + +%description -l pl.UTF-8 +Ten pakiet analizuje wyrażenia regularne w takiej postaci, w jakiej +występują w skryptach perlowych, tworząc strukturę podobną do +struktury generowanej przez PPI przy analizie skryptu perlowego i +dającą się przeglądać w bardzo podobny sposób. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Build.PL \ + destdir=$RPM_BUILD_ROOT \ + installdirs=vendor +./Build + +%{?with_tests:./Build test} + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a eg/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/PPIx/Regexp.pm +%{perl_vendorlib}/PPIx/Regexp +%{_mandir}/man3/PPIx::Regexp*.3pm* +%{_examplesdir}/%{name}-%{version} + +%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.1 2011/02/25 18:14:52 qboosh +- new ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
