SPECS: ccs.spec - added optflags patch, sed killed

sparky sparky at pld-linux.org
Fri Aug 4 02:51:30 CEST 2006


Author: sparky                       Date: Fri Aug  4 00:51:30 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added optflags patch, sed killed

---- Files affected:
SPECS:
   ccs.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: SPECS/ccs.spec
diff -u SPECS/ccs.spec:1.14 SPECS/ccs.spec:1.15
--- SPECS/ccs.spec:1.14	Mon May 15 02:11:45 2006
+++ SPECS/ccs.spec	Fri Aug  4 02:51:24 2006
@@ -10,11 +10,11 @@
 # Source0-md5:	131c34c8b66d8d7d74384839ed4091d0
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
+Patch0:		%{name}-optflags.patch
 URL:		http://sources.redhat.com/cluster/ccs/
 BuildRequires:	libxml2-devel >= 2.0
 BuildRequires:	magma-devel >= 0:1.01
 BuildRequires:	rpmbuild(macros) >= 1.268
-BuildRequires:	sed >= 4.0
 Requires(post,preun):	/sbin/chkconfig
 Requires:	magma >= 0:1.01
 Requires:	rc-scripts
@@ -43,8 +43,7 @@
 
 %prep
 %setup -q -n cluster-%{version}
-cd %{name}
-%{__sed} -i -e 's/-O2/%{rpmcflags}/' {ccs_tool,ccs_test,lib,daemon}/Makefile
+%patch0 -p1
 
 %build
 cd %{name}
@@ -55,7 +54,9 @@
 	--prefix=%{_prefix} \
 	--sbindir=%{_sbindir}
 %{__make} \
-	CC="%{__cc}"
+	CC="%{__cc}" \
+	LDFLAGS="%{rpmldflags}" \
+	OPTCFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -106,6 +107,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2006/08/04 00:51:24  sparky
+- added optflags patch, sed killed
+
 Revision 1.14  2006/05/15 00:11:45  zbyniu
 - up to 1.02.00
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ccs.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list