2007-07-03 03:15:44 +00:00
|
|
|
Summary: XML-SAX Perl module
|
|
|
|
Name: perl-XML-SAX
|
|
|
|
Version: 0.16
|
2007-07-07 04:10:34 +00:00
|
|
|
Release: 2%{?dist}
|
2007-07-03 03:15:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl(XML::NamespaceSupport)
|
|
|
|
BuildRequires: perl(XML::LibXML) perl(XML::LibXML::Common)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}'))
|
|
|
|
Requires: perl(XML::LibXML) perl(XML::LibXML::Common)
|
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}
|
|
|
|
|
2007-07-07 04:10:34 +00:00
|
|
|
# Filter unwanted Requires: perl-XML-SAX has some poorly-structured
|
|
|
|
# packages that confuse RPM.
|
2007-07-03 03:15:44 +00:00
|
|
|
cat << \EOF > %{name}-req
|
|
|
|
#!/bin/sh
|
|
|
|
%{__perl_requires} $* |\
|
2007-07-07 04:10:34 +00:00
|
|
|
sed -e '/perl(XML::SAX::PurePerl::DTDDecls)/d' |\
|
|
|
|
sed -e '/perl(XML::SAX::PurePerl::DocType)/d' |\
|
|
|
|
sed -e '/perl(XML::SAX::PurePerl::EncodingDetect)/d' |\
|
|
|
|
sed -e '/perl(XML::SAX::PurePerl::XMLDecl)/d'
|
2007-07-03 03:15:44 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
%define __perl_requires %{_builddir}/XML-SAX-%{version}/%{name}-req
|
|
|
|
chmod +x %{__perl_requires}
|
|
|
|
|
|
|
|
|
|
|
|
# Filter unwanted Provides: perl-XML-SAX should not Provide an
|
|
|
|
# unversioned perl(XML::SAX) along with the
|
|
|
|
# versioned one
|
|
|
|
cat << \EOF > %{name}-prov
|
|
|
|
#!/bin/sh
|
|
|
|
%{__perl_provides} $* |\
|
2007-07-07 04:10:34 +00:00
|
|
|
sed -e '/perl(XML::SAX::PurePerl)$/d'
|
2007-07-03 03:15:44 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
%define __perl_provides %{_builddir}/XML-SAX-%{version}/%{name}-prov
|
|
|
|
chmod +x %{__perl_provides}
|
|
|
|
|
|
|
|
|
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
|
2004-09-09 10:23:36 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-07-03 03:15:44 +00:00
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
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
|
|
|
|
|
|
|
%clean
|
2004-09-09 10:23:36 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2004-09-09 10:22:44 +00:00
|
|
|
|
2007-07-03 03:15:44 +00:00
|
|
|
|
2004-09-24 22:44:14 +00:00
|
|
|
%post
|
|
|
|
perl -MXML::SAX -e \
|
|
|
|
'XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()' 2>/dev/null
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
perl -MXML::SAX -e \
|
|
|
|
'XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()'
|
|
|
|
fi
|
|
|
|
|
2007-07-03 03:15:44 +00:00
|
|
|
|
2004-09-24 22:44:14 +00:00
|
|
|
%files
|
2004-09-09 10:23:36 +00:00
|
|
|
%defattr(-,root,root,-)
|
2004-09-24 22:44:14 +00:00
|
|
|
%doc Changes LICENSE README
|
|
|
|
%dir %{perl_vendorlib}/XML
|
|
|
|
%{perl_vendorlib}/XML/SAX.pm
|
|
|
|
%dir %{perl_vendorlib}/XML/SAX
|
|
|
|
%{perl_vendorlib}/XML/SAX/*.pm
|
|
|
|
%{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
|
|
|
|
%exclude %{perl_vendorlib}/XML/SAX/placeholder.pl
|
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
|
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
|
|
|
|