- add RPM_OPT_FLAGS

This commit is contained in:
Radek Vokál 2005-09-23 10:03:57 +00:00
parent 4e6edc864a
commit bcaaae0cd2
2 changed files with 17 additions and 1 deletions

View File

@ -4,7 +4,7 @@
Summary: Advanced IP routing and network device configuration tools.
Name: iproute
Version: 2.6.14
Release: 3
Release: 4
Group: Applications/System
Source: http://developer.osdl.org/dev/iproute2/download/iproute2-%{date_version}.tar.bz2
URL: http://developer.osdl.org/dev/iproute2/
@ -26,6 +26,7 @@ Patch1: iproute2-2.4.7-rt_config.patch
Patch2: iproute2-2.6.9-kernel.patch
Patch3: cbq-0.7.1-avpkt-enhancement.patch
Patch4: iproute2-ss050901-help.patch
Patch5: iproute2-ss050901-opt_flags.patch
License: GNU GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -43,6 +44,7 @@ cp %{SOURCE12} $RPM_BUILD_DIR/iproute2-%{date_version}
%patch2 -p1 -b .kernel
%patch3 -p0 -b .avpkt-enhancment
%patch4 -p1 -b .help
%patch5 -p1 -b .opt_flags
%build
make
@ -112,6 +114,9 @@ EOF
%config(noreplace) /etc/sysconfig/cbq/*
%changelog
* Fri Sep 23 2005 Radek Vokal <rvokal@redhat.com> 2.6.14-4
- add RPM_OPT_FLAGS
* Mon Sep 19 2005 Radek Vokal <rvokal@redhat.com> 2.6.14-3
- forget to apply the patch :(

View File

@ -0,0 +1,11 @@
--- iproute2-ss050901/Makefile.opt_flags 2005-09-23 11:49:01.000000000 +0200
+++ iproute2-ss050901/Makefile 2005-09-23 11:49:31.000000000 +0200
@@ -22,7 +22,7 @@
CC = gcc
HOSTCC = gcc
-CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
+CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall $(RPM_OPT_FLAGS)
CFLAGS = $(CCOPTS) -I../include $(DEFINES)
YACCFLAGS = -d -t -v