%include /usr/lib/rpm/macros.perl %define pdir XML %define pnam LibXSLT Summary: XML::LibXSLT - Interface to the Gnome libxslt library Summary(pl): XML::LibXSLT - Interfejs do biblioteki libxslt z Gnome Name: perl-%{pdir}-%{pnam} Version: 1.53 Release: 1 License: GPL/Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz BuildRequires: libxslt-devel >= 1.0.6 BuildRequires: perl-XML-LibXML >= 1.30 BuildRequires: perl-devel >= 5.6.1 BuildRequires: rpm-perlprov >= 4.0.2-56 Requires: libxslt >= 1.0.6 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module is an interface to the gnome project's libxslt. This is an extremely good XSLT engine, highly compliant and also very fast. I have tests showing this to be more than twice as fast as Sablotron. %description -l pl Ten moduł jest interfejsem do libxslt z projektu GNOME. Jest to bardzo dobry silnik XSLT, o dużej zgodności ze standardem, a także bardzo szybki. Według testów jest ponad dwa razy szybszy od Sablotrona. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build perl Makefile.PL %{__make} OPTIMIZE="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} install example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_sitearch}/XML/LibXSLT.pm %{perl_sitearch}/XML/benchmark.pl %dir %{perl_sitearch}/auto/XML/LibXSLT %{perl_sitearch}/auto/XML/LibXSLT/LibXSLT.bs %attr(755,root,root) %{perl_sitearch}/auto/XML/LibXSLT/LibXSLT.so %{_mandir}/man3/* %{_examplesdir}/%{name}-%{version}