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
|
|
|
#
|
2012-02-08 23:01:20 +01:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
2012-03-08 17:59:23 +01:00
|
|
|
|
2007-01-16 00:17:45 +01:00
|
|
|
Name: iproute2
|
2012-09-10 03:14:07 +02:00
|
|
|
Version: 3.5.1
|
2011-12-31 22:12:38 +01:00
|
|
|
Release: 0
|
2011-07-10 19:14:43 +02:00
|
|
|
Summary: Linux network configuration utilities
|
2012-02-08 23:01:20 +01:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: Productivity/Networking/Routing
|
2011-12-31 22:12:38 +01:00
|
|
|
Url: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
|
2011-10-21 22:26:32 +02:00
|
|
|
# Using GPL-2.0 instead of GPL-2.0+ because of tc_skbedit.h and tc/q_multiq.c
|
2011-12-31 22:12:38 +01:00
|
|
|
|
2012-03-30 03:33:16 +02:00
|
|
|
#DL-URL: http://kernel.org/pub/linux/utils/net/iproute2/
|
2011-12-31 22:12:38 +01:00
|
|
|
#Git-Clone: git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2
|
2012-03-30 03:33:16 +02:00
|
|
|
Source: %name-%version.tar.xz
|
|
|
|
Source2: %name-%version.tar.sign
|
2011-12-31 23:22:54 +01:00
|
|
|
# PATCH-FIX-UPSTREAM iproute2-libdir-1.diff status=unknown
|
2011-09-24 23:53:52 +02:00
|
|
|
Patch0: iproute2-libdir-1.diff
|
2011-12-31 23:22:54 +01:00
|
|
|
# PATCH-??-OPENSUSE iproute2-HZ.diff status=noidea
|
2011-09-24 23:53:52 +02:00
|
|
|
Patch1: iproute2-HZ.diff
|
2011-07-11 12:16:05 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-02-08 23:01:20 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: db-devel
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: pkgconfig >= 0.21
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
BuildRequires: xz
|
2011-09-24 23:53:52 +02:00
|
|
|
%if 0%{?suse_version}
|
2012-02-08 23:01:20 +01:00
|
|
|
BuildRequires: ghostscript-x11
|
|
|
|
BuildRequires: sgmltool
|
2012-09-10 03:14:07 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} >= 1230
|
|
|
|
BuildRequires: texlive-dvips-bin
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} < 1230
|
2012-09-10 05:31:47 +02:00
|
|
|
BuildRequires: texlive
|
|
|
|
BuildRequires: texlive-bin-latex
|
2012-02-08 23:01:20 +01:00
|
|
|
BuildRequires: texlive-latex
|
2012-07-30 16:54:56 +02:00
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
BuildRequires: texlive-amsfonts
|
|
|
|
BuildRequires: texlive-cm-super
|
|
|
|
BuildRequires: texlive-ec
|
|
|
|
%endif
|
2011-09-24 23:53:52 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
2012-02-08 23:01:20 +01:00
|
|
|
BuildRequires: ghostscript
|
|
|
|
BuildRequires: linuxdoc-tools
|
|
|
|
BuildRequires: sgml-common
|
|
|
|
BuildRequires: tetex-dvips
|
|
|
|
BuildRequires: tetex-latex
|
2011-09-24 23:53:52 +02:00
|
|
|
%endif
|
2011-06-01 00:53:58 +02:00
|
|
|
%define with_xt 1
|
2011-05-30 13:51:21 +02:00
|
|
|
%if 0%{?with_xt}
|
2012-07-20 01:26:47 +02:00
|
|
|
%if 0%{?suse_version} >= 1140
|
2012-02-08 23:01:20 +01:00
|
|
|
BuildRequires: pkgconfig(xtables) >= 1.4.11
|
2012-07-20 01:26:47 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: libxtables-devel >= 1.4.11
|
|
|
|
%endif
|
2011-05-30 13:51:21 +02:00
|
|
|
%endif
|
2012-05-24 21:38:11 +02:00
|
|
|
Provides: iproute = %version-%release
|
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.
|
|
|
|
|
2010-11-15 23:12:28 +01:00
|
|
|
%package -n libnetlink-devel
|
|
|
|
Summary: A Higher Level Interface to the Netlink Service
|
2012-02-08 23:01:20 +01:00
|
|
|
License: GPL-2.0+
|
2010-11-15 23:12:28 +01:00
|
|
|
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
|
|
|
Summary: Documentation to iproute2
|
2012-02-08 23:01:20 +01:00
|
|
|
License: GPL-2.0+
|
2010-11-20 11:31:11 +01:00
|
|
|
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
|
2011-09-24 23:53:52 +02:00
|
|
|
%if 0%{?__xz:1}
|
2011-07-10 19:14:43 +02:00
|
|
|
%setup -q
|
2011-09-24 23:53:52 +02:00
|
|
|
%else
|
|
|
|
tar -xf "%{S:0}" --use=xz;
|
|
|
|
%setup -DTq
|
|
|
|
%endif
|
2012-05-24 21:38:11 +02:00
|
|
|
%patch -P 0 -P 1 -p1
|
|
|
|
find . -name *.orig -delete
|
2007-01-16 00:17:45 +01:00
|
|
|
|
|
|
|
%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-06-01 01:29:07 +02:00
|
|
|
xtlibdir="$(pkg-config xtables --variable=xtlibdir)";
|
2011-06-04 10:54:02 +02:00
|
|
|
make %{?_smp_mflags} LIBDIR=%_libdir CCOPTS="-D_GNU_SOURCE %optflags -Wstrict-prototypes -fPIC -DXT_LIB_DIR=\\\"$xtlibdir\\\""
|
2007-01-16 00:17:45 +01:00
|
|
|
cd doc
|
|
|
|
make pdf
|
|
|
|
|
|
|
|
%install
|
2011-06-01 00:54:51 +02:00
|
|
|
install -d %buildroot/{etc/,sbin/,usr/{sbin,share/man/man{3,8}}}
|
|
|
|
install -d %buildroot/{/usr/include,%_libdir,/usr/share}
|
|
|
|
make install DESTDIR=%buildroot LIBDIR=%_libdir \
|
|
|
|
MODDESTDIR="%buildroot/%_libdir/tc"
|
2011-06-01 00:53:58 +02:00
|
|
|
# We have m_xt
|
2011-06-01 00:54:51 +02:00
|
|
|
rm -f "%buildroot/%_libdir/tc/m_ipt.so"
|
|
|
|
install lib/libnetlink.a %buildroot/%_libdir
|
2012-03-08 17:59:23 +01:00
|
|
|
chmod -x %buildroot/%_libdir/libnetlink.a
|
2011-06-01 00:54:51 +02:00
|
|
|
install include/libnetlink.h %buildroot%_includedir
|
2012-03-08 17:59:23 +01:00
|
|
|
chmod -x %buildroot%_includedir/libnetlink.h
|
|
|
|
#UsrMerge
|
|
|
|
ln -s %_sbindir/ip %buildroot/sbin
|
2011-06-01 00:54:51 +02:00
|
|
|
mkdir -p %buildroot/bin
|
2012-03-08 17:59:23 +01:00
|
|
|
ln -sf %_sbindir/ip %buildroot/bin/ip
|
|
|
|
#EndUsrMerge
|
2011-06-01 00:54:51 +02:00
|
|
|
rm %buildroot%_sbindir/ifcfg
|
2007-01-16 00:17:45 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-03-31 14:39:54 +02:00
|
|
|
%doc README* COPYING
|
2011-06-01 00:54:51 +02:00
|
|
|
%_sbindir/*
|
2012-03-08 17:59:23 +01:00
|
|
|
#UsrMerge
|
2007-01-16 00:17:45 +01:00
|
|
|
/sbin/*
|
|
|
|
/bin/ip
|
2012-03-08 17:59:23 +01:00
|
|
|
#EndUsrMerge
|
2012-05-24 21:38:11 +02:00
|
|
|
#%_mandir/man7/*
|
2007-01-16 00:17:45 +01:00
|
|
|
%_mandir/man8/*
|
2011-06-01 00:54:51 +02:00
|
|
|
%dir %_sysconfdir/iproute2
|
2011-07-10 19:14:43 +02:00
|
|
|
%config(noreplace) %_sysconfdir/iproute2/*
|
2011-06-01 00:53:58 +02:00
|
|
|
%_libdir/tc
|
2011-06-01 00:54:51 +02:00
|
|
|
%dir %_datadir/tc
|
|
|
|
%attr(644,root,root)%_datadir/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
|
2011-12-31 23:22:54 +01:00
|
|
|
%doc examples/ ip/ifcfg ip/routef ip/routel
|
2010-11-15 23:12:28 +01:00
|
|
|
|
2008-09-24 16:51:26 +02:00
|
|
|
%files -n libnetlink-devel
|
2010-11-15 23:12:28 +01:00
|
|
|
%defattr(-,root,root)
|
2011-06-01 00:54:51 +02:00
|
|
|
%_includedir/*
|
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
|