apply fixes from package review bz#226274.

epel9
Robin Norwood 17 years ago
parent ee51551543
commit 40040bbb32

@ -1,6 +1,6 @@
Name: perl-Parse-RecDescent Name: perl-Parse-RecDescent
Version: 1.95.1 Version: 1.95.1
Release: 2%{?dist} Release: 3%{?dist}
Summary: Parse-RecDescent Perl module Summary: Parse-RecDescent Perl module
Group: Development/Libraries Group: Development/Libraries
@ -10,8 +10,8 @@ Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Parse-RecDescent-v%{
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl >= 1:5.6.1
BuildRequires: perl(ExtUtils::MakeMaker), perl(version), perl(Test::More) BuildRequires: perl(ExtUtils::MakeMaker), perl(version), perl(Test::More)
BuildRequires: perl(Test::Pod)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description %description
@ -43,10 +43,12 @@ matching productions.
chmod 644 Changes README lib/Parse/* demo/* tutorial/* chmod 644 Changes README lib/Parse/* demo/* tutorial/*
%{__perl} -pi -e 's|^#!\s?/usr/local/bin/perl\b|#!%{__perl}|' demo/* %{__perl} -pi -e 's|^#!\s?/usr/local/bin/perl\b|#!%{__perl}|' demo/*
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
@ -54,6 +56,11 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/* chmod -R u+w $RPM_BUILD_ROOT/*
for file in demo/demo_dot.pl; do
iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
mv -f "${file}_" "$file"
done
%check %check
make test make test
@ -71,7 +78,15 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95-2 * Wed Nov 14 2007 Robin Norwood <rnorwood@redhat.com> - 1.95.1-3
- Apply fixes from package review:
- Remove BR: perl
- Use iconv to convert file to utf-8
- Include BR: perl(Test::Pod)
- Fix old changelog entry
- Resolves: bz#226274
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-2
- add BR: perl(version), perl(Test::More) - add BR: perl(version), perl(Test::More)
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-1 * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.95.1-1

Loading…
Cancel
Save