3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Build DOM Level 1 compliant document structures
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: e4c3fdd46e7ada0f9db326b493058d4d
16 BuildRequires: perl-devel >= 5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: perl-XML-RegExp
20 BuildRequires: perl-libxml >= 0.07
21 BuildRequires: perl-libwww
22 BuildRequires: perl-XML-Parser >= 2.30
24 Obsoletes: perl-libxml-enno
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 #%define _noautoreq 'perl(XML::DOM)' 'perl-(
31 This is a Perl extension to XML::Parser. It adds a new 'Style' to
32 XML::Parser, called 'Dom', that allows XML::Parser to build an Object
33 Oriented datastructure with a DOM Level 1 compliant interface.
34 However, there is a new DOM module, XML::GDOME which is under active
35 development and significantly faster than XML::DOM, since it is based
36 on the libgdome C library.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %dir %{perl_vendorlib}/XML/DOM
61 %{perl_vendorlib}/XML/DOM.pm
62 %{perl_vendorlib}/XML/DOM/*.pm
63 %{perl_vendorlib}/XML/Handler/*