]> git.pld-linux.org Git - packages/perl-XML-LibXSLT.git/commitdiff
- added tests (off by default for now)
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 8 Jan 2004 13:42:18 +0000 (13:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-XML-LibXSLT.spec -> 1.19

perl-XML-LibXSLT.spec

index 61edf3f06b42b71d250c5dd220972707b4644fb8..04a9a83217ba70f431c8259fdc32a76882b20357 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_with    tests   # perform "make test" (fails in 1.53)
+#
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    XML
 %define        pnam    LibXSLT
@@ -12,9 +16,10 @@ Source0:     http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version
 # Source0-md5: 1fc25bedd58fbf9f3faf0d4936632645
 BuildRequires: libxslt-devel >= 1.0.6
 BuildRequires: perl-XML-LibXML >= 1.30
-BuildRequires: perl-devel >= 5.6.1
+BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
 Requires:      libxslt >= 1.0.6
+Requires:      perl-XML-LibXML >= 1.30
 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.037154 seconds and 4 git commands to generate.