]> git.pld-linux.org Git - packages/perl-cdk.git/commitdiff
- new bconds
authorankry <ankry@pld-linux.org>
Tue, 27 Apr 2004 15:26:30 +0000 (15:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-cdk.spec -> 1.20

perl-cdk.spec

index a7dbe11e671717f785fe8b8681dcb129dbcb6b24..1eb45be31cdb73c24a61efe6cf8ffa2813af6e68 100644 (file)
@@ -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
 Summary:       Perl extensions for CDK
@@ -37,9 +37,10 @@ find demos examples fulldemo -type f | xargs perl -pi -e 's|#.*?perl|#!%{_bindir
 
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
-%{__make} OPTIMIZE="%{rpmcflags}"
+%{__make} \
+       OPTIMIZE="%{rpmcflags}"
 
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -48,7 +49,6 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
-
 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
This page took 0.105469 seconds and 4 git commands to generate.