#
# Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
-%define pdir XML
-%define pnam Mini
-Summary: XML::Mini - Perl implementation of the XML::Mini XML create/parse interface.
-#Summary(pl):
+%define pdir XML
+%define pnam Mini
+Summary: XML::Mini - Perl implementation of the XML::Mini XML create/parse interface
+Summary(pl.UTF-8): XML::Mini - implementacja perlowa interfejsu tworzącego/analizującego XML
Name: perl-XML-Mini
-Version: 1.2.7
+Version: 1.38
Release: 1
License: GPL v2+
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl-devel >= 5.6
+# Source0-md5: 0262295a6812f4ea1a4c13aefa9067c4
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
-%if %{!?_without_tests:1}0
-%endif
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
and create valid XML output with a tree-based hierarchy of elements.
The MiniXML API has both Perl and PHP implementations.
-# %description -l pl
-# TODO
+%description -l pl.UTF-8
+XML::Mini to zbiór klas Perla pozwalających na dostęp do danych XML
+oraz tworzenie poprawnego wyjścia w XML-u z drzewiastą hierarchią
+elementów. API MiniXML ma implementacje w Perlu i PHP.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc Changes
%{perl_vendorlib}/%{pdir}/*.pm
%{perl_vendorlib}/%{pdir}/%{pnam}
%{_mandir}/man3/*