rpms/open-cobol/devel open-cobol.spec,1.2,1.3

Jochen Schmitt s4504kr at fedoraproject.org
Mon Sep 15 16:49:40 UTC 2008


Author: s4504kr

Update of /cvs/extras/rpms/open-cobol/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6002

Modified Files:
	open-cobol.spec 
Log Message:
Remove _FORTIFY_SOURCE as adviced by upstream


Index: open-cobol.spec
===================================================================
RCS file: /cvs/extras/rpms/open-cobol/devel/open-cobol.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- open-cobol.spec	11 Sep 2008 20:21:34 -0000	1.2
+++ open-cobol.spec	15 Sep 2008 16:49:09 -0000	1.3
@@ -2,7 +2,7 @@
 
 Name:		open-cobol
 Version:	1.0.90
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	OpenCOBOL - COBOL compiler
 
 Group:		Development/Languages
@@ -45,9 +45,11 @@
 
 %prep
 %setup -q -n %{name}-%{cobvers}
-(cd libcob; sed -i -e 's/\-\-mode=compile $(CC)/--mode=compile $(CC) -no-suppress/g' Makefile.in)
 
 %build
+# Remove _FORTIFY_SOURCE as adviced by the upstram
+export CFLAGS=$(echo "$RPM_OPT_FLAGS" | sed -e 's/\-Wp,\-D_FORTIFY_SOURCE=2//g')
+echo $CFLAGS
 %configure --disable-rpath
 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@@ -58,7 +60,7 @@
 BUILDFLAGS="-D__NO_STRING_INLINES=1"
 %endif
 
-make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS $BUILDFLAGS"
+make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -104,6 +106,9 @@
 %postun -n libcob -p /sbin/ldconfig
 
 %changelog
+* Mon Sep 15 2008 Jochen Schmitt <Jochen herr-schmitt de> 1.0.90-4
+- Remove _FORTIFY_SOURCE as adviced by the upstream
+
 * Thu Sep 11 2008 Jochen Schmitt <Jochen herr-schmitt de> 1.0.90-3
 - Add -D__NO_STRING_INLINES for the i86 arch
 




More information about the fedora-extras-commits mailing list