SPECS: defrag.spec - new bcond style

darekr darekr at pld-linux.org
Wed Jul 13 19:46:25 CEST 2005


Author: darekr                       Date: Wed Jul 13 17:46:25 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new bcond style

---- Files affected:
SPECS:
   defrag.spec (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: SPECS/defrag.spec
diff -u SPECS/defrag.spec:1.19 SPECS/defrag.spec:1.20
--- SPECS/defrag.spec:1.19	Wed May 28 14:58:49 2003
+++ SPECS/defrag.spec	Wed Jul 13 19:46:20 2005
@@ -1,7 +1,7 @@
 # $Revision$, $Date$
 #
 # 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
@@ -36,14 +36,14 @@
 %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
@@ -64,6 +64,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.20  2005/07/13 17:46:20  darekr
+- new bcond style
+
 Revision 1.19  2003/05/28 12:58:49  malekith
 - massive attack: source-md5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/defrag.spec?r1=1.19&r2=1.20&f=u




More information about the pld-cvs-commit mailing list