]> git.pld-linux.org Git - packages/perl-URI.git/commitdiff
- added conditional tests
authorradek <radek@pld-linux.org>
Fri, 9 Aug 2002 00:35:00 +0000 (00:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- version 1.21, STBR

Changed files:
    perl-URI.spec -> 1.36

perl-URI.spec

index e48169e2fc4bfe23d91e119710f52d7019d8ef5d..6b5bc376d534ffd952ec6f789d7d6aba8c12b0fe 100644 (file)
@@ -1,3 +1,6 @@
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
 %include       /usr/lib/rpm/macros.perl
 %define                pdir    URI
 %define                pnam    URI
@@ -7,19 +10,23 @@ Summary(pt_BR):      M
 Summary(ru):   URI - Uniform Resource Identifier (URI) ÓÓÙÌËÉ, ËÁË ÕËÁÚÙ×ÁÅÔ RFC 2396
 Summary(uk):   URI - ÐÏÓÉÌÁÎÎÑ Uniform Resource Identifier (URI) ÑË ×ÉÚÎÁÞÅÎÏ × RFC 2396
 Name:          perl-URI
-Version:       1.19
-Release:       2
+Version:       1.21
+Release:       1
 License:       distributable
 Group:         Development/Languages/Perl
 Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
 BuildRequires: perl >= 5.6.1
+BuildRequires: rpm-perlprov >= 3.0.3-18
+%if %{?_without_test:0}%{!?_without_test:1}
 BuildRequires: perl-MIME-Base64
 BuildRequires: perl-libnet
-BuildRequires: rpm-perlprov >= 3.0.3-18
+%endif
 Requires:      perl
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _noautoreq      'perl(Business::ISBN)'
+
 %description
 This package contains the URI.pm module with friends. The module
 implements the URI class. Objects of this class represent Uniform
@@ -48,6 +55,7 @@ M
 %build
 perl Makefile.PL
 %{__make}
+%{!?_without_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.358251 seconds and 4 git commands to generate.