SHA256
1
0
forked from pool/dhcp

Accepting request 766216 from network:dhcp

- Change remaining systemd requires to weak dependencies, too.
- Don't require net-tools with SLE15 or newer, it does not contain
  anything anymore we need
- Get ride of coreutils dependency (forwarded request 766200 from kukuk)

OBS-URL: https://build.opensuse.org/request/show/766216
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dhcp?expand=0&rev=116
This commit is contained in:
Dominique Leuenberger 2020-01-30 08:30:25 +00:00 committed by Git OBS Bridge
commit fadaa5df96
2 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Jan 22 06:12:51 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Change remaining systemd requires to weak dependencies, too.
- Don't require net-tools with SLE15 or newer, it does not contain
anything anymore we need
- Get ride of coreutils dependency
-------------------------------------------------------------------
Tue Oct 15 15:18:59 UTC 2019 - Reinhard Max <max@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package dhcp
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -102,7 +102,9 @@ Group: Productivity/Networking/Boot/Servers
Requires: insserv-compat
%endif
Requires: dhcp = %{version}
%if 0%{?suse_version} < 1500
Requires: net-tools
%endif
Requires(post): %fillup_prereq
Requires(pre): shadow
%systemd_ordering
@ -114,7 +116,6 @@ Requires(pre): group(nogroup)
Summary: ISC DHCP Client
Group: Productivity/Networking/Boot/Clients
Requires: %{_bindir}/getent
Requires: %{_bindir}/touch
Requires: dhcp = %{version}
Requires: iproute2
Requires: iputils
@ -128,9 +129,11 @@ Requires: net-tools
Summary: ISC DHCP Relay Agent
Group: Productivity/Networking/Boot/Servers
Requires: dhcp = %{version}
%if 0%{?suse_version} < 1500
Requires: net-tools
%endif
Requires(post): %fillup_prereq
%systemd_requires
%systemd_ordering
%package devel
Summary: Header Files and Libraries for dhcpctl API
@ -444,9 +447,9 @@ fi
%post client
test -e %{_localstatedir}/lib/dhcp/dhclient.leases || \
touch %{_localstatedir}/lib/dhcp/dhclient.leases
echo -n > %{_localstatedir}/lib/dhcp/dhclient.leases
test -e %{_localstatedir}/lib/dhcp6/dhclient6.leases || \
touch %{_localstatedir}/lib/dhcp6/dhclient6.leases
echo -n > %{_localstatedir}/lib/dhcp6/dhclient6.leases
%files
%license LICENSE