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