3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam XSLT-Wrapper
8 Summary: XML::XSLT::Wrapper - Consistent interface to XSLT processors
9 Name: perl-XML-XSLT-Wrapper
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/M/MU/MULL/XML-XSLT-Wrapper-0.32.tar.gz
16 # Source0-md5: d08350e5d6a45d5e42ac7ab5fa80fd45
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 # found from inline code
23 %define _noautoreq 'perl(XML::Xalan::Transformer)'
26 Provides a consistent interface to various XSLT processors. Tries each
27 of a supplied list of processors in turn until one performs a successful
28 transform. If no list is given, tries all the processors it knows until
29 one works. Does its best to fail gracefully whenever a processor does
30 not work for some reason.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %{__perl} Makefile.PL \
40 %{?with_tests:%{__make} test}
43 rm -rf $RPM_BUILD_ROOT
46 DESTDIR=$RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc Changes README TODO
57 %dir %{perl_vendorlib}/XML/XSLT
58 %{perl_vendorlib}/XML/XSLT/*.pm
60 %{_examplesdir}/%{name}-%{version}