remove *domainname files provides by yp-tools and require yp-tools [release 2.10-2mamba;Sun Apr 11 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 07:35:17 +01:00
parent a15a9e2b62
commit f115ec57bb

View File

@ -1,6 +1,6 @@
Name: net-tools Name: net-tools
Version: 2.10 Version: 2.10
Release: 1mamba Release: 2mamba
Summary: The basic tools for setting up networking. Summary: The basic tools for setting up networking.
Group: Applications/Networking Group: Applications/Networking
Vendor: openmamba Vendor: openmamba
@ -22,8 +22,9 @@ License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
Requires: yp-tools
Requires: inetutils Requires: inetutils
BuildRoot: %{_tmppath}/%{name}-%{version}-root Provides: /bin/hostname
%description %description
The net-tools package contains the basic tools needed for setting up networking: ifconfig, netstat, route and others. The net-tools package contains the basic tools needed for setting up networking: ifconfig, netstat, route and others.
@ -44,52 +45,56 @@ _EOF
#cp %{SOURCE1} ./config.in #cp %{SOURCE1} ./config.in
yes "" | make \ yes "" | make \
BINDIR=%{_bindir} \
SBINDIR=%{_sbindir} \
CC=%{_target_platform}-gcc \ CC=%{_target_platform}-gcc \
AR=%{_target_platform}-ar AR=%{_target_platform}-ar
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \ %makeinstall \
BINDIR=%{_bindir} \
SBINDIR=%{_sbindir} \
CC=%{_target_platform}-gcc \ CC=%{_target_platform}-gcc \
AR=%{_target_platform}-ar AR=%{_target_platform}-ar
# compatibility symlinks # compatibility symlinks
ln -sf ../bin/route %{buildroot}/sbin/route ln -sf ../bin/route %{buildroot}%{_sbindir}/route
ln -sf ../bin/ifconfig %{buildroot}/sbin/ifconfig ln -sf ../bin/ifconfig %{buildroot}%{_sbindir}/ifconfig
# the following is provided by yp-tools
rm %{buildroot}%{_bindir}/{,nis,yp}domainname
rm -f %{buildroot}%{_mandir}/man1/{,nis,yp}domainname*
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
/bin/dnsdomainname %{_bindir}/dnsdomainname
/bin/domainname %{_bindir}/hostname
/bin/hostname %{_bindir}/ifconfig
/bin/ifconfig %{_bindir}/netstat
/bin/netstat %{_bindir}/route
/bin/nisdomainname %{_sbindir}/arp
/bin/ypdomainname %{_sbindir}/ifconfig
/bin/route %{_sbindir}/ipmaddr
/sbin/arp %{_sbindir}/iptunnel
/sbin/ifconfig %{_sbindir}/mii-tool
/sbin/ipmaddr %{_sbindir}/nameif
/sbin/iptunnel %{_sbindir}/plipconfig
/sbin/mii-tool %{_sbindir}/rarp
/sbin/nameif %{_sbindir}/route
/sbin/plipconfig %{_sbindir}/slattach
/sbin/rarp
/sbin/route
/sbin/slattach
%{_mandir}/man1/dnsdomainname.* %{_mandir}/man1/dnsdomainname.*
%{_mandir}/man1/domainname.*
%{_mandir}/man1/nisdomainname.*
%{_mandir}/man1/ypdomainname.*
%{_mandir}/man1/hostname.1* %{_mandir}/man1/hostname.1*
%{_mandir}/man5/* %{_mandir}/man5/*
%{_mandir}/man8/* %{_mandir}/man8/*
%changelog %changelog
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10-2mamba
- remove *domainname files provides by yp-tools and require yp-tools
* Mon Jan 25 2021 Automatic Build System <autodist@mambasoft.it> 2.10-1mamba * Mon Jan 25 2021 Automatic Build System <autodist@mambasoft.it> 2.10-1mamba
- automatic version update by autodist - automatic version update by autodist