Update dependencies and Summary. Replace PERL_INSTALL_ROOT with DESTDIR

This commit is contained in:
Jitka Plesnikova 2012-11-26 09:53:33 +01:00
parent 9c5934b4b4
commit c8fc60b667

View File

@ -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 <jplesnik@redhat.com> - 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 <jplesnik@redhat.com> - 0.99-6
- Fixed incorrect parsing of comments (RT#20126).
- Specify all dependencies.