%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
Name: perl-XML-LibXSLT
Version: 1.58
Release: 4%{?dist}
Summary: Perl module for interfacing to GNOME's libxslt
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/XML-LibXSLT/
Source0: http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-LibXSLT-1.58.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl >= 1:5.6.1, perl(XML::LibXML) >= 1.58
BuildRequires: libxslt-devel >= 1.0.6
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module is a fast XSLT library, based on the Gnome libxslt engine
that you can find at http://www.xmlsoft.org/XSLT/
%prep
%setup -q -n XML-LibXSLT-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check || :
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README benchmark.pl example
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/XML
%exclude %{perl_vendorarch}/XML/benchmark.pl
%{_mandir}/man3/*.3*
%changelog
* Thu Aug 16 2007 Zing <zing@fastmail.fm> - 1.58-4
- conform to Fedora Licensing Guidelines
* Fri Sep 8 2006 Zing <zing@fastmail.fm> - 1.58-3
- rebuild for FE6
* Tue Feb 14 2006 Zing <shishz@hotpop.com> - 1.58-2
- rebuild for FE5
* Wed Aug 17 2005 Zing <shishz@hotpop.com> - 1.58-1
- new upstream
- use dist macro
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt
* Sat Mar 5 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.57-3
- Drop pre-FC2 LD_RUN_PATH hack.
- Install benchmark.pl only as %%doc.
* Fri Feb 26 2005 Zing <shishz@hotpop.com> - 1.57-2
- QA from Ville Skyttä
- BuildRequires XML::LibXML >= 1.57
- BuildRequires libxslt-devel
- put benchmark.pl in %%doc
* Fri Feb 25 2005 Zing <shishz@hotpop.com> - 1.57-1
- First build.