iproute2/iproute2-doc.spec
Jan Engelhardt dcf7e032b0 Accepting request 231921 from home:dirkmueller:branches:security:netfilter
- split iproute2-doc subpackage into a separate spec to reduce
  rebuild times
- use version macro instead of rversion
- add pre_checkin.sh to sync version number between iproute2 and 
  iproute2-doc


- split iproute2-doc subpackage into a separate spec to reduce
  rebuild times
- use version macro instead of rversion
- add pre_checkin.sh to sync version number between iproute2 and 
  iproute2-doc

- Update to new upstream release 3.14
* ip link: support for High Availability Seamless Redundancy
  (HSR) network devices.
* ip link: support for creating/deleting bonding devices
* ip link: support for specifying interface indexes during
  creation of devices
* tc/pkt_sched: add support for the "FQ" Fair Queue packet scheduler
* tc: support for the BPF-based traffic classifier
* tc, netem: support 64-bit quantity rate speeds
* tc: support for the new "PIE" Proportional Integral controller
  Enhanced scheduler
* ss: display PF_LOCAL-SOCK_SEQPACKET sockets as such rather than
  SOCK_DGRAM
* ss: display zone names when so needed
* ss: add support for retrieving SELinux contexts

- Update to new upstream release 3.12

OBS-URL: https://build.opensuse.org/request/show/231921
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iproute2?expand=0&rev=79
2014-04-28 15:07:57 +00:00

84 lines
2.6 KiB
RPMSpec

#
# spec file for package iproute2-doc
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: iproute2-doc
Version: 3.14.0
Release: 0
Summary: Documentation to iproute2
License: GPL-2.0+
Group: Documentation/Other
Url: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
BuildArch: noarch
Source: http://kernel.org/pub/linux/utils/net/iproute2/iproute2-%version.tar.xz
Source2: http://kernel.org/pub/linux/utils/net/iproute2/iproute2-%version.tar.sign
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison
BuildRequires: db-devel
BuildRequires: flex
BuildRequires: pkgconfig >= 0.21
BuildRequires: sgmltool
BuildRequires: texlive
BuildRequires: texlive-amsfonts
BuildRequires: texlive-cm-super
BuildRequires: texlive-dvips
BuildRequires: texlive-ec
BuildRequires: texlive-latex
BuildRequires: tex(english.ldf)
%define with_xt 1
%if 0%{?with_xt}
BuildRequires: pkgconfig(xtables) >= 1.4.11
%endif
%description
This package contains the PDF documentation from iproute2,
as well as examples and other outdated files.
%prep
%setup -qn iproute2-%version
%build
# build with -fPIC. For details see
# https://bugzilla.novell.com/show_bug.cgi?id=388021
xt_libdir="$(pkg-config xtables --variable=xtlibdir)";
xt_cflags="$(pkg-config xtables --cflags)";
make %{?_smp_mflags} LIBDIR="%_libdir" CCOPTS="-D_GNU_SOURCE %optflags -Wstrict-prototypes -Wno-error -fPIC -DXT_LIB_DIR=\\\"$xt_libdir\\\" $xt_cflags"
cd doc
make pdf
%install
make install DESTDIR="%{buildroot}" LIBDIR="%_libdir" \
MODDESTDIR="$b/%_libdir/tc" DOCDIR="%_docdir/iproute2"
mkdir -p "%{buildroot}/%_docdir/iproute2";
cp -an ip/{ifcfg,routef,routel} doc/*.pdf "%{buildroot}/%_docdir/iproute2/"
t=$$
mkdir $t
mv %{buildroot}/%_docdir $t
rm -rf %{buildroot}/*
mkdir -p %{buildroot}/%_docdir
mv $t/packages/* %{buildroot}/%_docdir
rm -rf $t
%files
%defattr(-,root,root)
%_docdir/iproute2
%changelog