# # Conditional build: %bcond_without tests # do not perform "make test" %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: 3 License: unknown Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 9089d02fbd5ff914070af4c3b9142f02 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 BuildRequires: perl-XML-LibXML-SAX %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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). %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} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %dir %{perl_vendorlib}/XML/Filter/DOMFilter %{perl_vendorlib}/XML/Filter/DOMFilter/*.pm %{_mandir}/man3/*