diff --git a/net-tools.spec b/net-tools.spec index 41bb32b..24881a6 100644 --- a/net-tools.spec +++ b/net-tools.spec @@ -82,19 +82,32 @@ Patch84: net-tools-1.60-deb-large-indexes.patch Patch85: net-tools-1.60-alt-iptunnel-includes.patch +%description +This package contains the traditional networking tools. If you +for some reason need obsolete tools (like ifconfig), they are +in the %name-compat subpackage. + +%package compat +Summary: Obsolete networking tools (for pre-2.4 kernels) +Group: System/Configuration/Networking # due to hostname Requires: coreutils >= 0:5.3.1-alt0.2 - # due to resolve Requires: hostinfo >= 0:2.2-alt2 - # due to mii-tool and ether-wake Requires: ethtool >= 1:2.6.33, etherwake -%description -This package contains the traditional tools needed for setting up -networking: ethers, route and others. -Most of them are obsolete. For replacement check iproute2 package. +%description compat +These tools are obsolete (use iproute2 package for replacement), +but may still be used by some old systems. Do not install unless +you really need them. + +%package doc +Summary: Documentation for %name +Group: System/Configuration/Networking + +%description doc +%summary %prep %setup -q @@ -205,12 +218,39 @@ rm -r %buildroot%_mandir/*_* #find_lang --with-man '[a-z-]\+' --output %name.lang %find_lang %name -%files -f %name.lang -/bin/* -/sbin/* -%_mandir/man?/* +%files +/bin/arp +/sbin/arp +/bin/netstat +%_man5dir/ethers.5* +%_man8dir/arp.8* +%_man8dir/netstat.8* + +# do we really need these translations? +%files doc -f %name.lang %doc README* TODO +%files compat +/bin/ifconfig +/bin/route +/sbin/ifconfig +/sbin/ipmaddr +/sbin/iptunnel +/sbin/mii-tool +/sbin/nameif +/sbin/plipconfig +/sbin/route +/sbin/slattach +%_man8dir/ifconfig.8.xz +%_man8dir/ipmaddr.8.xz +%_man8dir/iptunnel.8.xz +%_man8dir/mii-tool.8.xz +%_man8dir/nameif.8.xz +%_man8dir/plipconfig.8.xz +%_man8dir/route.8.xz +%_man8dir/slattach.8.xz + + %changelog * Fri Jun 23 2017 Aleksei Nikiforov 1.60-alt19 - Update to build with recent glibc headers