Summary: XML-SAX Perl module Name: perl-XML-SAX Version: 0.16 Release: 1%{?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 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) %description 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. %prep %setup -q -n XML-SAX-%{version} # Filter unwanted Requires: perl-XML-SAx should not Require perl(XML::SAX) cat << \EOF > %{name}-req #!/bin/sh %{__perl_requires} $* |\ sed -e '/perl(XML::SAX::PurePerl)/d' 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} $* |\ sed -e '/perl(XML::SAX::PurePerl)/d' EOF %define __perl_provides %{_builddir}/XML-SAX-%{version}/%{name}-prov chmod +x %{__perl_provides} %build echo N | %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT 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 ';' chmod -R u+w $RPM_BUILD_ROOT/* touch $RPM_BUILD_ROOT%{perl_vendorlib}/XML/SAX/ParserDetails.ini %check make test %clean rm -rf $RPM_BUILD_ROOT %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 %files %defattr(-,root,root,-) %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 %{_mandir}/man3/XML::*.3pm* %ghost %{perl_vendorlib}/XML/SAX/ParserDetails.ini %exclude %{perl_vendorlib}/XML/SAX/placeholder.pl %changelog * Mon Jul 02 2007 Jose Pedro Oliveira - 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. * Tue Feb 13 2007 Robin Norwood - 0.15-1 - New version: 0.15 * Fri Jun 09 2006 Jason Vas Dias - 0.14-2 - fix bug 194706: fails to build under (new!) mock * Mon Jun 05 2006 Jason Vas Dias - 0.14-1 - upgrade to 0.14 * Fri Feb 03 2006 Jason Vas Dias - 0.13-1.1 - rebuild for new perl-5.8.8 * Mon Dec 19 2005 Jason Vas Dias - 0.13-1 - upgrade to 0.13 * Fri Dec 16 2005 Jesse Keating - rebuilt for new gcc * Fri Dec 16 2005 Jesse Keating - rebuilt for new gcj * Sun Apr 18 2004 Ville Skyttä - 0.12-7 - #121167 - Handle ParserDetails.ini parser registration. - Require perl(:MODULE_COMPAT_*). - Own installed directories. * Wed Oct 22 2003 Chip Turner - 0.12-1 - Specfile autogenerated.