3 %bcond_without tests # do not perform "make test"
7 Summary: XML::LibXSLT - interface to the GNOME libxslt library
8 Summary(pl.UTF-8): XML::LibXSLT - interfejs do biblioteki libxslt z GNOME
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 1a2b2295c4e0088015cf5ea947da5579
17 URL: https://metacpan.org/release/XML-LibXSLT
18 BuildRequires: libxslt-devel >= 1.1.28
19 BuildRequires: perl-XML-LibXML >= 1.75
20 BuildRequires: perl-devel >= 1:5.8.1
21 BuildRequires: pkgconfig
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: rpmbuild(macros) >= 1.745
25 %if "%(perl -MXML::LibXML -e 'print XML::LibXML::LIBXML_VERSION == XML::LibXML::LIBXML_RUNTIME_VERSION || 0' 2>/dev/null)" == "0"
26 BuildRequires: REBUILD-perl-XML-LibXML
29 Requires: libxslt >= 1.1.28
30 Requires: perl-XML-LibXML >= 1.70
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 This module is an interface to the GNOME project's libxslt. This is an
35 extremely good XSLT engine, highly compliant and also very fast. I
36 have tests showing this to be more than twice as fast as Sablotron.
38 %description -l pl.UTF-8
39 Ten moduł jest interfejsem do libxslt z projektu GNOME. Jest to bardzo
40 dobry silnik XSLT, o dużej zgodności ze standardem, a także bardzo
41 szybki. Według testów jest ponad dwa razy szybszy od Sablotrona.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 OPTIMIZE="%{rpmcflags}"
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 install example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
69 %doc Changes LICENSE README
70 %{perl_vendorarch}/XML/LibXSLT.pm
71 %dir %{perl_vendorarch}/auto/XML/LibXSLT
72 %attr(755,root,root) %{perl_vendorarch}/auto/XML/LibXSLT/LibXSLT.so
73 %{_mandir}/man3/XML::LibXSLT.3pm*
74 %{_examplesdir}/%{name}-%{version}