]> git.pld-linux.org Git - packages/perl-XML-Filter-DOMFilter-LibXML.git/blob - perl-XML-Filter-DOMFilter-LibXML.spec
fab0131a13be4db19e748968fb4642fc05429a25
[packages/perl-XML-Filter-DOMFilter-LibXML.git] / perl-XML-Filter-DOMFilter-LibXML.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    XML
7 %define pnam    Filter-DOMFilter-LibXML
8 Summary:        XML::Filter::DOMFilter::LibXML - SAX Filter allowing DOM processing of selected subtrees
9 #Summary(pl):   
10 Name:           perl-XML-Filter-DOMFilter-LibXML
11 Version:        0.02
12 Release:        1
13 License:        unknown
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  9089d02fbd5ff914070af4c3b9142f02
17 BuildRequires:  perl-devel >= 5.6
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-XML-LibXML >= 1.53
21 BuildRequires:  perl-XML-LibXML-SAX
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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 XML
29 document. It works as a SAX filter temporarily building small DOM trees
30 around parts selected by given XPath expressions (with some limitations,
31 see L</"LIMITATIONS">).
32
33 # %description -l pl
34 # TODO
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %{perl_vendorlib}/%{pdir}/*/*/*.pm
58 %{_mandir}/man3/*
This page took 0.042826 seconds and 3 git commands to generate.