Fix Requires. Create generate-tarball.sh
This commit is contained in:
parent
c8fc60b667
commit
734667dd3b
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
XML-SAX-0.96.tar.gz
|
||||
/XML-SAX-0.99.tar.gz
|
||||
/XML-SAX-0.99-nopatents.tar.gz
|
||||
|
14
generate-tarball.sh
Executable file
14
generate-tarball.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION=$1
|
||||
|
||||
tar -xzvf XML-SAX-$VERSION.tar.gz
|
||||
|
||||
# xmltest.xml could not be distributed due to copyright
|
||||
rm XML-SAX-$VERSION/testfiles/xmltest.xml
|
||||
rm XML-SAX-$VERSION/t/16large.t
|
||||
sed -i -e '/testfiles\/xmltest.xml/ d' XML-SAX-$VERSION/MANIFEST
|
||||
sed -i -e '/t\/16large.t/ d' XML-SAX-$VERSION/MANIFEST
|
||||
|
||||
tar -czvf XML-SAX-$VERSION-nopatents.tar.gz XML-SAX-$VERSION
|
||||
|
@ -1,12 +1,21 @@
|
||||
Summary: SAX parser access API for Perl
|
||||
Name: perl-XML-SAX
|
||||
Version: 0.99
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/XML-SAX/
|
||||
Source0: http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-%{version}.tar.gz
|
||||
# Original source
|
||||
# http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-%%{version}.tar.gz
|
||||
Source0: XML-SAX-%{version}-nopatents.tar.gz
|
||||
# XML-SAX contains patented code that we cannot ship. Therefore we use
|
||||
# this script to remove the patented code before shipping it.
|
||||
# Download the upstream tarball and invoke this script while in the
|
||||
# tarball's directory:
|
||||
# ./generate-tarball.sh %%{version}
|
||||
Source1: generate-tarball.sh
|
||||
|
||||
# Fix rt#20126
|
||||
Patch0: perl-XML-SAX-0.99-rt20126.patch
|
||||
|
||||
@ -28,7 +37,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)
|
||||
Requires: perl(LWP::UserAgent)
|
||||
|
||||
# Remove bogus XML::SAX::PurePerl* dependencies and unversioned provides
|
||||
%global __requires_exclude ^perl\\(XML::SAX::PurePerl
|
||||
@ -47,12 +56,6 @@ 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}
|
||||
@ -104,6 +107,10 @@ rm -rf "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" || :
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 22 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.99-8
|
||||
- Create script generate-tarball.sh which remove xmltest.xml from source
|
||||
tarball
|
||||
|
||||
* Thu Nov 22 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.99-7
|
||||
- Update dependencies and summary
|
||||
- Remove xmltest.xml due to copyright
|
||||
|
Loading…
Reference in New Issue
Block a user