3 %bcond_without tests # do not perform "make test"
6 %define pnam Filter-DOMFilter-LibXML
7 Summary: XML::Filter::DOMFilter::LibXML - SAX filter allowing DOM processing of selected subtrees
8 Summary(pl.UTF-8): XML::Filter::DOMFilter::LibXML - filtr SAX pozwalający na przetwarzanie DOM wybranych poddrzew
9 Name: perl-XML-Filter-DOMFilter-LibXML
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 9089d02fbd5ff914070af4c3b9142f02
16 URL: http://search.cpan.org/dist/XML-Filter-DOMFilter-LibXML/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-XML-LibXML >= 1.53
21 BuildRequires: perl-XML-LibXML-SAX
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module provides a compromise between SAX and DOM processing by
28 allowing to use DOM API to process only reasonably small parts of an
29 XML document. It works as a SAX filter temporarily building small DOM
30 trees around parts selected by given XPath expressions (with some
33 %description -l pl.UTF-8
34 Ten moduł daje kompromis pomiędzy przetwarzaniem SAX i DOM zezwalając
35 na używanie API DOM do przetwarzania tylko odpowiednio małych części
36 dokumentu XML. Działa jako filtr SAX tymczasowo budujący małe drzewa
37 DOM dla części wybranych poprzez podane wyrażenia XPath (z pewnymi
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %dir %{perl_vendorlib}/XML/Filter/DOMFilter
62 %{perl_vendorlib}/XML/Filter/DOMFilter/*.pm