]> git.pld-linux.org Git - packages/perl-AI-DecisionTree.git/commitdiff
- new style bconds
authorAdam Gołębiowski <adamg@pld-linux.org>
Tue, 9 Mar 2004 21:07:26 +0000 (21:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-AI-DecisionTree.spec -> 1.17

perl-AI-DecisionTree.spec

index 58929b60f4b0061d7af4c360d72c231d9baffff0..e4f07e497722d68c8e7256524ff7d6e7daac53e1 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests   # don't perform "make test"
 #
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    AI
@@ -16,9 +16,7 @@ Source0:      http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version
 # Source0-md5: eaed56886a22506b8ed5f6dab88e7060
 BuildRequires: perl-devel >= 5.6
 BuildRequires: rpm-perlprov >= 4.1-13
-%if %{?_without_tests:0}%{!?_without_tests:1}
-BuildRequires: perl-GraphViz
-%endif
+%{?with_test:BuildRequires:    perl-GraphViz}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -44,7 +42,7 @@ poj
        INSTALLDIRS=vendor
 %{__make}
 
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.037604 seconds and 4 git commands to generate.