perl-XML-Simple-vl.spec 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. %define pkgname XML-Simple
  2. Summary: Easy API to maintain XML (esp config files).
  3. Name: perl-%{pkgname}
  4. Version: 2.20
  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. * Tue Jul 1 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.20-1
  44. - new upstream release.
  45. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.18-2
  46. - rebuild with perl-5.12.3
  47. * Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18-1
  48. - applied new versioning policy
  49. - rebuilt with perl-5.10.0-2
  50. * Sun Sep 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18-0vl1
  51. - new upstream
  52. - changed Group to Development/Libraries
  53. * Thu Jul 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14-0vl2
  54. - changed Group to Development/Languages
  55. - installed to vendor_perl
  56. * Thu Mar 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14-0vl1
  57. - initial build for Vine Linux
  58. * Thu Oct 30 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
  59. - Updated to 2.09.
  60. * Mon Apr 7 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
  61. - Update to 2.03.
  62. - Rewritten specfile with new macros.
  63. * Fri Jan 3 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de>
  64. - Initial build (cpan2rpm).