]> git.pld-linux.org Git - packages/perl-Readonly.git/commitdiff
- new style bconds
authorAdam Gołębiowski <adamg@pld-linux.org>
Sun, 25 Apr 2004 20:23:42 +0000 (20:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Readonly.spec -> 1.16

perl-Readonly.spec

index e2716297096a7f3d2b0d02adf72765039ca8dc2e..b29c2e13eeeb9c9472bbe8029511a5f5eebdbf89 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
 %define        pdir    Readonly
@@ -15,7 +15,7 @@ Source0:      http://www.cpan.org/authors/id/R/RO/ROODE/%{pdir}-%{version}.tar.gz
 # Source0-md5: 0acef3a995ac9ecf575f66a726d638f4
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildRequires: perl-devel >= 5.6.1
-%if %{?_without_tests:0}%{!?_without_tests:1}
+%if %{with tests}
 BuildRequires: perl-Test-Simple
 BuildRequires: perl-Test-Harness
 %endif
@@ -41,14 +41,16 @@ wy
 %build
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
+
 %{__make}
 
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.061185 seconds and 4 git commands to generate.