Ludwig Nussel
5fb68588dd
iproute2 4.13 OBS-URL: https://build.opensuse.org/request/show/521631 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iproute2?expand=0&rev=147
114 lines
3.6 KiB
RPMSpec
114 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package iproute2-doc
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX 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: 4.13
|
|
Release: 0
|
|
%define rversion 4.13.0
|
|
Summary: Documentation to iproute2
|
|
License: GPL-2.0+
|
|
Group: Documentation/Other
|
|
Url: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
|
|
|
|
Source: http://kernel.org/pub/linux/utils/net/iproute2/iproute2-%rversion.tar.xz
|
|
Source2: http://kernel.org/pub/linux/utils/net/iproute2/iproute2-%rversion.tar.sign
|
|
BuildArch: noarch
|
|
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)
|
|
BuildRequires: tex(fancyvrb.sty)
|
|
BuildRequires: tex(float.sty)
|
|
BuildRequires: tex(fullpage.sty)
|
|
%define with_xt 1
|
|
%if 0%{?with_xt}
|
|
BuildRequires: pkgconfig(libmnl)
|
|
BuildRequires: pkgconfig(xtables) >= 1.4.11
|
|
%endif
|
|
|
|
Patch1: adjust-installation-directories-for-openSUSE-SLE.patch
|
|
Patch2: use-sysconf-_SC_CLK_TCK-if-HZ-undefined.patch
|
|
Patch3: add-explicit-typecast-to-avoid-gcc-warning.patch
|
|
Patch4: xfrm-support-displaying-transformations-used-for-Mob.patch
|
|
Patch5: man-fix-documentation-references-in-manual-pages.patch
|
|
Patch6: split-link-and-compile-steps-for-binaries.patch
|
|
Patch7: examples-fix-bashisms-in-example-script.patch
|
|
Patch101: doc-revert-PDF-creation.patch
|
|
Patch102: Revert-emp-fix-warning-on-deprecated-bison-directive.patch
|
|
|
|
%description
|
|
This package contains the PDF documentation from iproute2,
|
|
as well as examples and other outdated files.
|
|
|
|
%prep
|
|
%setup -qn iproute2-%rversion
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
%patch7 -p1
|
|
%if 0%{?sles_version} == 11 || (0%{?suse_version} && 0%{?suse_version} <= 1220)
|
|
%patch101 -p1
|
|
%endif
|
|
%if 0%{?sles_version} == 11
|
|
%patch102 -p1
|
|
%endif
|
|
find . -name *.orig -delete
|
|
|
|
%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
|