diff --git a/.cvsignore b/.cvsignore index 2c2e263..38eefc1 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -XML-LibXML-1.31.tar.gz +XML-LibXML-1.56.tar.gz diff --git a/perl-XML-LibXML-1.53-nosaxinst.patch b/perl-XML-LibXML-1.53-nosaxinst.patch new file mode 100644 index 0000000..28640a5 --- /dev/null +++ b/perl-XML-LibXML-1.53-nosaxinst.patch @@ -0,0 +1,10 @@ +--- XML-LibXML-1.53/Makefile.PL.nosax 2002-10-21 11:09:52.000000000 -0400 ++++ XML-LibXML-1.53/Makefile.PL 2002-10-21 11:10:10.000000000 -0400 +@@ -162,7 +162,6 @@ + sub MY::install { + package MY; + my $script = shift->SUPER::install(@_); +- $script =~ s/install :: (.*)$/install :: $1 install_sax_driver/m; + $script .= <<"INSTALL"; + + install_sax_driver : diff --git a/perl-XML-LibXML-1.56-noextern.patch b/perl-XML-LibXML-1.56-noextern.patch new file mode 100644 index 0000000..83cbd32 --- /dev/null +++ b/perl-XML-LibXML-1.56-noextern.patch @@ -0,0 +1,22 @@ +--- XML-LibXML-1.56/LibXML.xs.extern 2004-02-27 13:15:10.000000000 -0500 ++++ XML-LibXML-1.56/LibXML.xs 2004-02-27 13:15:29.000000000 -0500 +@@ -70,13 +70,13 @@ + extern int xmlSubstituteEntitiesDefaultVal; + #define xmlSubstituteEntitiesDefaultValue xmlSubstituteEntitiesDefaultVal + #else +-LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue; +-LIBXML_DLL_IMPORT extern int xmlSubstituteEntitiesDefaultValue; ++LIBXML_DLL_IMPORT int xmlDoValidityCheckingDefaultValue; ++LIBXML_DLL_IMPORT int xmlSubstituteEntitiesDefaultValue; + #endif +-LIBXML_DLL_IMPORT extern int xmlGetWarningsDefaultValue; +-LIBXML_DLL_IMPORT extern int xmlKeepBlanksDefaultValue; +-LIBXML_DLL_IMPORT extern int xmlLoadExtDtdDefaultValue; +-LIBXML_DLL_IMPORT extern int xmlPedanticParserDefaultValue; ++LIBXML_DLL_IMPORT int xmlGetWarningsDefaultValue; ++LIBXML_DLL_IMPORT int xmlKeepBlanksDefaultValue; ++LIBXML_DLL_IMPORT int xmlLoadExtDtdDefaultValue; ++LIBXML_DLL_IMPORT int xmlPedanticParserDefaultValue; + + #define TEST_PERL_FLAG(flag) \ + SvTRUE(perl_get_sv(flag, FALSE)) ? 1 : 0 diff --git a/perl-XML-LibXML.spec b/perl-XML-LibXML.spec index 20ebdf8..1f16d0a 100644 --- a/perl-XML-LibXML.spec +++ b/perl-XML-LibXML.spec @@ -1,58 +1,58 @@ -%define perlver %(rpm -q perl --queryformat '%%{version}') - -Summary: Perl bindings for the GNOME libxml2 library +Summary: XML-LibXML Perl module Name: perl-XML-LibXML -Version: 1.31 -Release: 2 -Group: System Environment/Libraries -Vendor: Red Hat, Inc. -BuildRoot: %{_tmppath}/%{name}-buildroot -Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/XML-LibXML-%{version}.tar.gz -BuildPrereq: libxml2-devel >= 2.4.3, perl, perl-XML-SAX -Requires: libxml2 >= 2.4.3, perl >= %{perlver}, perl-XML-SAX +Version: 1.56 +Release: 7 License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/XML-LibXML/ +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)" }') +Source0: XML-LibXML-1.56.tar.gz +Patch0: perl-XML-LibXML-1.53-nosaxinst.patch +Patch1: perl-XML-LibXML-1.56-noextern.patch +BuildRequires: perl-XML-LibXML-Common perl-XML-SAX perl-XML-NamespaceSupport +Requires: perl-XML-LibXML-Common perl-XML-SAX perl-XML-NamespaceSupport %description -Perl bindings for the GNOME libxml2 library. +%{summary}. - -%define __find_provides /usr/lib/rpm/find-provides.perl -%define __find_requires /usr/lib/rpm/find-requires.perl %prep %setup -q -n XML-LibXML-%{version} +%patch0 -p1 +%patch1 -p1 %build -%{__perl} Makefile.PL < /dev/null -make +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor < /dev/null +make OPTIMIZE="$RPM_OPT_FLAGS" +make test || : %install -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT -make pure_install PREFIX=$RPM_BUILD_ROOT/usr +rm -rf $RPM_BUILD_ROOT +eval `perl '-V:installarchlib'` +mkdir -p $RPM_BUILD_ROOT$installarchlib +%makeinstall +rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist` [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress -find $RPM_BUILD_ROOT/usr -type f -print | - sed "s@^$RPM_BUILD_ROOT@@g" | - grep -v perllocal.pod | - grep -v "\.packlist" > filelist -if [ "$(cat filelist)X" = "X" ] ; then +find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ + sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist +if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" - exit -1 + exit 1 fi %clean -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT -%files -f filelist -%defattr (-,root,root) -%doc Changes PHISHS.CHANGES README +%files -f %{name}-%{version}-%{release}-filelist +%defattr(-,root,root,-) +%doc Changes LICENSE README %changelog -* Wed Apr 03 2002 Gary Benson 1.31-2 -- tweak perl dependency as suggested by cturner@redhat.com +* Fri Feb 27 2004 Chip Turner - 1.56-1 +- Specfile autogenerated. -* Wed Mar 20 2002 Gary Benson -- build against perl 5.6.1 - -* Mon Jan 14 2002 Gary Benson 1.31-1 -- initial revision. diff --git a/sources b/sources index 0ec96e7..445da60 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -680089366ccb5cc06372dee14042c5e2 XML-LibXML-1.31.tar.gz +e22a4d79e6afdc8965518bf8a3abb492 XML-LibXML-1.56.tar.gz