rpms/autodafe/devel autodafe-0.1-cflags.patch, NONE, 1.1 autodafe.spec, 1.1, 1.2

Jan F. Chadima jfch2222 at fedoraproject.org
Mon Jun 29 12:10:14 UTC 2009


Author: jfch2222

Update of /cvs/pkgs/rpms/autodafe/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22830

Modified Files:
	autodafe.spec 
Added Files:
	autodafe-0.1-cflags.patch 
Log Message:
support cflags from build environment


autodafe-0.1-cflags.patch:

--- NEW FILE autodafe-0.1-cflags.patch ---
diff -up autodafe-0.1/src/adbg/Makefile.in~ autodafe-0.1/src/adbg/Makefile.in
--- autodafe-0.1/src/adbg/Makefile.in~	2006-08-05 01:00:39.000000000 +0300
+++ autodafe-0.1/src/adbg/Makefile.in	2009-06-25 01:29:18.000000000 +0300
@@ -1,6 +1,6 @@
 CC = @CC@
 LIBS = @LIBS@
-CFLAGS = -O2
+CFLAGS = @CFLAGS@
 DEFS = @DEFS@
 WALL = -Wall
 OBJ = debug.o gdb.o network.o adbg.o
diff -up autodafe-0.1/src/adc/Makefile.in~ autodafe-0.1/src/adc/Makefile.in
--- autodafe-0.1/src/adc/Makefile.in~	2006-08-05 01:00:39.000000000 +0300
+++ autodafe-0.1/src/adc/Makefile.in	2009-06-25 01:29:35.000000000 +0300
@@ -1,6 +1,6 @@
 CC = @CC@
 LIBS = @LIBS@
-FLAGS = -O2
+FLAGS = @CFLAGS@
 DEFS = @DEFS@
 WALL = -Wall
 OBJ = lexer.o parser.o
diff -up autodafe-0.1/src/autodafe/Makefile.in~ autodafe-0.1/src/autodafe/Makefile.in
--- autodafe-0.1/src/autodafe/Makefile.in~	2006-08-05 01:00:39.000000000 +0300
+++ autodafe-0.1/src/autodafe/Makefile.in	2009-06-25 01:29:50.000000000 +0300
@@ -1,6 +1,6 @@
 CC = @CC@
 LIBS = @LIBS@
-CFLAGS = -O2
+CFLAGS = @CFLAGS@
 DEFS = @DEFS@
 WALL = -Wall
 OBJ = debug.o file.o dbg.o output.o chrono.o network.o transmit.o hash.o opcode.o engine.o autodafe.o
diff -up autodafe-0.1/src/pdml2ad/Makefile.in~ autodafe-0.1/src/pdml2ad/Makefile.in
--- autodafe-0.1/src/pdml2ad/Makefile.in~	2006-08-05 01:00:39.000000000 +0300
+++ autodafe-0.1/src/pdml2ad/Makefile.in	2009-06-25 01:30:51.000000000 +0300
@@ -1,6 +1,6 @@
 CC = @CC@
 LIBS = @LIBS@ -L /usr/lib
-CFLAGS = -O2 -I /usr/include/libxml2
+CFLAGS = @CFLAGS@ $(shell pkg-config libxml-2.0 --cflags)
 DEFS = @DEFS@
 WALL = -Wall
 OBJ = debug.o output.o recover.o xml.o pdml2ad.o


Index: autodafe.spec
===================================================================
RCS file: /cvs/pkgs/rpms/autodafe/devel/autodafe.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- autodafe.spec	22 Jun 2009 08:02:37 -0000	1.1
+++ autodafe.spec	29 Jun 2009 12:09:44 -0000	1.2
@@ -1,12 +1,13 @@
 Summary:  Fuzzing framework
 Name: autodafe
 Version: 0.1
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+
 Group: Development/Tools
 URL: http://autodafe.sourceforge.net/ 
 Source: http://downloads.sourceforge.net/autodafe/autodafe-%{version}.tar.gz
 Patch1: autodafe.patch
+Patch2: autodafe-0.1-cflags.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: libxml2-devel >= 2.6.13
@@ -31,6 +32,7 @@ This package contains tutorial to Autoda
 %prep
 %setup -q
 %patch1 -p1 -b .old
+%patch2 -p1 -b .cflags
 for i in README TUTORIAL; do iconv -f iso-8859-1 -t utf-8 < $i > $i.NEW && mv -f $i.NEW $i; done
 cd docs; tar cfz tutorials.tgz tutorials
 
@@ -66,6 +68,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc docs/tutorials.tgz
 
 %changelog
+* Mon Jun 29 2009 Jan F. Chadima <jchadima at redhat.com> - 0.1-3
+- support cflags from build environment
+
 * Thu Jun 18 2009 Jan F. Chadima <jchadima at redhat.com> - 0.1-2
 - reapired version
 




More information about the fedora-extras-commits mailing list