rpms/perl-XML-SAX/devel .cvsignore, 1.6, 1.7 perl-XML-SAX.spec, 1.12, 1.13 sources, 1.6, 1.7 filter-requires-xmlsax.sh, 1.1, NONE

Robin Norwood (rnorwood) fedora-extras-commits at redhat.com
Tue Jul 3 03:16:20 UTC 2007


Author: rnorwood

Update of /cvs/pkgs/rpms/perl-XML-SAX/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24507

Modified Files:
	.cvsignore perl-XML-SAX.spec sources 
Removed Files:
	filter-requires-xmlsax.sh 
Log Message:
Update to .16 - apply jpo's patch.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-XML-SAX/devel/.cvsignore,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- .cvsignore	13 Feb 2007 16:47:50 -0000	1.6
+++ .cvsignore	3 Jul 2007 03:15:44 -0000	1.7
@@ -1 +1 @@
-XML-SAX-0.15.tar.gz
+XML-SAX-0.16.tar.gz


Index: perl-XML-SAX.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-XML-SAX/devel/perl-XML-SAX.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- perl-XML-SAX.spec	13 Feb 2007 16:47:50 -0000	1.12
+++ perl-XML-SAX.spec	3 Jul 2007 03:15:44 -0000	1.13
@@ -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
+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)
 
-Summary: XML-SAX Perl module
-Name: perl-XML-SAX
-Version: 0.15
-Release: 1
-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}.
-%define __find_provides /usr/lib/rpm/find-provides.perl
-# %%define __find_requires /usr/lib/rpm/find-requires.perl
-%define __find_requires %{SOURCE1}
+Requires:       perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}'))
+Requires:       perl(XML::LibXML) perl(XML::LibXML::Common)
 
 
 %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
 %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 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
-make OPTIMIZE="$RPM_OPT_FLAGS"
+echo N | %{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install \
-  PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
-  INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
-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 ';'
+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 || :
+%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
@@ -63,6 +84,7 @@
     'XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()'
 fi
 
+
 %files
 %defattr(-,root,root,-)
 %doc Changes LICENSE README
@@ -72,11 +94,18 @@
 %{perl_vendorlib}/XML/SAX/*.pm
 %{perl_vendorlib}/XML/SAX/*.pod
 %{perl_vendorlib}/XML/SAX/PurePerl
-%{_mandir}/man3/XML::*.3*
+%{_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 <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 at redhat.com> - 0.15-1
 - New version: 0.15
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-XML-SAX/devel/sources,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- sources	13 Feb 2007 16:47:50 -0000	1.6
+++ sources	3 Jul 2007 03:15:44 -0000	1.7
@@ -1 +1 @@
-4b2276bafedc5a41cf50fea2296e31c4  XML-SAX-0.15.tar.gz
+4b07b6a9884f772ee07139b385661e9d  XML-SAX-0.16.tar.gz


--- filter-requires-xmlsax.sh DELETED ---




More information about the fedora-extras-commits mailing list