From c8fc60b667057f6ed17171ebacd401733b5aa70a Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Mon, 26 Nov 2012 09:53:33 +0100 Subject: [PATCH] Update dependencies and Summary. Replace PERL_INSTALL_ROOT with DESTDIR --- perl-XML-SAX.spec | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/perl-XML-SAX.spec b/perl-XML-SAX.spec index 5082c43..ffadd2d 100644 --- a/perl-XML-SAX.spec +++ b/perl-XML-SAX.spec @@ -1,7 +1,7 @@ -Summary: XML-SAX Perl module +Summary: SAX parser access API for Perl Name: perl-XML-SAX Version: 0.99 -Release: 6%{?dist} +Release: 7%{?dist} Group: Development/Libraries License: GPL+ or Artistic @@ -20,6 +20,7 @@ BuildRequires: perl(Exporter) BuildRequires: perl(Fatal) BuildRequires: perl(File::Path) BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Temp) BuildRequires: perl(IO::File) BuildRequires: perl(Test) BuildRequires: perl(XML::NamespaceSupport) >= 0.03 @@ -27,6 +28,7 @@ BuildRequires: perl(XML::NamespaceSupport) >= 0.03 BuildRequires: perl(XML::SAX::Base) BuildRequires: perl(XML::SAX::Exception) Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}')) +Requires: perl(perl(LWP::UserAgent) # Remove bogus XML::SAX::PurePerl* dependencies and unversioned provides %global __requires_exclude ^perl\\(XML::SAX::PurePerl @@ -45,13 +47,18 @@ JAXP specification (SAX part), only without the javaness. %setup -q -n XML-SAX-%{version} %patch0 -p1 +# xmltest.xml could not be distributed due to copyright +rm testfiles/xmltest.xml +rm t/16large.t +sed -i -e '/testfiles\/xmltest.xml/ d' MANIFEST +sed -i -e '/t\/16large.t/ d' MANIFEST %build echo N | %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' chmod -R u+w $RPM_BUILD_ROOT/* @@ -97,6 +104,11 @@ rm -rf "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" || : %changelog +* Thu Nov 22 2012 Jitka Plesnikova - 0.99-7 +- Update dependencies and summary +- Remove xmltest.xml due to copyright +- Replace PERL_INSTALL_ROOT with DESTDIR + * Wed Aug 15 2012 Jitka Plesnikova - 0.99-6 - Fixed incorrect parsing of comments (RT#20126). - Specify all dependencies.