]> git.pld-linux.org Git - packages/defrag.git/commitdiff
- new bcond style
authordarekr <darekr@pld-linux.org>
Wed, 13 Jul 2005 17:46:20 +0000 (17:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    defrag.spec -> 1.20

defrag.spec

index 8b88d27d43cf6a6010a5560917492a1a1c9958dc..35e317f06b542eee9fd11417b62e54e7c294b7cb 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-# _without_static
+%bcond_without static          # don't build static
 #
 Summary:       Linux filesystem defragmenter
 Summary(pl):   Narzêdzia do defragmentacji linuksowych systemów plików
@@ -35,14 +35,14 @@ minix, ext, ext2 i xia tak, by zwi
 %patch3 -p1
 
 %build
-%{?!_without_static:%{__make} OPTI="%{rpmcflags}" LDFLAGS="%{rpmldflags}" CC="%{__cc}"}
-%{?_without_static:%{__make} OPTI="%{rpmcflags}" LDFLAGS="%{rpmldflags}" CC="%{__cc}" e2defrag defrag e2dump frag}
+%{?with_static:%{__make} OPTI="%{rpmcflags}" LDFLAGS="%{rpmldflags}" CC="%{__cc}"}
+%{!?with_static:%{__make} OPTI="%{rpmcflags}" LDFLAGS="%{rpmldflags}" CC="%{__cc}" e2defrag defrag e2dump frag}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/sbin,%{_mandir}/man8}
 
-%{__make} %{?!_without_static:install}%{?_without_static:install_shared} \
+%{__make} %{?with_static:install}%{!?with_static:install_shared} \
        DESTDIR=$RPM_BUILD_ROOT
 
 %clean
This page took 0.080958 seconds and 4 git commands to generate.