2007-01-16 00:17:45 +01:00
|
|
|
#
|
2011-03-24 09:37:24 +01:00
|
|
|
# spec file for package iproute2
|
2007-01-16 00:17:45 +01:00
|
|
|
#
|
2011-03-22 09:26:04 +01:00
|
|
|
# Copyright (c) 2011 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
|
2011-03-22 09:26:04 +01:00
|
|
|
BuildRequires: iptables-devel
|
2010-03-16 10:05:52 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:17:45 +01:00
|
|
|
Group: Productivity/Networking/Routing
|
2011-01-11 04:30:40 +01:00
|
|
|
Provides: iproute
|
2011-03-22 09:26:04 +01:00
|
|
|
Version: 2.6.38
|
2011-01-11 01:48:35 +01:00
|
|
|
Release: 1
|
2011-03-22 09:26:04 +01:00
|
|
|
%define rversion 2.6.38
|
2007-01-16 00:17:45 +01:00
|
|
|
Summary: Advanced Routing
|
2011-03-22 09:26:04 +01:00
|
|
|
Url: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
|
2009-08-13 23:25:48 +02:00
|
|
|
Source0: %name-%rversion.tar.bz2
|
2011-03-22 09:26:04 +01:00
|
|
|
Patch0: %name-libdir-1.diff
|
|
|
|
Patch1: %name-HZ.diff
|
|
|
|
Patch2: %name-pdfdoc.diff
|
2011-03-23 20:38:37 +01:00
|
|
|
Patch3: %name-memleak.diff
|
2007-01-16 00:17:45 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-10-16 17:55:40 +02:00
|
|
|
|
2007-01-16 00:17:45 +01:00
|
|
|
%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>
|
|
|
|
|
2010-11-15 23:12:28 +01:00
|
|
|
%package -n libnetlink-devel
|
2010-11-20 11:31:11 +01:00
|
|
|
License: GPLv2+
|
2010-11-15 23:12:28 +01:00
|
|
|
Summary: A Higher Level Interface to the Netlink Service
|
|
|
|
Group: Development/Libraries/C and C++
|
2010-11-20 11:31:11 +01:00
|
|
|
Provides: libnetlink = %version-%release
|
2010-11-15 23:12:28 +01:00
|
|
|
|
|
|
|
%description -n libnetlink-devel
|
|
|
|
libnetlink provides a higher level interface to rtnetlink(7).
|
|
|
|
|
|
|
|
%package doc
|
2010-11-20 11:31:11 +01:00
|
|
|
License: GPLv2+
|
|
|
|
Summary: Documentation to iproute2
|
|
|
|
Group: Documentation
|
2010-11-15 23:12:28 +01:00
|
|
|
%if 0%{?suse_version} >= 1130
|
2010-11-20 11:31:11 +01:00
|
|
|
BuildArch: noarch
|
2010-11-15 23:12:28 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the PDF documentation from iproute2,
|
|
|
|
as well as examples and other outdated files.
|
|
|
|
|
2007-01-16 00:17:45 +01:00
|
|
|
%prep
|
2009-08-13 23:25:48 +02:00
|
|
|
%setup -q -n %name-%rversion
|
2009-08-28 00:00:11 +02:00
|
|
|
%patch0
|
2007-01-16 00:17:45 +01:00
|
|
|
%patch1
|
|
|
|
%patch2
|
2011-03-22 09:26:04 +01:00
|
|
|
%patch3
|
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
|
2011-01-11 04:21:09 +01:00
|
|
|
make %{?_smp_mflags} LIBDIR=%_libdir 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}
|
2011-01-11 04:21:09 +01:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%_libdir \
|
|
|
|
MODDESTDIR="$RPM_BUILD_ROOT/%_libdir"
|
|
|
|
rm -f "$RPM_BUILD_ROOT/%_libdir/m_ipt.so"
|
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)
|
2010-11-15 23:12:28 +01:00
|
|
|
%doc README* RELNOTES
|
2007-01-16 00:17:45 +01:00
|
|
|
/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
|
2011-01-11 04:21:09 +01:00
|
|
|
%_libdir/m_xt.so
|
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
|
|
|
|
2010-11-15 23:12:28 +01:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/api-ip6-flowlabels.pdf doc/arpd.pdf doc/ip-cref.pdf
|
|
|
|
%doc doc/ip-tunnels.pdf doc/nstat.pdf doc/rtstat.pdf doc/ss.pdf
|
|
|
|
%doc ChangeLog examples/ ip/ifcfg ip/routef ip/routel
|
|
|
|
|
2008-09-24 16:51:26 +02:00
|
|
|
%files -n libnetlink-devel
|
2010-11-15 23:12:28 +01:00
|
|
|
%defattr(-,root,root)
|
2008-09-24 16:51:26 +02:00
|
|
|
/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
|