]> git.pld-linux.org Git - packages/perl-XML-Simple.git/blame - perl-XML-Simple.spec
- updated to 2.22
[packages/perl-XML-Simple.git] / perl-XML-Simple.spec
CommitLineData
915d3f3b 1#
2# Conditional build:
ea36a609 3%bcond_without tests # do not perform "make test"
915d3f3b 4#
0ba19c6a 5%include /usr/lib/rpm/macros.perl
6be009fd 6%define pdir XML
7%define pnam Simple
bb1ebfde 8Summary: XML::Simple - easy API to read/write XML (esp config files)
77e6f15f 9Summary(pl.UTF-8): XML::Simple - proste API do czytania/zapisu XML-a (zwł. plików konfiguracyjnych)
71d283e5 10Name: perl-XML-Simple
235423c8
JB
11Version: 2.22
12Release: 1
ea36a609 13# same as perl
14License: GPL v1+ or Artistic
71d283e5 15Group: Development/Languages/Perl
fe4291a9 16Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
235423c8 17# Source0-md5: 0914abddfce749453ed89b54029f2643
fe4291a9 18URL: http://search.cpan.org/dist/XML-Simple/
9839ad86 19BuildRequires: perl-devel >= 1:5.8.0
5205a357 20BuildRequires: rpm-perlprov >= 4.1-13
d3dd0b92 21%if %{with tests}
235423c8
JB
22BuildRequires: perl-Test-Simple >= 0.88
23BuildRequires: perl-XML-NamespaceSupport >= 1.04
24BuildRequires: perl-XML-SAX >= 0.15
25BuildRequires: perl-XML-SAX-Expat
915d3f3b 26%endif
235423c8
JB
27Requires: perl-XML-NamespaceSupport >= 1.04
28Requires: perl-XML-SAX >= 0.15
29Requires: perl-XML-SAX-Expat
87c20048 30BuildArch: noarch
71d283e5 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
bb1ebfde
JB
34The XML::Simple module provides a simple API layer on top of an
35underlying XML parsing module (either XML::Parser or one of the SAX2
36parser modules).
71d283e5 37
c29c0972
JR
38%description -l pl.UTF-8
39Moduł XML::Simple udostępnia prostą warstwę API w oparciu o zasadniczy
40moduł analizy XML-a (albo XML::Parser, albo jeden z modułów
41analizujących SAX2).
71d283e5 42
43%prep
0ba19c6a 44%setup -q -n %{pdir}-%{pnam}-%{version}
71d283e5 45
46%build
5205a357 47%{__perl} Makefile.PL \
097f6d34 48 INSTALLDIRS=vendor
71d283e5 49%{__make}
915d3f3b 50
d3dd0b92 51%{?with_tests:%{__make} test}
71d283e5 52
53%install
54rm -rf $RPM_BUILD_ROOT
55
80cd724d
JB
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
71d283e5 58
235423c8
JB
59%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/XML/Simple/FAQ.pod
60
71d283e5 61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%files
65%defattr(644,root,root,755)
eac98325 66%doc Changes README
5205a357 67%{perl_vendorlib}/XML/Simple.pm
235423c8
JB
68%{_mandir}/man3/XML::Simple.3pm*
69%{_mandir}/man3/XML::Simple::FAQ.3pm*
This page took 0.157697 seconds and 4 git commands to generate.