summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankry2004-04-20 23:59:33 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit0175293d7c95b3c47175b0bbbcb4b00b57197dae (patch)
treef5ea84fc3b48c16954955d15d3f117fbd31d9b30
parent38da9ef48dc145ab73efc67a3fd0b2de697b8b64 (diff)
downloadperl-MIME-tools-0175293d7c95b3c47175b0bbbcb4b00b57197dae.zip
perl-MIME-tools-0175293d7c95b3c47175b0bbbcb4b00b57197dae.tar.gz
- ported to new bconds
Changed files: perl-MIME-tools.spec -> 1.40
-rw-r--r--perl-MIME-tools.spec7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-MIME-tools.spec b/perl-MIME-tools.spec
index f7eb9a1..9e4c197 100644
--- a/perl-MIME-tools.spec
+++ b/perl-MIME-tools.spec
@@ -1,6 +1,6 @@
#
# Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
%define pdir MIME
@@ -30,7 +30,7 @@ Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}a.tar.gz
# Source0-md5: e7cb1f8e146171103640e3a5516afb1a
BuildRequires: perl-devel >= 5.6.1
-%if %{!?_without_tests:1}%{?_without_tests:0}
+%if %{with tests}
BuildRequires: perl(File::Path) >= 1
BuildRequires: perl(File::Spec) >= 0.6
BuildRequires: perl-MailTools >= 1.05
@@ -55,7 +55,8 @@ MIME::tools - zestaw modułów do operacji na danych w formacie MIME.
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT