diff --git a/.cvsignore b/.cvsignore index e69de29..cf07c6f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +XML-Simple-2.12.tar.gz diff --git a/perl-XML-Simple.spec b/perl-XML-Simple.spec new file mode 100644 index 0000000..85d9f62 --- /dev/null +++ b/perl-XML-Simple.spec @@ -0,0 +1,88 @@ +%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} + +Name: perl-XML-Simple +Version: 2.12 +Release: 0.fdr.4.rh90 +Epoch: 0 +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-2.12.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +BuildRequires: perl(XML::SAX), perl(XML::NamespaceSupport), perl(XML::Parser) +BuildRequires: perl(Tie::IxHash), perl(Storable) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# 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,-) +%doc Changes README +%{perl_vendorlib}/XML +%{_mandir}/man3/*.3* + + +%changelog +* 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 index e69de29..44e987d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +001884c8f2f9ccbee61e5e72547309ad XML-Simple-2.12.tar.gz