File rpmpackage.diff of Package xephem

diff -burNE xephem-3.7.6_orig/GUI/xephem/Makefile xephem-3.7.6/GUI/xephem/Makefile
--- xephem-3.7.6_orig/GUI/xephem/Makefile	2013-01-21 12:13:25.509632994 +0100
+++ xephem-3.7.6/GUI/xephem/Makefile	2013-01-21 12:13:37.165772238 +0100
@@ -34,7 +34,7 @@
 # some systems now use just /usr/X11 (not /usr/X11R6)
 CC = gcc
 CLDFLAGS = -g
-CFLAGS = $(LIBINC) $(CLDFLAGS) -O2 -Wall -I$(MOTIFI) -I/usr/X11R6/include
+CFLAGS = $(LIBINC) $(CLDFLAGS) -O2 -Wall -I$(MOTIFI) -I/usr/X11R6/include $(RPM_OPT_FLAGS)
 LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) -L/usr/X11R6/lib
 XLIBS = -lXm -lXp -lXt -lXext -lXmu -lX11
 LIBS = $(XLIBS) $(LIBLIB) -lm
diff -burNE xephem-3.7.6_orig/libastro/Makefile xephem-3.7.6/libastro/Makefile
--- xephem-3.7.6_orig/libastro/Makefile	2013-01-21 12:13:32.741719388 +0100
+++ xephem-3.7.6/libastro/Makefile	2013-01-21 12:14:25.146345412 +0100
@@ -5,7 +5,7 @@
 
 # gcc
 CC = gcc
-CFLAGS= -O2 -Wall
+CFLAGS= -O2 -Wall $(RPM_OPT_FLAGS)
 
 # macosx universal binary
 # CFLAGS= -O2 -Wall -arch i386 -arch ppc
diff -burNE xephem-3.7.6_orig/libip/Makefile xephem-3.7.6/libip/Makefile
--- xephem-3.7.6_orig/libip/Makefile	2013-01-21 12:13:32.901721299 +0100
+++ xephem-3.7.6/libip/Makefile	2013-01-21 12:14:25.150345460 +0100
@@ -3,7 +3,7 @@
 
 # gcc
 CC = gcc
-CFLAGS= -I../libastro -O2 -Wall
+CFLAGS= -I../libastro $(RPM_OPT_FLAGS)
 
 # macosx universal binary
 # CFLAGS= -I../libastro -O2 -Wall -arch i386 -arch ppc
diff -burNE xephem-3.7.6_orig/libjpegd/Makefile xephem-3.7.6/libjpegd/Makefile
--- xephem-3.7.6_orig/libjpegd/Makefile	2013-01-21 12:13:32.937721729 +0100
+++ xephem-3.7.6/libjpegd/Makefile	2013-01-21 12:14:25.154345507 +0100
@@ -4,7 +4,7 @@
 
 # gcc
 CC = gcc
-CFLAGS= -O2 -Wall
+CFLAGS= -O2 -Wall $(RPM_OPT_FLAGS)
 
 # macosx universal binary
 # CFLAGS= -O2 -Wall -arch i386 -arch ppc
diff -burNE xephem-3.7.6_orig/liblilxml/Makefile xephem-3.7.6/liblilxml/Makefile
--- xephem-3.7.6_orig/liblilxml/Makefile	2013-01-21 12:13:33.153724310 +0100
+++ xephem-3.7.6/liblilxml/Makefile	2013-01-21 12:14:25.158345555 +0100
@@ -5,7 +5,7 @@
 
 # gcc
 CC = gcc
-CFLAGS= -O2 -Wall
+CFLAGS= -O2 -Wall $(RPM_OPT_FLAGS)
 
 # macosx universal binary
 # CFLAGS= -O2 -Wall -arch i386 -arch ppc
diff -burNE xephem-3.7.6_orig/libpng/Makefile xephem-3.7.6/libpng/Makefile
--- xephem-3.7.6_orig/libpng/Makefile	2013-01-21 12:13:33.165724453 +0100
+++ xephem-3.7.6/libpng/Makefile	2013-01-21 12:14:25.162345603 +0100
@@ -18,7 +18,7 @@
 LDDEBUG =
 CRELEASE = -O2
 LDRELEASE = -s
-CFLAGS = -I$(ZLIBINC) -Wall $(CRELEASE)
+CFLAGS = -I$(ZLIBINC) -Wall $(CRELEASE) $(RPM_OPT_FLAGS)
 LDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm $(LDRELEASE)
 
 # macosx universal binary
diff -burNE xephem-3.7.6_orig/libz/Makefile xephem-3.7.6/libz/Makefile
--- xephem-3.7.6_orig/libz/Makefile	2013-01-21 12:13:33.221725122 +0100
+++ xephem-3.7.6/libz/Makefile	2013-01-21 12:14:25.166345651 +0100
@@ -1,5 +1,5 @@
 CLDFLAGS =
-CFLAGS = $(CLDFLAGS) -Wall -O2
+CFLAGS = $(CLDFLAGS) -Wall -O2 $(RPM_OPT_FLAGS)
 LDFLAGS =
 
 # macosx universal binary
openSUSE Build Service is sponsored by