]> git.pld-linux.org Git - packages/perl-XML-LibXSLT.git/blobdiff - perl-XML-LibXSLT.spec
- release 2
[packages/perl-XML-LibXSLT.git] / perl-XML-LibXSLT.spec
index 4dd0992ea90306627ab91f6dcf5f81655629c93e..93df18c2998e7c21980fe5e063f5703bdfc06708 100644 (file)
@@ -1,59 +1,70 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-
-%define        pdir    XML
-%define        pnam    LibXSLT
-
-Summary:       XML-LibXSLT perl module
-Summary(pl):   Modu³ perla XML-LibXSLT
-Name:          perl-%{pdir}-%{pnam}
-Version:       1.31
-Release:       1
-License:       GPL
+%define                pdir    XML
+%define                pnam    LibXSLT
+Summary:       XML::LibXSLT - interface to the GNOME libxslt library
+Summary(pl.UTF-8):     XML::LibXSLT - interfejs do biblioteki libxslt z GNOME
+Name:          perl-XML-LibXSLT
+Version:       1.70
+Release:       2
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 4.0.2-56
-BuildRequires: perl-devel >= 5.6.1
-BuildRequires: perl-XML-LibXML >= 1.30
+Source0:       http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: c63a7913999de076e5c911810f69b392
+URL:           http://search.cpan.org/dist/XML-LibXSLT/
 BuildRequires: libxslt-devel >= 1.0.6
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: perl-XML-LibXML >= 1.60
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
 Requires:      libxslt >= 1.0.6
+Requires:      perl-XML-LibXML >= 1.57
+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.
-have tests showing this to be more than twice as fast as Sablotron.
+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.
+%description -l pl.UTF-8
+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}"
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make} \
+       CC="%{__cc}" \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-%{__make} install DESTDIR=$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}
 
-gzip -9nf Changes README
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitearch}/XML/LibXSLT.pm
-%dir %{perl_sitearch}/auto/XML/LibXSLT
-%{perl_sitearch}/auto/XML/LibXSLT/LibXSLT.bs
-%attr(755,root,root) %{perl_sitearch}/auto/XML/LibXSLT/LibXSLT.so
+%doc Changes README
+%{perl_vendorarch}/XML/LibXSLT.pm
+%{perl_vendorarch}/XML/benchmark.pl
+%dir %{perl_vendorarch}/auto/XML/LibXSLT
+%{perl_vendorarch}/auto/XML/LibXSLT/LibXSLT.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/XML/LibXSLT/LibXSLT.so
 %{_mandir}/man3/*
 %{_examplesdir}/%{name}-%{version}
This page took 0.026546 seconds and 4 git commands to generate.