Enable m_xt
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iproute2?expand=0&rev=18
This commit is contained in:
parent
6929b47857
commit
ff8aa85308
@ -11,6 +11,7 @@ Tue Jan 11 00:45:02 UTC 2011 - jengelh@medozas.de
|
|||||||
- Spec file updates
|
- Spec file updates
|
||||||
* Remove pointless AutoReqProv:on (that's the default)
|
* Remove pointless AutoReqProv:on (that's the default)
|
||||||
* Provide iproute symbol with full version
|
* Provide iproute symbol with full version
|
||||||
|
* Enable tc's m_xt
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 3 10:29:55 CET 2010 - ms@suse.de
|
Fri Dec 3 10:29:55 CET 2010 - ms@suse.de
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
Name: iproute2
|
Name: iproute2
|
||||||
BuildRequires: bison db-devel flex ghostscript-fonts-std ghostscript-x11 libpng-devel libtiff-devel sgmltool texlive-latex xorg-x11-devel
|
BuildRequires: bison db-devel flex ghostscript-fonts-std ghostscript-x11 libpng-devel libtiff-devel sgmltool texlive-latex xorg-x11-devel
|
||||||
|
BuildRequires: iptables-devel
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Productivity/Networking/Routing
|
Group: Productivity/Networking/Routing
|
||||||
Provides: iproute = %version-%release
|
Provides: iproute = %version-%release
|
||||||
@ -88,14 +89,16 @@ find . -name *.orig -print0 | xargs -r0 rm -v
|
|||||||
%build
|
%build
|
||||||
# build with -fPIC. For details see
|
# build with -fPIC. For details see
|
||||||
# https://bugzilla.novell.com/show_bug.cgi?id=388021
|
# https://bugzilla.novell.com/show_bug.cgi?id=388021
|
||||||
make %{?_smp_mflags} LIBDIR=/usr/share CCOPTS="-D_GNU_SOURCE $RPM_OPT_FLAGS -Wstrict-prototypes -fPIC"
|
make %{?_smp_mflags} LIBDIR=%_libdir CCOPTS="-D_GNU_SOURCE $RPM_OPT_FLAGS -Wstrict-prototypes -fPIC"
|
||||||
cd doc
|
cd doc
|
||||||
make pdf
|
make pdf
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d $RPM_BUILD_ROOT/{etc/,sbin/,usr/{sbin,share/man/man{3,8}}}
|
install -d $RPM_BUILD_ROOT/{etc/,sbin/,usr/{sbin,share/man/man{3,8}}}
|
||||||
install -d $RPM_BUILD_ROOT/{/usr/include,%_libdir,/usr/share}
|
install -d $RPM_BUILD_ROOT/{/usr/include,%_libdir,/usr/share}
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=/usr/share
|
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%_libdir \
|
||||||
|
MODDESTDIR="$RPM_BUILD_ROOT/%_libdir"
|
||||||
|
rm -f "$RPM_BUILD_ROOT/%_libdir/m_ipt.so"
|
||||||
install lib/libnetlink.a $RPM_BUILD_ROOT/%_libdir
|
install lib/libnetlink.a $RPM_BUILD_ROOT/%_libdir
|
||||||
install include/libnetlink.h $RPM_BUILD_ROOT/usr/include
|
install include/libnetlink.h $RPM_BUILD_ROOT/usr/include
|
||||||
mv $RPM_BUILD_ROOT/usr/sbin/ip $RPM_BUILD_ROOT/sbin
|
mv $RPM_BUILD_ROOT/usr/sbin/ip $RPM_BUILD_ROOT/sbin
|
||||||
@ -120,6 +123,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%config(noreplace) /etc/iproute2/rt_realms
|
%config(noreplace) /etc/iproute2/rt_realms
|
||||||
%config(noreplace) /etc/iproute2/rt_tables
|
%config(noreplace) /etc/iproute2/rt_tables
|
||||||
%config(noreplace) /etc/iproute2/ematch_map
|
%config(noreplace) /etc/iproute2/ematch_map
|
||||||
|
%_libdir/m_xt.so
|
||||||
%dir /usr/share/tc
|
%dir /usr/share/tc
|
||||||
%attr(644,root,root)/usr/share/tc/*
|
%attr(644,root,root)/usr/share/tc/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user