diff --git a/iproute2.spec b/iproute2.spec index 19e54d2..8861918 100644 --- a/iproute2.spec +++ b/iproute2.spec @@ -42,30 +42,36 @@ Patch10: %name-2.6.29-1-ss-pclose.diff Patch13: %name-2.6.29-1-memleak.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build -%package -n libnetlink-devel -License: GPLv2+ -Summary: A Higher Level Interface to the Netlink Service -Group: Development/Libraries/C and C++ -Provides: libnetlink - -%description -n libnetlink-devel -libnetlink provides a higher level interface to rtnetlink(7). - - - %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 Stephem Hemminger +%package -n libnetlink-devel +Summary: A Higher Level Interface to the Netlink Service +Group: Development/Libraries/C and C++ +Provides: libnetlink = %version-%release + +%description -n libnetlink-devel +libnetlink provides a higher level interface to rtnetlink(7). + +%package doc +Summary: Documentation to iproute2 +Group: Documentation +%if 0%{?suse_version} >= 1130 +BuildArch: noarch +%endif + +%description doc +This package contains the PDF documentation from iproute2, +as well as examples and other outdated files. + %prep %setup -q -n %name-%rversion %patch0 @@ -104,9 +110,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) -%doc doc/api-ip6-flowlabels.pdf doc/arpd.pdf doc/ip-cref.pdf README.iproute2+tc -%doc doc/ip-tunnels.pdf doc/nstat.pdf doc/rtstat.pdf doc/ss.pdf README -%doc RELNOTES ChangeLog examples/ README.decnet ip/ifcfg ip/routef ip/routel +%doc README* RELNOTES /usr/sbin/* /sbin/* /bin/ip @@ -121,8 +125,14 @@ rm -rf $RPM_BUILD_ROOT %dir /usr/share/tc %attr(644,root,root)/usr/share/tc/* +%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 + %files -n libnetlink-devel -%defattr(644,root,root) +%defattr(-,root,root) /usr/include/* %_mandir/man3/libnetlink* %_libdir/lib*