1 | %define pkgname XML-Simple |
---|
2 | |
---|
3 | Summary: Easy API to maintain XML (esp config files). |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 2.18 |
---|
6 | Release: 2%{?_dist_release} |
---|
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 |
---|
54 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.18-2 |
---|
55 | - rebuild with perl-5.12.3 |
---|
56 | |
---|
57 | * Sat May 31 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18-1 |
---|
58 | - applied new versioning policy |
---|
59 | - rebuilt with perl-5.10.0-2 |
---|
60 | |
---|
61 | * Sun Sep 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.18-0vl1 |
---|
62 | - new upstream |
---|
63 | - changed Group to Development/Libraries |
---|
64 | |
---|
65 | * Thu Jul 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.14-0vl2 |
---|
66 | - changed Group to Development/Languages |
---|
67 | - installed to vendor_perl |
---|
68 | |
---|
69 | * Thu Mar 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14-0vl1 |
---|
70 | - initial build for Vine Linux |
---|
71 | |
---|
72 | * Thu Oct 30 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> |
---|
73 | - Updated to 2.09. |
---|
74 | |
---|
75 | * Mon Apr 7 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> |
---|
76 | - Update to 2.03. |
---|
77 | - Rewritten specfile with new macros. |
---|
78 | |
---|
79 | * Fri Jan 3 2003 Axel Thimm <Axel.Thimm@physik.fu-berlin.de> |
---|
80 | - Initial build (cpan2rpm). |
---|