2012-11-26 08:53:33 +00:00
|
|
|
Summary: SAX parser access API for Perl
|
2007-07-03 03:15:44 +00:00
|
|
|
Name: perl-XML-SAX
|
2011-10-07 13:05:15 +00:00
|
|
|
Version: 0.99
|
2014-08-27 16:32:14 +00:00
|
|
|
Release: 13%{?dist}
|
2007-07-03 03:15:44 +00:00
|
|
|
|
|
|
|
Group: Development/Libraries
|
2008-01-25 03:34:55 +00:00
|
|
|
License: GPL+ or Artistic
|
2007-07-03 03:15:44 +00:00
|
|
|
URL: http://search.cpan.org/dist/XML-SAX/
|
2012-11-26 11:28:14 +00:00
|
|
|
# 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
|
|
|
|
|
2012-08-15 16:16:25 +00:00
|
|
|
# Fix rt#20126
|
|
|
|
Patch0: perl-XML-SAX-0.99-rt20126.patch
|
2007-07-03 03:15:44 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2012-08-15 16:16:25 +00:00
|
|
|
BuildRequires: perl(base)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(Fatal)
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
BuildRequires: perl(File::Spec)
|
2012-11-26 08:53:33 +00:00
|
|
|
BuildRequires: perl(File::Temp)
|
2012-08-15 16:16:25 +00:00
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
BuildRequires: perl(Test)
|
2011-10-07 13:05:15 +00:00
|
|
|
BuildRequires: perl(XML::NamespaceSupport) >= 0.03
|
2011-10-17 12:45:57 +00:00
|
|
|
# XML::SAX::Base became independent package, BR just for test
|
|
|
|
BuildRequires: perl(XML::SAX::Base)
|
2012-08-15 16:16:25 +00:00
|
|
|
BuildRequires: perl(XML::SAX::Exception)
|
2007-07-03 03:15:44 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}'))
|
2012-11-26 11:28:14 +00:00
|
|
|
Requires: perl(LWP::UserAgent)
|
2004-09-09 10:23:39 +00:00
|
|
|
|
2012-03-17 17:09:48 +00:00
|
|
|
# Remove bogus XML::SAX::PurePerl* dependencies and unversioned provides
|
|
|
|
%global __requires_exclude ^perl\\(XML::SAX::PurePerl
|
|
|
|
%global __provides_exclude ^perl\\(XML::SAX::PurePerl\\)$
|
2004-09-09 10:23:39 +00:00
|
|
|
|
2004-09-09 10:22:44 +00:00
|
|
|
%description
|
2007-07-03 03:15:44 +00:00
|
|
|
XML::SAX consists of several framework classes for using and building
|
|
|
|
Perl SAX2 XML parsers, filters, and drivers. It is designed around the
|
|
|
|
need to be able to "plug in" different SAX parsers to an application
|
|
|
|
without requiring programmer intervention. Those of you familiar with
|
|
|
|
the DBI will be right at home. Some of the designs come from the Java
|
|
|
|
JAXP specification (SAX part), only without the javaness.
|
|
|
|
|
2004-09-09 10:22:44 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n XML-SAX-%{version}
|
2012-08-15 16:16:25 +00:00
|
|
|
%patch0 -p1
|
2004-09-09 10:22:44 +00:00
|
|
|
|
|
|
|
%build
|
2007-07-03 03:15:44 +00:00
|
|
|
echo N | %{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
2004-09-09 10:22:44 +00:00
|
|
|
|
|
|
|
%install
|
2012-11-26 08:53:33 +00:00
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
2007-07-03 03:15:44 +00:00
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
2004-09-24 22:44:14 +00:00
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
2007-07-03 03:15:44 +00:00
|
|
|
|
2004-09-24 22:44:14 +00:00
|
|
|
touch $RPM_BUILD_ROOT%{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
|
|
|
|
2007-07-03 03:15:44 +00:00
|
|
|
%check
|
2004-09-24 22:44:14 +00:00
|
|
|
make test
|
2004-09-09 10:22:44 +00:00
|
|
|
|
2012-03-17 17:09:48 +00:00
|
|
|
# See http://rhn.redhat.com/errata/RHBA-2010-0008.html regarding these scriptlets
|
|
|
|
# perl-XML-LibXML-1.58-6 is in EL 5.8 and possibly later EL-5 releases
|
2004-09-24 22:44:14 +00:00
|
|
|
%post
|
2009-11-12 12:05:42 +00:00
|
|
|
if [ ! -f "%{perl_vendorlib}/XML/SAX/ParserDetails.ini" ] ; then
|
2009-11-12 11:45:43 +00:00
|
|
|
perl -MXML::SAX -e \
|
|
|
|
'XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()' 2>/dev/null || :
|
2010-02-05 13:39:20 +00:00
|
|
|
else
|
|
|
|
cp -p "%{perl_vendorlib}/XML/SAX/ParserDetails.ini" "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup"
|
|
|
|
fi
|
|
|
|
|
|
|
|
%triggerun -- perl-XML-LibXML < 1.58-8
|
|
|
|
if [ -f "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" ] ; then
|
|
|
|
mv "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" "%{perl_vendorlib}/XML/SAX/ParserDetails.ini"
|
2009-11-12 11:45:43 +00:00
|
|
|
fi
|
2004-09-24 22:44:14 +00:00
|
|
|
|
|
|
|
%preun
|
2010-02-05 13:39:20 +00:00
|
|
|
# create backup of ParserDetails.ini, therefore user's configuration is used
|
2009-11-12 11:45:43 +00:00
|
|
|
if [ $1 -eq 0 ] ; then
|
2004-09-24 22:44:14 +00:00
|
|
|
perl -MXML::SAX -e \
|
2009-04-28 13:14:47 +00:00
|
|
|
'XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()' || :
|
2004-09-24 22:44:14 +00:00
|
|
|
fi
|
2010-02-05 13:39:20 +00:00
|
|
|
[ -f "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" ] && \
|
|
|
|
rm -rf "%{perl_vendorlib}/XML/SAX/ParserDetails.ini.backup" || :
|
2007-07-03 03:15:44 +00:00
|
|
|
|
2004-09-24 22:44:14 +00:00
|
|
|
%files
|
|
|
|
%doc Changes LICENSE README
|
2012-03-17 17:09:48 +00:00
|
|
|
%dir %{perl_vendorlib}/XML/
|
2004-09-24 22:44:14 +00:00
|
|
|
%{perl_vendorlib}/XML/SAX.pm
|
2012-03-17 17:09:48 +00:00
|
|
|
%dir %{perl_vendorlib}/XML/SAX/
|
2004-09-24 22:44:14 +00:00
|
|
|
%{perl_vendorlib}/XML/SAX/*.pm
|
2012-03-17 17:09:48 +00:00
|
|
|
%doc %{perl_vendorlib}/XML/SAX/*.pod
|
|
|
|
%{perl_vendorlib}/XML/SAX/PurePerl/
|
2007-07-03 03:15:44 +00:00
|
|
|
%{_mandir}/man3/XML::*.3pm*
|
2004-09-24 22:44:14 +00:00
|
|
|
%ghost %{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
2004-09-09 10:22:44 +00:00
|
|
|
|
2007-07-03 03:15:44 +00:00
|
|
|
|
2004-09-09 10:22:44 +00:00
|
|
|
%changelog
|
2014-08-27 16:32:14 +00:00
|
|
|
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.99-13
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-06-07 12:31:42 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-04 02:04:53 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-18 09:47:23 +00:00
|
|
|
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.99-10
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-14 16:21:28 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-11-26 11:28:14 +00:00
|
|
|
* Thu Nov 22 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.99-8
|
|
|
|
- Create script generate-tarball.sh which remove xmltest.xml from source
|
|
|
|
tarball
|
|
|
|
|
2012-11-26 08:53:33 +00:00
|
|
|
* 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
|
|
|
|
|
2012-08-15 16:16:25 +00:00
|
|
|
* Wed Aug 15 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.99-6
|
|
|
|
- Fixed incorrect parsing of comments (RT#20126).
|
|
|
|
- Specify all dependencies.
|
|
|
|
|
2012-07-20 22:37:56 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-11 18:30:54 +00:00
|
|
|
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.99-4
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-03-17 17:09:48 +00:00
|
|
|
* Sat Mar 17 2012 Paul Howarth <paul@city-fan.org> - 0.99-3
|
|
|
|
- Drop redundant runtime dependencies on perl(XML::LibXML) and
|
|
|
|
perl(XML::LibXML::Common), which cause circular build dependencies (#720974)
|
|
|
|
- Simplify provides and requires filters
|
|
|
|
- Don't need to remove empty directories from buildroot
|
|
|
|
- Mark POD files as %%doc
|
|
|
|
|
2012-01-13 20:33:05 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-07 13:05:15 +00:00
|
|
|
* Fri Oct 07 2011 Marcela Mašláňová <mmaslano@redhat.com> 0.99-1
|
|
|
|
- update to 0.99
|
|
|
|
|
2011-07-19 23:43:23 +00:00
|
|
|
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 0.96-15
|
|
|
|
- Perl mass rebuild
|
|
|
|
|
2011-06-24 12:05:26 +00:00
|
|
|
* Fri Jun 24 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-14
|
|
|
|
- fix macros to work with new macros
|
|
|
|
- clean spec
|
|
|
|
|
2011-02-09 10:41:41 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-01-24 10:33:02 +00:00
|
|
|
* Mon Jan 24 2011 Adrian Reber <adrian@lisas.de> - 0.96-12
|
|
|
|
- rebuild for ppc
|
|
|
|
|
2010-12-23 15:38:24 +00:00
|
|
|
* Thu Dec 23 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.96-11
|
|
|
|
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
|
2010-05-07 13:11:49 +00:00
|
|
|
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.96-10
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
2010-02-05 16:04:32 +00:00
|
|
|
* Fri Feb 5 2010 Stepan Kasal <skasal@redhat.com> - 0.96-9
|
|
|
|
- anchor the filtering regexps
|
|
|
|
|
2010-02-05 13:39:20 +00:00
|
|
|
* Fri Feb 5 2010 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-8
|
|
|
|
- XML-LibXML use triggers for XML::SAX update. Deleting of settings in
|
|
|
|
ParserDetails.ini is solved by post and preun part, which create backup.
|
|
|
|
|
2009-11-12 12:05:42 +00:00
|
|
|
* Thu Nov 12 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-7
|
|
|
|
- instead of path into post used perl_vendorlib macro
|
|
|
|
- rebuilt will be needed for perl-5.10.1
|
|
|
|
|
2009-11-12 11:45:43 +00:00
|
|
|
* Thu Nov 12 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-6
|
|
|
|
- post scriptlet needs to check whether the file is installed. When it isn't,
|
|
|
|
then it's needed call for adding PurePerl parser
|
|
|
|
http://perl-xml.sourceforge.net/faq/#parserdetails.ini
|
|
|
|
|
2009-10-19 12:12:55 +00:00
|
|
|
* Mon Oct 19 2009 Stepan Kasal <skasal@redhat.com> - 0.96-5
|
|
|
|
- use the filtering macros
|
|
|
|
|
2009-07-26 17:37:34 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-04-28 13:14:47 +00:00
|
|
|
* Tue Apr 28 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-3
|
|
|
|
- 478905 fix scriptlets
|
|
|
|
|
2009-02-27 04:44:31 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-11 14:34:38 +00:00
|
|
|
* Thu Dec 11 2008 Marcela Mašláňová <mmaslano@redhat.com> - 0.96-1
|
|
|
|
- update to 0.96, big leap in versioning
|
|
|
|
|
2008-03-02 15:44:42 +00:00
|
|
|
* Sun Mar 2 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.16-5
|
|
|
|
- Re-enable XML::LibXML BuildRequires
|
|
|
|
|
2008-02-28 13:17:08 +00:00
|
|
|
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.16-4
|
|
|
|
- Rebuild for perl 5.10 (again)
|
|
|
|
|
2008-01-28 21:03:03 +00:00
|
|
|
* Mon Jan 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.16-3.1
|
|
|
|
- temporarily disable BR against perl-XML-LibXML
|
|
|
|
|
2008-01-25 03:34:55 +00:00
|
|
|
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.16-3
|
|
|
|
- rebuild for new perl
|
|
|
|
|
2007-07-07 04:10:34 +00:00
|
|
|
* Sat Jul 07 2007 Robin Norwood <rnorwood@redhat.com> - 0.16-2
|
|
|
|
- Resolves: rhbz#247213
|
|
|
|
- Fix provides and requires scripts.
|
|
|
|
|
2007-07-03 03:15:44 +00:00
|
|
|
* Mon Jul 02 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.16-1
|
|
|
|
- Update to 0.16.
|
|
|
|
- Brings specfile closer to Fedora Perl template.
|
|
|
|
- Corrects Source0 URL (upstream maintainer has changed).
|
|
|
|
- Move Requires filter into spec, and add Provides filter.
|
|
|
|
|
2007-02-13 16:47:50 +00:00
|
|
|
* Tue Feb 13 2007 Robin Norwood <rnorwood@redhat.com> - 0.15-1
|
|
|
|
- New version: 0.15
|
|
|
|
|
2006-06-10 02:38:28 +00:00
|
|
|
* Fri Jun 09 2006 Jason Vas Dias <jvdias@redhat.com> - 0.14-2
|
|
|
|
- fix bug 194706: fails to build under (new!) mock
|
|
|
|
|
|
|
|
* Mon Jun 05 2006 Jason Vas Dias <jvdias@redhat.com> - 0.14-1
|
2006-06-06 00:14:32 +00:00
|
|
|
- upgrade to 0.14
|
|
|
|
|
2006-02-03 21:52:29 +00:00
|
|
|
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 0.13-1.1
|
|
|
|
- rebuild for new perl-5.8.8
|
|
|
|
|
|
|
|
* Mon Dec 19 2005 Jason Vas Dias <jvdias@redhat.com> - 0.13-1
|
2005-12-19 20:04:15 +00:00
|
|
|
- upgrade to 0.13
|
|
|
|
|
2005-12-17 02:18:14 +00:00
|
|
|
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt for new gcc
|
|
|
|
|
2005-12-16 23:24:38 +00:00
|
|
|
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt for new gcj
|
|
|
|
|
2004-09-24 22:44:14 +00:00
|
|
|
* Sun Apr 18 2004 Ville Skyttä <ville.skytta at iki.fi> - 0.12-7
|
|
|
|
- #121167
|
|
|
|
- Handle ParserDetails.ini parser registration.
|
|
|
|
- Require perl(:MODULE_COMPAT_*).
|
|
|
|
- Own installed directories.
|
|
|
|
|
2004-09-09 10:23:36 +00:00
|
|
|
* Wed Oct 22 2003 Chip Turner <cturner@redhat.com> - 0.12-1
|
|
|
|
- Specfile autogenerated.
|
2004-09-09 10:22:50 +00:00
|
|
|
|