#
# Conditional build:
%bcond_without tests # do not perform "make test"
-#
-%include /usr/lib/rpm/macros.perl
-%define pdir XML
-%define pnam Filter-DOMFilter-LibXML
-Summary: XML::Filter::DOMFilter::LibXML - SAX Filter allowing DOM processing of selected subtrees
-#Summary(pl):
+
+%define pdir XML
+%define pnam Filter-DOMFilter-LibXML
+Summary: XML::Filter::DOMFilter::LibXML - SAX filter allowing DOM processing of selected subtrees
+Summary(pl.UTF-8): XML::Filter::DOMFilter::LibXML - filtr SAX pozwalający na przetwarzanie DOM wybranych poddrzew
Name: perl-XML-Filter-DOMFilter-LibXML
Version: 0.02
-Release: 1
+Release: 3
License: unknown
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 9089d02fbd5ff914070af4c3b9142f02
-BuildRequires: perl-devel >= 5.6
+URL: http://search.cpan.org/dist/XML-Filter-DOMFilter-LibXML/
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
%if %{with tests}
BuildRequires: perl-XML-LibXML >= 1.53
%description
This module provides a compromise between SAX and DOM processing by
-allowing to use DOM API to process only reasonably small parts of an XML
-document. It works as a SAX filter temporarily building small DOM trees
-around parts selected by given XPath expressions (with some limitations,
-see L</"LIMITATIONS">).
-
-# %description -l pl
-# TODO
+allowing to use DOM API to process only reasonably small parts of an
+XML document. It works as a SAX filter temporarily building small DOM
+trees around parts selected by given XPath expressions (with some
+limitations).
+
+%description -l pl.UTF-8
+Ten moduł daje kompromis pomiędzy przetwarzaniem SAX i DOM zezwalając
+na używanie API DOM do przetwarzania tylko odpowiednio małych części
+dokumentu XML. Działa jako filtr SAX tymczasowo budujący małe drzewa
+DOM dla części wybranych poprzez podane wyrażenia XPath (z pewnymi
+ograniczeniami).
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%files
%defattr(644,root,root,755)
-%{perl_vendorlib}/%{pdir}/*/*/*.pm
+%dir %{perl_vendorlib}/XML/Filter/DOMFilter
+%{perl_vendorlib}/XML/Filter/DOMFilter/*.pm
%{_mandir}/man3/*