From: radek Date: Fri, 9 Aug 2002 00:35:00 +0000 (+0000) Subject: - added conditional tests X-Git-Tag: RA-1_0~3 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=5cc7541952fc44823963f7c73072756fbe637edb;p=packages%2Fperl-URI.git - added conditional tests - version 1.21, STBR Changed files: perl-URI.spec -> 1.36 --- diff --git a/perl-URI.spec b/perl-URI.spec index e48169e..6b5bc37 100644 --- a/perl-URI.spec +++ b/perl-URI.spec @@ -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