perl-XML-Simple-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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: 1%{?_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 May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18-1
  44. - applied new versioning policy
  45. - rebuilt with perl-5.10.0-2
  46. * Sun Sep 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18-0vl1
  47. - new upstream
  48. - changed Group to Development/Libraries
  49. * Thu Jul 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14-0vl2
  50. - changed Group to Development/Languages
  51. - installed to vendor_perl
  52. * Thu Mar 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14-0vl1
  53. - initial build for Vine Linux
  54. * Thu Oct 30 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
  55. - Updated to 2.09.
  56. * Mon Apr 7 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
  57. - Update to 2.03.
  58. - Rewritten specfile with new macros.
  59. * Fri Jan 3 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
  60. - Initial build (cpan2rpm).