Update to .16 - apply jpo's patch.
This commit is contained in:
parent
7e4c61b629
commit
9115b8a87f
@ -1 +1 @@
|
|||||||
XML-SAX-0.15.tar.gz
|
XML-SAX-0.16.tar.gz
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
/usr/lib/rpm/find-requires $* | grep -v 'perl(XML::SAX::PurePerl'
|
|
@ -1,58 +1,79 @@
|
|||||||
%define _use_internal_dependency_generator 0
|
|
||||||
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)}
|
|
||||||
|
|
||||||
Summary: XML-SAX Perl module
|
Summary: XML-SAX Perl module
|
||||||
Name: perl-XML-SAX
|
Name: perl-XML-SAX
|
||||||
Version: 0.15
|
Version: 0.16
|
||||||
Release: 1
|
Release: 1%{?dist}
|
||||||
License: GPL or Artistic
|
|
||||||
Group: Development/Libraries
|
|
||||||
URL: http://search.cpan.org/dist/XML-SAX/
|
|
||||||
Source: ftp://cpan.org/pub/CPAN/authors/id/M/MS/MSERGEANT/XML-SAX-%{version}.tar.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
||||||
BuildRequires: perl >= 2:5.8.0
|
|
||||||
Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }')
|
|
||||||
Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }')
|
|
||||||
Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }')
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}'))
|
|
||||||
Requires: perl-XML-LibXML perl-XML-LibXML-Common
|
|
||||||
Source1: filter-requires-xmlsax.sh
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: perl-XML-NamespaceSupport perl-XML-LibXML perl-XML-LibXML-Common
|
|
||||||
|
|
||||||
# Provide perl-specific find-{provides,requires}.
|
Group: Development/Libraries
|
||||||
%define __find_provides /usr/lib/rpm/find-provides.perl
|
License: GPL or Artistic
|
||||||
# %%define __find_requires /usr/lib/rpm/find-requires.perl
|
URL: http://search.cpan.org/dist/XML-SAX/
|
||||||
%define __find_requires %{SOURCE1}
|
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
|
%description
|
||||||
%{summary}.
|
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
|
%prep
|
||||||
%setup -q -n XML-SAX-%{version}
|
%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
|
%build
|
||||||
echo N | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
echo N | %{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
make OPTIMIZE="$RPM_OPT_FLAGS"
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make install \
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||||
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||||
INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||||
find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
|
|
||||||
-o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
|
|
||||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
touch $RPM_BUILD_ROOT%{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
touch $RPM_BUILD_ROOT%{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
||||||
|
|
||||||
%check || :
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
perl -MXML::SAX -e \
|
perl -MXML::SAX -e \
|
||||||
'XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()' 2>/dev/null
|
'XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()' 2>/dev/null
|
||||||
@ -63,6 +84,7 @@ if [ $1 -eq 0 ]; then
|
|||||||
'XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()'
|
'XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes LICENSE README
|
%doc Changes LICENSE README
|
||||||
@ -72,11 +94,18 @@ fi
|
|||||||
%{perl_vendorlib}/XML/SAX/*.pm
|
%{perl_vendorlib}/XML/SAX/*.pm
|
||||||
%{perl_vendorlib}/XML/SAX/*.pod
|
%{perl_vendorlib}/XML/SAX/*.pod
|
||||||
%{perl_vendorlib}/XML/SAX/PurePerl
|
%{perl_vendorlib}/XML/SAX/PurePerl
|
||||||
%{_mandir}/man3/XML::*.3*
|
%{_mandir}/man3/XML::*.3pm*
|
||||||
%ghost %{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
%ghost %{perl_vendorlib}/XML/SAX/ParserDetails.ini
|
||||||
%exclude %{perl_vendorlib}/XML/SAX/placeholder.pl
|
%exclude %{perl_vendorlib}/XML/SAX/placeholder.pl
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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.
|
||||||
|
|
||||||
* Tue Feb 13 2007 Robin Norwood <rnorwood@redhat.com> - 0.15-1
|
* Tue Feb 13 2007 Robin Norwood <rnorwood@redhat.com> - 0.15-1
|
||||||
- New version: 0.15
|
- New version: 0.15
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user