Split out networkd sub-package
And add it to main package as recommended dependency.
This commit is contained in:
parent
043ff2e2f0
commit
f455b2249a
@ -23,6 +23,7 @@ o_devel = open('.file-list-devel', 'w')
|
|||||||
o_container = open('.file-list-container', 'w')
|
o_container = open('.file-list-container', 'w')
|
||||||
o_remote = open('.file-list-remote', 'w')
|
o_remote = open('.file-list-remote', 'w')
|
||||||
o_tests = open('.file-list-tests', 'w')
|
o_tests = open('.file-list-tests', 'w')
|
||||||
|
o_networkd = open('.file-list-networkd', 'w')
|
||||||
o_rest = open('.file-list-rest', 'w')
|
o_rest = open('.file-list-rest', 'w')
|
||||||
for file in files(buildroot):
|
for file in files(buildroot):
|
||||||
n = file.path[1:]
|
n = file.path[1:]
|
||||||
@ -51,6 +52,8 @@ for file in files(buildroot):
|
|||||||
o = o_pam
|
o = o_pam
|
||||||
elif '/rpm/' in n:
|
elif '/rpm/' in n:
|
||||||
o = o_rpm_macros
|
o = o_rpm_macros
|
||||||
|
elif re.search(r'networkd(?!.*\.conf)', n, re.X):
|
||||||
|
o = o_networkd
|
||||||
elif re.search(r'/lib.*\.pc|/man3/|/usr/include|(?<!/libsystemd-shared-...).so$', n):
|
elif re.search(r'/lib.*\.pc|/man3/|/usr/include|(?<!/libsystemd-shared-...).so$', n):
|
||||||
o = o_devel
|
o = o_devel
|
||||||
elif '/usr/lib/systemd/tests' in n:
|
elif '/usr/lib/systemd/tests' in n:
|
||||||
|
33
systemd.spec
33
systemd.spec
@ -20,7 +20,7 @@
|
|||||||
Name: systemd
|
Name: systemd
|
||||||
Url: https://www.freedesktop.org/wiki/Software/systemd
|
Url: https://www.freedesktop.org/wiki/Software/systemd
|
||||||
Version: 246.6
|
Version: 246.6
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
# For a breakdown of the licensing, see README
|
# For a breakdown of the licensing, see README
|
||||||
License: LGPLv2+ and MIT and GPLv2+
|
License: LGPLv2+ and MIT and GPLv2+
|
||||||
Summary: System and Service Manager
|
Summary: System and Service Manager
|
||||||
@ -154,6 +154,7 @@ Requires: dbus >= 1.9.18
|
|||||||
Requires: %{name}-pam = %{version}-%{release}
|
Requires: %{name}-pam = %{version}-%{release}
|
||||||
Requires: %{name}-rpm-macros = %{version}-%{release}
|
Requires: %{name}-rpm-macros = %{version}-%{release}
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
Recommends: %{name}-networkd = %{version}-%{release}
|
||||||
Recommends: diffutils
|
Recommends: diffutils
|
||||||
Requires: util-linux
|
Requires: util-linux
|
||||||
Recommends: libxkbcommon%{?_isa}
|
Recommends: libxkbcommon%{?_isa}
|
||||||
@ -166,7 +167,7 @@ Provides: system-setup-keyboard = 0.9
|
|||||||
# systemd-sysv-convert was removed in f20: https://fedorahosted.org/fpc/ticket/308
|
# systemd-sysv-convert was removed in f20: https://fedorahosted.org/fpc/ticket/308
|
||||||
Obsoletes: systemd-sysv < 206
|
Obsoletes: systemd-sysv < 206
|
||||||
# self-obsoletes so that dnf will install new subpackages on upgrade (#1260394)
|
# self-obsoletes so that dnf will install new subpackages on upgrade (#1260394)
|
||||||
Obsoletes: %{name} < 229-5
|
Obsoletes: %{name} < 246.6-2
|
||||||
Provides: systemd-sysv = 206
|
Provides: systemd-sysv = 206
|
||||||
Conflicts: initscripts < 9.56.1
|
Conflicts: initscripts < 9.56.1
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
@ -311,6 +312,19 @@ and to write journal files from serialized journal contents.
|
|||||||
This package contains systemd-journal-gatewayd,
|
This package contains systemd-journal-gatewayd,
|
||||||
systemd-journal-remote, and systemd-journal-upload.
|
systemd-journal-remote, and systemd-journal-upload.
|
||||||
|
|
||||||
|
%package networkd
|
||||||
|
Summary: A system service that manages network configurations
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
License: LGPLv2+
|
||||||
|
# https://src.fedoraproject.org/rpms/systemd/pull-request/34
|
||||||
|
Obsoletes: systemd < 246.6-2
|
||||||
|
|
||||||
|
%description networkd
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
It detects and configures network devices as they appear,
|
||||||
|
as well as creating virtual network devices.
|
||||||
|
|
||||||
%package tests
|
%package tests
|
||||||
Summary: Internal unit tests for systemd
|
Summary: Internal unit tests for systemd
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
@ -631,8 +645,6 @@ if [ $1 -eq 0 ] ; then
|
|||||||
serial-getty@.service \
|
serial-getty@.service \
|
||||||
console-getty.service \
|
console-getty.service \
|
||||||
debug-shell.service \
|
debug-shell.service \
|
||||||
systemd-networkd.service \
|
|
||||||
systemd-networkd-wait-online.service \
|
|
||||||
systemd-resolved.service \
|
systemd-resolved.service \
|
||||||
systemd-homed.service \
|
systemd-homed.service \
|
||||||
>/dev/null || :
|
>/dev/null || :
|
||||||
@ -767,6 +779,14 @@ fi
|
|||||||
%systemd_postun_with_restart systemd-journal-upload.service
|
%systemd_postun_with_restart systemd-journal-upload.service
|
||||||
%firewalld_reload
|
%firewalld_reload
|
||||||
|
|
||||||
|
%preun networkd
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
systemctl disable --quiet \
|
||||||
|
systemd-networkd.service \
|
||||||
|
systemd-networkd-wait-online.service \
|
||||||
|
>/dev/null || :
|
||||||
|
fi
|
||||||
|
|
||||||
%global _docdir_fmt %{name}
|
%global _docdir_fmt %{name}
|
||||||
|
|
||||||
%files -f %{name}.lang -f .file-list-rest
|
%files -f %{name}.lang -f .file-list-rest
|
||||||
@ -805,9 +825,14 @@ fi
|
|||||||
|
|
||||||
%files journal-remote -f .file-list-remote
|
%files journal-remote -f .file-list-remote
|
||||||
|
|
||||||
|
%files networkd -f .file-list-networkd
|
||||||
|
|
||||||
%files tests -f .file-list-tests
|
%files tests -f .file-list-tests
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 24 2020 Christian Glombek <lorbus@fedoraproject.org> - 246.6-2
|
||||||
|
- Split out networkd sub-package and add to main package as recommended dependency
|
||||||
|
|
||||||
* Sun Sep 20 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 246.6-1
|
* Sun Sep 20 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 246.6-1
|
||||||
- Update to latest stable release (various minor fixes: manager,
|
- Update to latest stable release (various minor fixes: manager,
|
||||||
networking, bootct, kernel-install, systemd-dissect, systemd-homed,
|
networking, bootct, kernel-install, systemd-dissect, systemd-homed,
|
||||||
|
Loading…
Reference in New Issue
Block a user