]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: XML::Simple - easy API to read/write XML (esp config files) |
77e6f15f | 9 | Summary(pl.UTF-8): XML::Simple - proste API do czytania/zapisu XML-a (zwł. plików konfiguracyjnych) |
71d283e5 | 10 | Name: perl-XML-Simple |
235423c8 JB |
11 | Version: 2.22 |
12 | Release: 1 | |
ea36a609 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
71d283e5 | 15 | Group: Development/Languages/Perl |
fe4291a9 | 16 | Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz |
235423c8 | 17 | # Source0-md5: 0914abddfce749453ed89b54029f2643 |
fe4291a9 | 18 | URL: http://search.cpan.org/dist/XML-Simple/ |
9839ad86 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
5205a357 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
d3dd0b92 | 21 | %if %{with tests} |
235423c8 JB |
22 | BuildRequires: perl-Test-Simple >= 0.88 |
23 | BuildRequires: perl-XML-NamespaceSupport >= 1.04 | |
24 | BuildRequires: perl-XML-SAX >= 0.15 | |
25 | BuildRequires: perl-XML-SAX-Expat | |
915d3f3b | 26 | %endif |
235423c8 JB |
27 | Requires: perl-XML-NamespaceSupport >= 1.04 |
28 | Requires: perl-XML-SAX >= 0.15 | |
29 | Requires: perl-XML-SAX-Expat | |
87c20048 | 30 | BuildArch: noarch |
71d283e5 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
bb1ebfde JB |
34 | The XML::Simple module provides a simple API layer on top of an |
35 | underlying XML parsing module (either XML::Parser or one of the SAX2 | |
36 | parser modules). | |
71d283e5 | 37 | |
c29c0972 JR |
38 | %description -l pl.UTF-8 |
39 | Moduł XML::Simple udostępnia prostą warstwę API w oparciu o zasadniczy | |
40 | moduł analizy XML-a (albo XML::Parser, albo jeden z modułów | |
41 | analizują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 | |
54 | rm -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 |
62 | rm -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* |