- Bring up to date with current Fedora.Extras perl spec template.
epel9
Warren Togami 20 years ago
parent 8343f0dcdb
commit 315df2140e

@ -1,16 +1,17 @@
%define _use_internal_dependency_generator 0 Name: perl-Parse-RecDescent
Version: 1.94
Name: perl-Parse-RecDescent Release: 5
Version: 1.94 Summary: Parse-RecDescent Perl module
Release: 5
Summary: Parse-RecDescent Perl module Group: Development/Libraries
License: distributable License: Artistic
Group: Development/Libraries URL: http://search.cpan.org/dist/Parse-RecDescent/
URL: http://search.cpan.org/search?mode=module&query=Parse%3a%3aRecDescent Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Parse-RecDescent-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl >= 0:5.00503
Source0: Parse-RecDescent-%{version}.tar.gz BuildArch: noarch
BuildArch: noarch BuildRequires: perl >= 1:5.6.1
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description %description
Parse::RecDescent incrementally generates top-down recursive-descent Parse::RecDescent incrementally generates top-down recursive-descent
@ -34,39 +35,40 @@ provides:
User-definable reduce-reduce conflict resolution via "scoring" of User-definable reduce-reduce conflict resolution via "scoring" of
matching productions. matching productions.
%prep %prep
%setup -q -n Parse-RecDescent-%{version} %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 %build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make make %{?_smp_mflags}
make test
%clean
rm -rf $RPM_BUILD_ROOT
%install %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 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 | \ %files
sed "s@^$RPM_BUILD_ROOT@@g" > Parse-RecDescent-%{version}-filelist %defattr(-,root,root,-)
if [ "$(cat Parse-RecDescent-%{version}-filelist)X" = "X" ] ; then %{perl_vendorlib}/Parse/
echo "ERROR: EMPTY FILE LIST" %{_mandir}/man3/*.3*
exit -1
fi
%files -f Parse-RecDescent-%{version}-filelist
%defattr(-,root,root)
%changelog %changelog
* Wed Mar 30 2005 Warren Togami <wtogami@redhat.com> * Thu Apr 21 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.94-5
- remove brp-compress - #155620
- Bring up to date with current Fedora.Extras perl spec template.
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.94-4 * Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.94-4
- rebuild - rebuild

Loading…
Cancel
Save