diff --git a/perl-Parse-RecDescent.spec b/perl-Parse-RecDescent.spec index 15ee5dd..a8d6b3a 100644 --- a/perl-Parse-RecDescent.spec +++ b/perl-Parse-RecDescent.spec @@ -1,6 +1,6 @@ Name: perl-Parse-RecDescent Version: 1.95.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Parse-RecDescent Perl module 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) BuildArch: noarch -BuildRequires: perl >= 1:5.6.1 BuildRequires: perl(ExtUtils::MakeMaker), perl(version), perl(Test::More) +BuildRequires: perl(Test::Pod) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description @@ -43,10 +43,12 @@ matching productions. chmod 644 Changes README lib/Parse/* demo/* tutorial/* %{__perl} -pi -e 's|^#!\s?/usr/local/bin/perl\b|#!%{__perl}|' demo/* + %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} + %install rm -rf $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 ';' 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 make test @@ -71,7 +78,15 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Tue Oct 16 2007 Tom "spot" Callaway - 1.95-2 +* Wed Nov 14 2007 Robin Norwood - 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 - 1.95.1-2 - add BR: perl(version), perl(Test::More) * Tue Oct 16 2007 Tom "spot" Callaway - 1.95.1-1