don't build docs for module builds to limit dependencies
This commit is contained in:
commit
ee386742b8
15
iproute.spec
15
iproute.spec
@ -2,7 +2,7 @@
|
|||||||
Summary: Advanced IP routing and network device configuration tools
|
Summary: Advanced IP routing and network device configuration tools
|
||||||
Name: iproute
|
Name: iproute
|
||||||
Version: 4.10.0
|
Version: 4.10.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://kernel.org/pub/linux/utils/net/%{name}2/
|
URL: http://kernel.org/pub/linux/utils/net/%{name}2/
|
||||||
Source0: http://kernel.org/pub/linux/utils/net/%{name}2/%{name}2-%{version}.tar.xz
|
Source0: http://kernel.org/pub/linux/utils/net/%{name}2/%{name}2-%{version}.tar.xz
|
||||||
@ -28,8 +28,9 @@ BuildRequires: iptables-devel >= 1.4.5
|
|||||||
BuildRequires: libdb-devel
|
BuildRequires: libdb-devel
|
||||||
BuildRequires: libmnl-devel
|
BuildRequires: libmnl-devel
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
BuildRequires: linuxdoc-tools
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
%if ! 0%{?_module_build}
|
||||||
|
BuildRequires: linuxdoc-tools
|
||||||
BuildRequires: psutils
|
BuildRequires: psutils
|
||||||
BuildRequires: tex(cm-super-t1.enc)
|
BuildRequires: tex(cm-super-t1.enc)
|
||||||
BuildRequires: tex(dvips)
|
BuildRequires: tex(dvips)
|
||||||
@ -39,6 +40,7 @@ BuildRequires: tex(fullpage.sty)
|
|||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
BuildRequires: linux-atm-libs-devel
|
BuildRequires: linux-atm-libs-devel
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
# For the UsrMove transition period
|
# For the UsrMove transition period
|
||||||
Conflicts: filesystem < 3
|
Conflicts: filesystem < 3
|
||||||
Provides: /sbin/ip
|
Provides: /sbin/ip
|
||||||
@ -62,6 +64,7 @@ The Traffic Control utility manages queueing disciplines, their classes and
|
|||||||
attached filters and actions. It is the standard tool to configure QoS in
|
attached filters and actions. It is the standard tool to configure QoS in
|
||||||
Linux.
|
Linux.
|
||||||
|
|
||||||
|
%if ! 0%{?_module_build}
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for iproute2 utilities with examples
|
Summary: Documentation for iproute2 utilities with examples
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
@ -69,6 +72,7 @@ License: GPLv2+
|
|||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
The iproute documentation contains howtos and examples of settings.
|
The iproute documentation contains howtos and examples of settings.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: iproute development files
|
Summary: iproute development files
|
||||||
@ -91,7 +95,9 @@ export LIBDIR=/%{_libdir}
|
|||||||
export IPT_LIB_DIR=/%{_lib}/xtables
|
export IPT_LIB_DIR=/%{_lib}/xtables
|
||||||
./configure
|
./configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
%if ! 0%{?_module_build}
|
||||||
make -C doc
|
make -C doc
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export DESTDIR='%{buildroot}'
|
export DESTDIR='%{buildroot}'
|
||||||
@ -153,11 +159,13 @@ rm -rf '%{buildroot}%{_docdir}'
|
|||||||
%config(noreplace) %{_sysconfdir}/sysconfig/cbq/*
|
%config(noreplace) %{_sysconfdir}/sysconfig/cbq/*
|
||||||
%{_datadir}/bash-completion/completions/tc
|
%{_datadir}/bash-completion/completions/tc
|
||||||
|
|
||||||
|
%if ! 0%{?_module_build}
|
||||||
%files doc
|
%files doc
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc doc/*.ps
|
%doc doc/*.ps
|
||||||
%doc examples
|
%doc examples
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
@ -168,6 +176,9 @@ rm -rf '%{buildroot}%{_docdir}'
|
|||||||
%{_includedir}/iproute2/bpf_elf.h
|
%{_includedir}/iproute2/bpf_elf.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 11 2017 Karsten Hopp <karsten@redhat.com> - 4.10.0-3
|
||||||
|
- don't build docs for module builds to limit dependencies
|
||||||
|
|
||||||
* Fri Mar 17 2017 Phil Sutter <psutter@redhat.com> - 4.10.0-2
|
* Fri Mar 17 2017 Phil Sutter <psutter@redhat.com> - 4.10.0-2
|
||||||
- Add two fixes to 4.10.0 release from upstream.
|
- Add two fixes to 4.10.0 release from upstream.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user