3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: XML::Mini - Perl implementation of the XML::Mini XML create/parse interface.
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: perl-devel >= 5.6
17 BuildRequires: rpm-perlprov >= 4.1-13
18 %if %{!?_without_tests:1}0
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 XML::Mini is a set of Perl classes that allow you to access XML data
25 and create valid XML output with a tree-based hierarchy of elements.
26 The MiniXML API has both Perl and PHP implementations.
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
39 %{!?_without_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %{perl_vendorlib}/%{pdir}/*.pm
53 %{perl_vendorlib}/%{pdir}/%{pnam}