From 315df2140eb222a871ad91333b730e839d102236 Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Thu, 21 Apr 2005 23:58:16 +0000 Subject: [PATCH] - #155620 - Bring up to date with current Fedora.Extras perl spec template. --- perl-Parse-RecDescent.spec | 68 ++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/perl-Parse-RecDescent.spec b/perl-Parse-RecDescent.spec index 598c4cf..720b3f7 100644 --- a/perl-Parse-RecDescent.spec +++ b/perl-Parse-RecDescent.spec @@ -1,16 +1,17 @@ -%define _use_internal_dependency_generator 0 - -Name: perl-Parse-RecDescent -Version: 1.94 -Release: 5 -Summary: Parse-RecDescent Perl module -License: distributable -Group: Development/Libraries -URL: http://search.cpan.org/search?mode=module&query=Parse%3a%3aRecDescent -BuildRoot: %{_tmppath}/%{name}-root -BuildRequires: perl >= 0:5.00503 -Source0: Parse-RecDescent-%{version}.tar.gz -BuildArch: noarch +Name: perl-Parse-RecDescent +Version: 1.94 +Release: 5 +Summary: Parse-RecDescent Perl module + +Group: Development/Libraries +License: Artistic +URL: http://search.cpan.org/dist/Parse-RecDescent/ +Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Parse-RecDescent-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Parse::RecDescent incrementally generates top-down recursive-descent @@ -34,39 +35,40 @@ provides: User-definable reduce-reduce conflict resolution via "scoring" of matching productions. + %prep %setup -q -n Parse-RecDescent-%{version} +chmod 644 Changes README lib/Parse/* demo/* tutorial/* +%{__perl} -pi -e 's|^#!\s?/usr/local/bin/perl\b|#!%{__perl}|' demo/* %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor -make -make test +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} -%clean -rm -rf $RPM_BUILD_ROOT %install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* +%check || : +make test + +%clean rm -rf $RPM_BUILD_ROOT -eval `perl '-V:installarchlib'` -mkdir -p $RPM_BUILD_ROOT/$installarchlib -make install -find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -fv {} \; -find $RPM_BUILD_ROOT \( -name '*Balanced*' \) -exec rm -fv {} \; -find $RPM_BUILD_ROOT/usr -type f -print | \ - sed "s@^$RPM_BUILD_ROOT@@g" > Parse-RecDescent-%{version}-filelist -if [ "$(cat Parse-RecDescent-%{version}-filelist)X" = "X" ] ; then - echo "ERROR: EMPTY FILE LIST" - exit -1 -fi +%files +%defattr(-,root,root,-) +%{perl_vendorlib}/Parse/ +%{_mandir}/man3/*.3* -%files -f Parse-RecDescent-%{version}-filelist -%defattr(-,root,root) %changelog -* Wed Mar 30 2005 Warren Togami -- remove brp-compress +* Thu Apr 21 2005 Jose Pedro Oliveira - 1.94-5 +- #155620 +- Bring up to date with current Fedora.Extras perl spec template. * Wed Sep 22 2004 Chip Turner 1.94-4 - rebuild