From e22f1f70cc8f61e2620c7677f6ba708b19290034 Mon Sep 17 00:00:00 2001 From: Robin Norwood Date: Wed, 4 Jul 2007 16:14:33 +0000 Subject: [PATCH] import to devel branch --- Makefile | 21 ++++++++ perl-XML-Simple.spec | 118 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 140 insertions(+) create mode 100644 Makefile create mode 100644 perl-XML-Simple.spec create mode 100644 sources diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4d4630a --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: perl-XML-Simple +# $Id$ +NAME := perl-XML-Simple +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/perl-XML-Simple.spec b/perl-XML-Simple.spec new file mode 100644 index 0000000..b2a9047 --- /dev/null +++ b/perl-XML-Simple.spec @@ -0,0 +1,118 @@ +Name: perl-XML-Simple +Version: 2.16 +Release: 3%{?dist} +Summary: Easy API to maintain XML in Perl + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/XML-Simple/ +Source0: http://www.cpan.org/authors/id/G/GR/GRANTM/XML-Simple-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +#BuildRequires: perl(Tie::IxHash), perl(XML::NamespaceSupport) +BuildRequires: perl(XML::LibXML) perl(XML::LibXML::Common) perl(XML::Parser), perl(XML::SAX) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(XML::Parser) +# XML-SAX-ExpatXS up to 0.98 has known namespace bugs, and will cause the +# tests to fail if it is installed as the default SAX parser. +BuildConflicts: perl(XML::SAX::ExpatXS) + +%description +The XML::Simple module provides a simple API layer on top of an +underlying XML parsing module (either XML::Parser or one of the SAX2 +parser modules). + + +%prep +%setup -q -n XML-Simple-%{version} + + +%build +%{__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 -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +# For license text(s), see the perl package. +%doc Changes README +%{perl_vendorlib}/XML/ +%{_mandir}/man3/*.3* + + +%changelog +* Tue Dec 05 2006 Robin Norwood - 2.16-2 +- Fix incorrect 'Release' tag - removed extra dot. + +* Sat Dec 02 2006 Robin Norwood - 2.16-1 +- Upgrade to latest CPAN version: 2.16 + +* Wed Jun 7 2006 Jason Vas Dias - 2.14-4 +- fix bug 191911: make test fails when default Parser is XML::SAX::PurePerl - + succeeds when default Parser is XML::LibXML::SAX - + +BuildRequires: perl(XML::LibXML) perl(XML::LibXML::Common) + +* Wed Jun 7 2006 Matthias Clasen - 2.14-2.2 +- Require perl-XML-Parser (#193985) + +* Fri Feb 03 2006 Jason Vas Dias - 2.14-2.1 +- rebuild for new perl-5.8.8 + +* Tue Jan 17 2006 Matthias Clasen - 2.14-2 +- Pull perl-XML-Simple from Extras into Core + for dependency reasons + +* Fri Sep 9 2005 Jose Pedro Oliveira - 2.14-1 +- Update to 2.14. +- Added the dist tag. + +* Fri Apr 7 2005 Michael Schwendt - 2.13-2 +- rebuilt + +* Sat Nov 27 2004 Jose Pedro Oliveira - 0:2.13-1 +- Update to 2.13. + +* Wed May 12 2004 Jose Pedro Oliveira - 0:2.12-0.fdr.4 +- Avoid creation of the perllocal.pod file (make pure_install). + +* Thu May 6 2004 Jose Pedro Oliveira - 0:2.12-0.fdr.3 +- build requirement for perl < 5.8.0 - perl(Storable) + +* Thu May 6 2004 Jose Pedro Oliveira - 0:2.12-0.fdr.2 +- missing $RPM_OPT_FLAGS in the %build section. +- optional test module as build requirement perl(Tie::IxHash). + +* Mon Apr 26 2004 Ville Skyttä - 0:2.12-0.fdr.1 +- Update to 2.12. +- Require perl(:MODULE_COMPAT_*). + +* Sun Mar 14 2004 Ville Skyttä - 0:2.11-0.fdr.1 +- Update to 2.11. +- Reduce directory ownership bloat. + +* Tue Nov 18 2003 Ville Skyttä - 0:2.09-0.fdr.2 +- Use INSTALLARCHLIB workaround in %%install. + +* Wed Sep 10 2003 Ville Skyttä - 0:2.09-0.fdr.1 +- Update to 2.09. + +* Wed Sep 3 2003 Ville Skyttä - 0:2.08-0.fdr.1 +- First build. diff --git a/sources b/sources new file mode 100644 index 0000000..8946b58 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +80c0980ff63d77b871de41acc7175df7 XML-Simple-2.16.tar.gz