rpms/olpc-utils/devel olpc-utils-0.89-cflags.patch, NONE, 1.1 olpc-utils.spec, 1.7, 1.8

Ville Skyttä scop at fedoraproject.org
Sun Apr 19 20:34:48 UTC 2009


Author: scop

Update of /cvs/pkgs/rpms/olpc-utils/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13230

Modified Files:
	olpc-utils.spec 
Added Files:
	olpc-utils-0.89-cflags.patch 
Log Message:
* Sun Apr 19 2009 Ville Skyttä <ville.skytta at iki.fi> - 0.89-11
- Build with %{optflags}.


olpc-utils-0.89-cflags.patch:

--- NEW FILE olpc-utils-0.89-cflags.patch ---
diff -up olpc-utils-0.89/Makefile.build~ olpc-utils-0.89/Makefile.build
--- olpc-utils-0.89/Makefile.build~	2008-09-30 00:48:41.000000000 +0300
+++ olpc-utils-0.89/Makefile.build	2009-04-19 23:25:04.000000000 +0300
@@ -27,7 +27,7 @@ all: $(BINARIES)
 # objects
 
 %.o: %.c
-	$(CC) $(WARNFLAGS) -c -o $@ $<
+	$(CC) $(WARNFLAGS) $(CFLAGS) -c -o $@ $<
 
 
 # built works


Index: olpc-utils.spec
===================================================================
RCS file: /cvs/pkgs/rpms/olpc-utils/devel/olpc-utils.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- olpc-utils.spec	26 Feb 2009 21:01:43 -0000	1.7
+++ olpc-utils.spec	19 Apr 2009 20:34:17 -0000	1.8
@@ -1,6 +1,6 @@
 Name:       olpc-utils
 Version:    0.89
-Release:    10%{?dist}
+Release:    11%{?dist}
 Summary:    OLPC utilities
 URL:        http://dev.laptop.org/git?p=projects/olpc-utils;a=summary
 Group:      System Environment/Base
@@ -8,6 +8,7 @@
 Source0:    %{name}-%{version}.tar.bz2
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+Patch0: olpc-utils-0.89-cflags.patch
 Patch1: olpc-utils-dbus.patch
 Patch2: olpc-utils-python2.6.patch
 
@@ -35,11 +36,12 @@
 %prep
 %setup -q
 
+%patch0 -p1
 %patch1 -p1
 %patch2 -p0
 
 %build
-make -f Makefile.build %{?_smp_mflags}
+make -f Makefile.build %{?_smp_mflags} CFLAGS="%{optflags}"
 
 
 %install
@@ -93,6 +95,9 @@
 %config(noreplace) %{_sysconfdir}/ConsoleKit/run-session.d/pam-foreground-compat.ck
 
 %changelog
+* Sun Apr 19 2009 Ville Skyttä <ville.skytta at iki.fi> - 0.89-11
+- Build with %%{optflags}.
+
 * Thu Feb 26 2009 Adam Jackson <ajax at redhat.com> 0.89-10
 - Remove x11-input.fdi, this should all be automatically right already in
   F11 and later, and it breaks synaptics.




More information about the fedora-extras-commits mailing list