perl-XML-Simple-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. %define pkgname XML-Simple
  2. Summary: Easy API to maintain XML (esp config files).
  3. Name: perl-%{pkgname}
  4. Version: 2.18
  5. Release: 2%{?_dist_release}
  6. Group: Development/Libraries
  7. License: Artistic
  8. URL: http://search.cpan.org/author/GRANTM/%{pkgname}-%{version}/
  9. Source: http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/%{pkgname}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: perl(XML::Parser)
  12. BuildRequires: perl(XML::SAX)
  13. BuildRequires: perl(XML::NamespaceSupport)
  14. BuildRequires: perl(XML::LibXML)
  15. BuildRequires: perl(Test::More)
  16. BuildArch: noarch
  17. %description
  18. The XML::Simple module provides a simple API layer on top of an
  19. underlying XML parsing module (either XML::Parser or one of the SAX2
  20. parser modules). Two functions are exported: "XMLin()" and
  21. "XMLout()".
  22. %prep
  23. %setup -q -n %{pkgname}-%{version}
  24. %build
  25. perl Makefile.PL INSTALLDIRS=vendor
  26. make
  27. %install
  28. rm -rf %{buildroot}
  29. make install DESTDIR=$RPM_BUILD_ROOT
  30. rm -f %{buildroot}/%{perl_archlib}/perllocal.pod
  31. rm -rf %{buildroot}/%{perl_vendorarch}/auto/
  32. %check || :
  33. make test
  34. %clean
  35. rm -rf %{buildroot}
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc README Changes
  39. %{perl_vendorlib}/XML/Simple.pm
  40. %{perl_vendorlib}/XML/Simple
  41. %{_mandir}/man3/XML::Simple*.3pm*
  42. %changelog
  43. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.18-2
  44. - rebuild with perl-5.12.3
  45. * Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18-1
  46. - applied new versioning policy
  47. - rebuilt with perl-5.10.0-2
  48. * Sun Sep 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18-0vl1
  49. - new upstream
  50. - changed Group to Development/Libraries
  51. * Thu Jul 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14-0vl2
  52. - changed Group to Development/Languages
  53. - installed to vendor_perl
  54. * Thu Mar 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14-0vl1
  55. - initial build for Vine Linux
  56. * Thu Oct 30 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
  57. - Updated to 2.09.
  58. * Mon Apr 7 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
  59. - Update to 2.03.
  60. - Rewritten specfile with new macros.
  61. * Fri Jan 3 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
  62. - Initial build (cpan2rpm).