]> git.pld-linux.org Git - packages/perl-XML-LibXSLT.git/blobdiff - perl-XML-LibXSLT.spec
- cosmetics, unification
[packages/perl-XML-LibXSLT.git] / perl-XML-LibXSLT.spec
index 61edf3f06b42b71d250c5dd220972707b4644fb8..d81552edc719356f590c10e7afce260a149bd6ae 100644 (file)
@@ -1,20 +1,25 @@
+#
+# Conditional build:
+%bcond_with    tests   # perform "make test" (fails in 1.53)
+#
 %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
+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:       2
+Version:       1.57
+Release:       1
 License:       GPL/Artistic
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 1fc25bedd58fbf9f3faf0d4936632645
+# Source0-md5: 9b831bc5a97444103f345105f0f6fced
 BuildRequires: libxslt-devel >= 1.0.6
-BuildRequires: perl-XML-LibXML >= 1.30
-BuildRequires: perl-devel >= 5.6.1
+BuildRequires: perl-XML-LibXML >= 1.57
+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
@@ -33,12 +38,16 @@ szybki. Wed
 %build
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
-%{__make} OPTIMIZE="%{rpmcflags}"
+%{__make} \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__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}
This page took 0.034441 seconds and 4 git commands to generate.