devel/x3270 x3270.spec,1.29,1.30

Karsten Hopp (karsten) fedora-extras-commits at redhat.com
Mon Mar 31 13:23:26 UTC 2008


Author: karsten

Update of /cvs/extras/devel/x3270
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15637

Modified Files:
	x3270.spec 
Log Message:
- fix compiler flags for FORTIFY_SOURCE


Index: x3270.spec
===================================================================
RCS file: /cvs/extras/devel/x3270/x3270.spec,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- x3270.spec	19 Feb 2008 10:02:48 -0000	1.29
+++ x3270.spec	31 Mar 2008 13:22:43 -0000	1.30
@@ -8,7 +8,7 @@
 Summary: An X Window System based IBM 3278/3279 terminal emulator
 Name: x3270
 Version: 3.3.6
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: MIT
 Group: Applications/Internet
 URL: http://www.geocities.com/SiliconValley/Peaks/7814
@@ -80,24 +80,20 @@
 %patch4 -p1
 
 %build
-export CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
 # Set LIBX3270DIR to something we can share with x3270-text
 perl -pi -e "s,LIBX3270DIR =.*,LIBX3270DIR = %{_datadir}/x3270,g" Imakefile.in
+# use rpmoptflags for x3270if
+perl -pi -e 's/ -o x3270if x3270if.c/ \$(CCOPTIONS) -o x3270if x3270if.c/g' Imakefile.in
 # Fix end of line encodings
 perl -pi -e "s/
//" html/Keymap.html html/Build.html
 libtoolize --copy --force
 %configure --prefix=%{_prefix}/ --with-fontdir=%{fontdir} --x-includes=/usr/include/X11 --x-libraries=/%{_libdir}/X11 --enable-app-defaults
-# Work around broken imake:
-echo 'makedepend "$@"' > gccmakedep
-chmod +x gccmakedep
-export PATH="$PATH:`pwd`"
 xmkmf
-#patch -p1 < %{PATCH5}
 make Makefiles
 make includes
 make depend
 
-make %{?_smp_mflags}
+make %{?_smp_mflags} CCOPTIONS="$RPM_OPT_FLAGS"
 cd c3270-3.3
 autoconf
 libtoolize --copy --force
@@ -199,6 +195,9 @@
 %{_mandir}/man1/c3270*
 
 %changelog
+* Thu Mar 20 2008 Karsten Hopp <karsten at redhat.com> 3.3.6-5
+- fix compiler flags for FORTIFY_SOURCE
+
 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 3.3.6-4
 - Autorebuild for GCC 4.3
 




More information about the fedora-extras-commits mailing list