# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir XML %define pnam Simple Summary: XML::Simple - easy API to read/write XML (esp config files) Summary(pl.UTF-8): XML::Simple - proste API do czytania/zapisu XML-a (zwł. plików konfiguracyjnych) Name: perl-XML-Simple Version: 2.25 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: bb841dce889a26c89a1c2739970e9fbc URL: http://search.cpan.org/dist/XML-Simple/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl-Test-Simple >= 0.88 BuildRequires: perl-XML-NamespaceSupport >= 1.04 BuildRequires: perl-XML-SAX >= 0.15 BuildRequires: perl-XML-SAX-Expat %endif Requires: perl-XML-NamespaceSupport >= 1.04 Requires: perl-XML-SAX >= 0.15 Requires: perl-XML-SAX-Expat BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The XML::Simple module provides a simple API layer on top of an underlying XML parsing module (either XML::Parser or one of the SAX2 parser modules). %description -l pl.UTF-8 Moduł XML::Simple udostępnia prostą warstwę API w oparciu o zasadniczy moduł analizy XML-a (albo XML::Parser, albo jeden z modułów analizujących SAX2). %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/XML/Simple/FAQ.pod %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/XML/Simple.pm %{_mandir}/man3/XML::Simple.3pm* %{_mandir}/man3/XML::Simple::FAQ.3pm*