2007-01-16 00:17:45 +01:00
|
|
|
#
|
2009-08-13 23:25:48 +02:00
|
|
|
# spec file for package iproute2 (Version 2.6.29.1)
|
2007-01-16 00:17:45 +01:00
|
|
|
#
|
2009-01-28 23:51:25 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:17:45 +01:00
|
|
|
#
|
2008-09-24 16:51:26 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:17:45 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-20 16:07:08 +02:00
|
|
|
|
2007-01-16 00:17:45 +01:00
|
|
|
Name: iproute2
|
2008-09-24 16:51:26 +02:00
|
|
|
BuildRequires: bison db-devel flex ghostscript-fonts-std ghostscript-x11 libpng-devel libtiff-devel sgmltool texlive-latex xorg-x11-devel
|
2007-07-13 17:49:44 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:17:45 +01:00
|
|
|
Group: Productivity/Networking/Routing
|
|
|
|
Provides: iproute
|
2007-10-16 17:55:40 +02:00
|
|
|
AutoReqProv: on
|
2009-08-13 23:25:48 +02:00
|
|
|
Version: 2.6.29.1
|
|
|
|
Release: 1
|
|
|
|
%define rversion 2.6.29-1
|
2007-01-16 00:17:45 +01:00
|
|
|
Summary: Advanced Routing
|
2007-10-16 17:55:40 +02:00
|
|
|
Url: http://developer.osdl.org/dev/iproute2/
|
2009-08-13 23:25:48 +02:00
|
|
|
Source0: %name-%rversion.tar.bz2
|
|
|
|
Patch0: %name-2.6.29-1-libdir-1.diff
|
|
|
|
Patch1: %name-2.6.29-1-HZ.diff
|
|
|
|
Patch2: %name-2.6.29-1-pdfdoc.diff
|
|
|
|
Patch3: %name-2.6.29-1-tc-flex-fixes.diff
|
|
|
|
Patch4: %name-2.6.29-1-fragtimeout.diff
|
|
|
|
Patch5: %name-2.6.29-1-flushcheckuid.diff
|
|
|
|
Patch6: %name-2.6.29-1-DCCP-redefine
|
|
|
|
Patch7: %name-2.6.29-1-warnings.diff
|
|
|
|
Patch8: %name-2.6.29-1-skbedit-memset.diff
|
|
|
|
Patch9: %name-2.6.29-1-iptunnel-fclose.diff
|
2007-01-16 00:17:45 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-10-16 17:55:40 +02:00
|
|
|
|
2008-09-24 16:51:26 +02:00
|
|
|
%package -n libnetlink-devel
|
2008-04-20 16:07:08 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:17:45 +01:00
|
|
|
Summary: A Higher Level Interface to the Netlink Service
|
2008-09-24 16:51:26 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-01-16 00:17:45 +01:00
|
|
|
Provides: libnetlink
|
|
|
|
|
2008-09-24 16:51:26 +02:00
|
|
|
%description -n libnetlink-devel
|
2007-01-16 00:17:45 +01:00
|
|
|
libnetlink provides a higher level interface to rtnetlink(7).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides the tools ip, tc, and rtmon needed to use the new
|
|
|
|
and advanced routing options of the Linux kernel. The SUSE Linux
|
|
|
|
distribution has used this package for network setup since SuSE Linux
|
|
|
|
8.0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Alexey Kuznetsov <kuznet at ms2 dot inr dot ac dot ru>
|
|
|
|
Stephem Hemminger <shemminger at osdl dot org>
|
|
|
|
|
|
|
|
%prep
|
2009-08-13 23:25:48 +02:00
|
|
|
%setup -q -n %name-%rversion
|
2007-01-16 00:17:45 +01:00
|
|
|
%patch
|
|
|
|
%patch1
|
|
|
|
%patch2
|
2007-10-26 20:58:21 +02:00
|
|
|
%patch3
|
2007-01-16 00:17:45 +01:00
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch6
|
2009-08-13 23:25:48 +02:00
|
|
|
%patch7
|
|
|
|
%patch8
|
|
|
|
%patch9
|
2007-01-16 00:17:45 +01:00
|
|
|
find . -name *.orig -print0 | xargs -r0 rm -v
|
|
|
|
|
|
|
|
%build
|
2008-05-08 23:15:15 +02:00
|
|
|
# build with -fPIC. For details see
|
|
|
|
# https://bugzilla.novell.com/show_bug.cgi?id=388021
|
2008-09-24 16:51:26 +02:00
|
|
|
make LIBDIR=/usr/share CCOPTS="-D_GNU_SOURCE $RPM_OPT_FLAGS -Wstrict-prototypes -fPIC"
|
2007-01-16 00:17:45 +01:00
|
|
|
cd doc
|
|
|
|
make pdf
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -d $RPM_BUILD_ROOT/{etc/,sbin/,usr/{sbin,share/man/man{3,8}}}
|
2008-09-24 16:51:26 +02:00
|
|
|
install -d $RPM_BUILD_ROOT/{/usr/include,%_libdir,/usr/share}
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=/usr/share
|
2007-01-16 00:17:45 +01:00
|
|
|
install lib/libnetlink.a $RPM_BUILD_ROOT/%_libdir
|
|
|
|
install include/libnetlink.h $RPM_BUILD_ROOT/usr/include
|
|
|
|
mv $RPM_BUILD_ROOT/usr/sbin/ip $RPM_BUILD_ROOT/sbin
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/bin
|
|
|
|
ln -sf /sbin/ip $RPM_BUILD_ROOT/bin/ip
|
|
|
|
rm $RPM_BUILD_ROOT/usr/sbin/ifcfg
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/api-ip6-flowlabels.pdf doc/arpd.pdf doc/ip-cref.pdf README.iproute2+tc
|
|
|
|
%doc doc/ip-tunnels.pdf doc/nstat.pdf doc/rtstat.pdf doc/ss.pdf README
|
|
|
|
%doc RELNOTES ChangeLog examples/ README.decnet ip/ifcfg ip/routef ip/routel
|
|
|
|
/usr/sbin/*
|
|
|
|
/sbin/*
|
|
|
|
/bin/ip
|
|
|
|
%_mandir/man8/*
|
|
|
|
%dir /etc/iproute2
|
|
|
|
%config(noreplace) /etc/iproute2/rt_dsfield
|
|
|
|
%config(noreplace) /etc/iproute2/rt_protos
|
|
|
|
%config(noreplace) /etc/iproute2/rt_scopes
|
|
|
|
%config(noreplace) /etc/iproute2/rt_realms
|
|
|
|
%config(noreplace) /etc/iproute2/rt_tables
|
|
|
|
%config(noreplace) /etc/iproute2/ematch_map
|
2008-09-24 16:51:26 +02:00
|
|
|
%dir /usr/share/tc
|
|
|
|
%attr(644,root,root)/usr/share/tc/*
|
2007-01-16 00:17:45 +01:00
|
|
|
|
2008-09-24 16:51:26 +02:00
|
|
|
%files -n libnetlink-devel
|
|
|
|
%defattr(644,root,root)
|
|
|
|
/usr/include/*
|
2007-01-16 00:17:45 +01:00
|
|
|
%_mandir/man3/libnetlink*
|
|
|
|
%_libdir/lib*
|
2008-04-20 16:07:08 +02:00
|
|
|
|
2007-04-03 21:30:27 +02:00
|
|
|
%changelog
|