2024-01-29 10:23:07 +00:00
|
|
|
|
#global commit 1781de18ab8ebc3e42a607851d8effb3b0355c87
|
2018-11-02 10:19:30 +00:00
|
|
|
|
%{?commit:%global shortcommit %(c=%{commit}; echo ${c:0:7})}
|
2012-08-08 10:09:51 +00:00
|
|
|
|
|
2012-09-13 12:43:03 +00:00
|
|
|
|
# We ship a .pc file but don't want to have a dep on pkg-config. We
|
|
|
|
|
# strip the automatically generated dep here and instead co-own the
|
|
|
|
|
# directory.
|
|
|
|
|
%global __requires_exclude pkg-config
|
|
|
|
|
|
2015-03-23 02:47:59 +00:00
|
|
|
|
%global pkgdir %{_prefix}/lib/systemd
|
|
|
|
|
%global system_unit_dir %{pkgdir}/system
|
2017-03-02 16:30:49 +00:00
|
|
|
|
%global user_unit_dir %{pkgdir}/user
|
2015-03-23 02:47:59 +00:00
|
|
|
|
|
2021-05-20 14:52:27 +00:00
|
|
|
|
%if 0%{?__isa_bits} == 64
|
|
|
|
|
%global elf_bits (64bit)
|
|
|
|
|
%global elf_suffix ()%{elf_bits}
|
|
|
|
|
%endif
|
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%bcond bzip2 1
|
|
|
|
|
%bcond gnutls 1
|
|
|
|
|
%bcond lz4 1
|
|
|
|
|
%bcond xz 1
|
|
|
|
|
%bcond zlib 1
|
|
|
|
|
%bcond zstd 1
|
2022-06-23 01:13:02 +00:00
|
|
|
|
|
2022-01-07 16:52:31 +00:00
|
|
|
|
# Bootstrap may be needed to break circular dependencies with cryptsetup,
|
|
|
|
|
# e.g. when re-building cryptsetup on a json-c SONAME-bump.
|
2023-07-16 23:12:46 +00:00
|
|
|
|
%bcond bootstrap 0
|
|
|
|
|
%bcond tests 1
|
|
|
|
|
%bcond lto 1
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%bcond docs 1
|
2020-02-28 11:25:15 +00:00
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
# Build from git main
|
|
|
|
|
%bcond upstream 0
|
|
|
|
|
|
|
|
|
|
# When bootstrap, libcryptsetup is disabled
|
|
|
|
|
# but auto-features causes many options to be turned on
|
2024-06-26 15:26:24 +00:00
|
|
|
|
# that depend on libcryptsetup (e.g. libcryptsetup-plugins)
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
%global __meson_auto_features disabled
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Override %%autorelease. This is ugly, but rpmautospec doesn't implement
|
|
|
|
|
# autorelease correctly if the macro is conditionalized in the Release field.
|
|
|
|
|
%{?release_override:%global autorelease %{release_override}%{?dist}}
|
2021-06-01 06:49:40 +00:00
|
|
|
|
|
2010-06-22 04:16:32 +00:00
|
|
|
|
Name: systemd
|
2022-04-27 13:45:25 +00:00
|
|
|
|
Url: https://systemd.io
|
2024-01-29 10:23:07 +00:00
|
|
|
|
# Allow users to specify the version and release when building the rpm by
|
|
|
|
|
# setting the %%version_override and %%release_override macros.
|
2024-06-26 15:26:24 +00:00
|
|
|
|
Version: %{?version_override}%{!?version_override:256}
|
2024-10-15 12:39:24 +00:00
|
|
|
|
Release: 15%{?dist}
|
2021-06-01 06:49:40 +00:00
|
|
|
|
|
2023-03-03 17:17:58 +00:00
|
|
|
|
%global stable %(c="%version"; [ "$c" = "${c#*.*}" ]; echo $?)
|
|
|
|
|
|
2012-06-05 13:16:47 +00:00
|
|
|
|
# For a breakdown of the licensing, see README
|
2023-02-08 11:38:11 +00:00
|
|
|
|
License: LGPL-2.1-or-later AND MIT AND GPL-2.0-or-later
|
2016-11-03 23:00:42 +00:00
|
|
|
|
Summary: System and Service Manager
|
2013-04-09 14:19:19 +00:00
|
|
|
|
|
2015-07-29 21:32:39 +00:00
|
|
|
|
# download tarballs with "spectool -g systemd.spec"
|
2018-11-02 10:19:30 +00:00
|
|
|
|
%if %{defined commit}
|
2024-01-29 10:23:07 +00:00
|
|
|
|
Source0: https://github.com/systemd/systemd/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
2019-11-19 12:27:41 +00:00
|
|
|
|
%else
|
2021-02-23 00:48:03 +00:00
|
|
|
|
Source0: https://github.com/systemd/systemd/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz
|
2013-04-09 14:19:19 +00:00
|
|
|
|
%endif
|
2016-08-04 05:05:08 +00:00
|
|
|
|
# This file must be available before %%prep.
|
2018-10-29 00:53:24 +00:00
|
|
|
|
# It is generated during systemd build and can be found in build/src/core/.
|
2016-04-04 14:51:55 +00:00
|
|
|
|
Source1: triggers.systemd
|
2017-12-11 23:41:07 +00:00
|
|
|
|
Source2: split-files.py
|
2018-02-21 14:23:30 +00:00
|
|
|
|
Source3: purge-nobody-user
|
2024-01-29 10:23:07 +00:00
|
|
|
|
Source4: test_sysusers_defined.py
|
2015-05-20 04:34:19 +00:00
|
|
|
|
|
2013-04-09 14:19:19 +00:00
|
|
|
|
# Prevent accidental removal of the systemd package
|
2024-01-29 10:23:07 +00:00
|
|
|
|
Source5: yum-protect-systemd.conf
|
|
|
|
|
|
|
|
|
|
Source6: inittab
|
|
|
|
|
Source7: sysctl.conf.README
|
|
|
|
|
Source8: systemd-journal-remote.xml
|
|
|
|
|
Source9: systemd-journal-gatewayd.xml
|
|
|
|
|
Source10: 20-yama-ptrace.conf
|
|
|
|
|
Source11: systemd-udev-trigger-no-reload.conf
|
2023-09-19 06:56:24 +00:00
|
|
|
|
# https://fedoraproject.org/wiki/How_to_filter_libabigail_reports
|
|
|
|
|
Source13: .abignore
|
2013-04-09 14:19:19 +00:00
|
|
|
|
|
2021-02-05 09:39:39 +00:00
|
|
|
|
Source14: 10-oomd-defaults.conf
|
2022-08-23 18:59:16 +00:00
|
|
|
|
Source15: 10-oomd-per-slice-defaults.conf
|
2024-07-22 15:01:08 +00:00
|
|
|
|
|
2023-06-01 21:17:44 +00:00
|
|
|
|
Source17: 10-map-count.conf
|
2021-02-05 09:39:39 +00:00
|
|
|
|
|
2020-02-07 15:34:30 +00:00
|
|
|
|
Source21: macros.sysusers
|
|
|
|
|
Source22: sysusers.attr
|
|
|
|
|
Source23: sysusers.prov
|
|
|
|
|
Source24: sysusers.generate-pre.sh
|
|
|
|
|
|
2023-02-02 17:09:03 +00:00
|
|
|
|
Source25: 98-default-mac-none.link
|
|
|
|
|
|
2017-06-15 15:25:17 +00:00
|
|
|
|
%if 0
|
2017-10-25 14:25:53 +00:00
|
|
|
|
GIT_DIR=../../src/systemd/.git git format-patch-ab --no-signature -M -N v235..v235-stable
|
2017-06-15 15:25:17 +00:00
|
|
|
|
i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done|xclip
|
2022-02-10 16:37:56 +00:00
|
|
|
|
GIT_DIR=../../src/systemd/.git git diffab -M v233..master@{2017-06-15} -- hwdb/[67]* hwdb/parse_hwdb.py >hwdb.patch
|
2017-06-15 15:25:17 +00:00
|
|
|
|
%endif
|
2017-03-02 16:30:49 +00:00
|
|
|
|
|
2021-03-11 11:37:25 +00:00
|
|
|
|
# Backports of patches from upstream (0000–0499)
|
2021-03-23 00:08:51 +00:00
|
|
|
|
#
|
2022-05-06 18:48:00 +00:00
|
|
|
|
# Any patches which are "in preparation" upstream should be listed here, rather
|
|
|
|
|
# than in the next section. Packit CI will drop any patches in this range before
|
|
|
|
|
# applying upstream pull requests.
|
2022-03-17 21:02:01 +00:00
|
|
|
|
|
2024-06-26 15:26:24 +00:00
|
|
|
|
# RHEL-specific
|
2024-07-08 14:16:18 +00:00
|
|
|
|
Patch0001: 0001-Create-CNAME.patch
|
|
|
|
|
Patch0002: 0002-man-systemd-reorder-content-a-bit.patch
|
|
|
|
|
Patch0003: 0003-hostnamed-don-t-allow-hostnamed-to-exit-on-idle-if-v.patch
|
|
|
|
|
Patch0004: 0004-sd-dhcp-server-clear-buffer-before-receive.patch
|
|
|
|
|
Patch0005: 0005-rules-Limit-the-number-of-device-units-generated-for.patch
|
|
|
|
|
Patch0006: 0006-strbuf-use-GREEDY_REALLOC-to-grow-the-buffer.patch
|
|
|
|
|
Patch0007: 0007-tpm2-setup-Don-t-fail-if-we-can-t-access-the-TPM-due.patch
|
|
|
|
|
Patch0008: 0008-resolved-permit-dnssec-rrtype-questions-when-we-aren.patch
|
|
|
|
|
Patch0009: 0009-repart-Use-crypt_reencrypt_run-if-available.patch
|
|
|
|
|
Patch0010: 0010-test-dump-a-simple-summary-at-the-end-of-TEST-02-UNI.patch
|
|
|
|
|
Patch0011: 0011-repart-Use-CRYPT_ACTIVATE_PRIVATE.patch
|
|
|
|
|
Patch0012: 0012-NEWS-note-that-new-stable-releases-will-be-in-the-ma.patch
|
|
|
|
|
Patch0013: 0013-shell-completion-only-offer-devices-for-completion.patch
|
|
|
|
|
Patch0014: 0014-CODING_STYLE-document-reterr_-return-parameters.patch
|
|
|
|
|
Patch0015: 0015-analyze-show-pcrs-also-in-sha384-bank.patch
|
|
|
|
|
Patch0016: 0016-fundamental-declare-flex-array-updated-for-gcc15-and.patch
|
|
|
|
|
Patch0017: 0017-man-add-a-bit-of-a-warning-to-systemd-tmpfiles-purge.patch
|
|
|
|
|
Patch0018: 0018-man-units-drop-temporary-from-description-of-systemd.patch
|
|
|
|
|
Patch0019: 0019-mkosi-enable-unprivileged-user-ns-for-integration-te.patch
|
|
|
|
|
Patch0020: 0020-mkosi-use-ports.ubuntu.com-for-non-x86-backports.patch
|
|
|
|
|
Patch0021: 0021-mkosi-install-EFI-packages-only-on-EFI-architectures.patch
|
|
|
|
|
Patch0022: 0022-test-check-the-skip-condition-before-installing-addi.patch
|
|
|
|
|
Patch0023: 0023-test-drop-unneeded-firmware-uefi-setting.patch
|
|
|
|
|
Patch0024: 0024-test-drop-obsolete-comment.patch
|
|
|
|
|
Patch0025: 0025-test-support-TEST_NO_KVM.patch
|
|
|
|
|
Patch0026: 0026-test-support-TEST_NO_QEMU-in-mkosi-integration-wrapp.patch
|
|
|
|
|
Patch0027: 0027-test-use-auto-instead-of-uefi-for-automated-fallback.patch
|
|
|
|
|
Patch0028: 0028-core-service-fix-accept-socket-deserialization.patch
|
|
|
|
|
Patch0029: 0029-test-network-mention-that-the-captive-portal-option-.patch
|
|
|
|
|
Patch0030: 0030-CI-disable-secure-boot-in-mkosi-GHA-runs.patch
|
|
|
|
|
Patch0031: 0031-mkosi-bump-to-latest.patch
|
|
|
|
|
Patch0032: 0032-NEWS-fix-typo.patch
|
|
|
|
|
Patch0033: 0033-install-allow-removing-symlinks-even-for-units-that-.patch
|
|
|
|
|
Patch0034: 0034-tmpfiles-honour-dry-run-when-removing-directories.patch
|
|
|
|
|
Patch0035: 0035-tmpfiles-insist-on-at-least-one-configuration-file-b.patch
|
|
|
|
|
Patch0036: 0036-tmpfiles-move-purge-to-command-section-in-help-text-.patch
|
|
|
|
|
Patch0037: 0037-mkosi-restrict-noble-backports-to-noble-builds.patch
|
|
|
|
|
Patch0038: 0038-repart-fix-memory-leak.patch
|
|
|
|
|
Patch0039: 0039-logs-show-do-not-use-_SOURCE_MONOTONIC_TIMESTAMP-fie.patch
|
|
|
|
|
Patch0040: 0040-ci-update-workflows-to-run-on-source-git-setup.patch
|
|
|
|
|
Patch0041: 0041-ci-setup-source-git-automation.patch
|
|
|
|
|
Patch0042: 0042-ci-deploy-systemd-man-to-GitHub-Pages.patch
|
|
|
|
|
Patch0043: 0043-ci-reconfigure-Packit-for-RHEL-10.patch
|
|
|
|
|
Patch0044: 0044-ci-allow-to-pass-parameters-together-with-rhel-only-.patch
|
|
|
|
|
Patch0045: 0045-journal-again-create-user-journals-for-users-with-hi.patch
|
|
|
|
|
Patch0046: 0046-tmpfiles-make-purge-hard-to-mis-use.patch
|
|
|
|
|
Patch0047: 0047-fedora-use-system-auth-in-pam-systemd-user.patch
|
|
|
|
|
Patch0048: 0048-net-naming-scheme-start-rhel10-naming-and-include-rh.patch
|
|
|
|
|
Patch0049: 0049-rules-copy-40-redhat.rules-from-RHEL-9.patch
|
|
|
|
|
Patch0050: 0050-logind-set-RemoveIPC-to-false-by-default.patch
|
|
|
|
|
Patch0051: 0051-tmpfiles-don-t-create-resolv.conf-stub-resolv.conf-s.patch
|
|
|
|
|
Patch0052: 0052-rc-local-order-after-network-online.target.patch
|
|
|
|
|
Patch0053: 0053-random-util-increase-random-seed-size-to-1024.patch
|
|
|
|
|
Patch0054: 0054-journal-don-t-enable-systemd-journald-audit.socket-b.patch
|
|
|
|
|
Patch0055: 0055-journald.conf-don-t-touch-current-audit-settings.patch
|
|
|
|
|
Patch0056: 0056-rules-add-elevator-kernel-command-line-parameter.patch
|
|
|
|
|
Patch0057: 0057-pid1-bump-DefaultTasksMax-to-80-of-the-kernel-pid.ma.patch
|
|
|
|
|
Patch0058: 0058-udev-net-setup-link-change-the-default-MACAddressPol.patch
|
|
|
|
|
Patch0059: 0059-core-decrease-log-level-of-messages-about-use-of-Kil.patch
|
|
|
|
|
Patch0060: 0060-meson-rename-libbasic-to-libbasic_static.patch
|
|
|
|
|
Patch0061: 0061-meson-build-libsystemd-core-via-an-intermediate-stat.patch
|
|
|
|
|
Patch0062: 0062-meson-add-option-to-build-systemd-executor-staticall.patch
|
|
|
|
|
Patch0063: 0063-taint-remove-unmerged-bin.patch
|
|
|
|
|
Patch0064: 0064-presets-remove-resolved.patch
|
2024-07-19 07:04:06 +00:00
|
|
|
|
Patch0065: 0065-doc-add-downstream-CONTRIBUTING-document.patch
|
|
|
|
|
Patch0066: 0066-ci-allow-policy-as-rhel-only-keyword.patch
|
|
|
|
|
Patch0067: 0067-ci-run-mkosi-test-only-for-Fedora-and-CentOS-Stream.patch
|
|
|
|
|
Patch0068: 0068-taint-remove-unused-variable-usr_sbin.patch
|
|
|
|
|
Patch0069: 0069-packit-drop-the-libarchive-workaround.patch
|
|
|
|
|
Patch0070: 0070-packit-drop-the-dependency-on-python3-zstd.patch
|
|
|
|
|
Patch0071: 0071-coredump-by-default-process-and-store-core-files-up-.patch
|
2024-07-23 12:39:36 +00:00
|
|
|
|
Patch0072: 0072-Avoid-tmp-being-mounted-as-tmpfs-without-the-user-s-.patch
|
|
|
|
|
Patch0073: 0073-unit-don-t-add-Requires-for-tmp.mount.patch
|
|
|
|
|
Patch0074: 0074-units-add-Install-section-to-tmp.mount.patch
|
|
|
|
|
Patch0075: 0075-units-don-t-enable-tmp.mount-statically-in-local-fs..patch
|
2024-08-15 10:50:22 +00:00
|
|
|
|
Patch0076: 0076-netif-naming-scheme-add-rhel-9.5-scheme.patch
|
|
|
|
|
Patch0077: 0077-udev-builtin-net_id-use-firmware_node-sun-for-ID_NET.patch
|
|
|
|
|
Patch0078: 0078-man-net-naming-scheme-add-missing-period.patch
|
|
|
|
|
Patch0079: 0079-Revert-packit-drop-the-dependency-on-python3-zstd.patch
|
2024-08-22 13:43:32 +00:00
|
|
|
|
Patch0080: 0080-systemctl-do-not-try-to-acquire-triggering-units-for.patch
|
|
|
|
|
Patch0081: 0081-core-unit-add-one-assertion-for-u-manager.patch
|
|
|
|
|
Patch0082: 0082-core-service-destroy-runtime-data-when-Type-oneshot-.patch
|
|
|
|
|
Patch0083: 0083-cgroup-util-Ignore-kernel-threads-in-cg_kill_items.patch
|
|
|
|
|
Patch0084: 0084-cgroup-util-Don-t-try-to-open-pidfd-for-kernel-threa.patch
|
|
|
|
|
Patch0085: 0085-cgroup-util-fix-typo.patch
|
|
|
|
|
Patch0086: 0086-netif-naming-scheme-rename-rhel-10.0-to-rhel-10.0.be.patch
|
|
|
|
|
Patch0087: 0087-net-naming-scheme-disable-NAMING_FIRMWARE_NODE_SUN.patch
|
|
|
|
|
Patch0088: 0088-net-naming-scheme-remove-NAMING_FIRMWARE_NODE_SUN-fr.patch
|
2024-08-30 14:04:39 +00:00
|
|
|
|
Patch0089: 0089-Revert-cgroup-util-Don-t-try-to-open-pidfd-for-kerne.patch
|
|
|
|
|
Patch0090: 0090-ukify-Skip-test-on-architectures-without-UEFI.patch
|
2024-10-15 12:39:24 +00:00
|
|
|
|
Patch0091: 0091-ci-rename-beta-branch-to-match-dist-git-name.patch
|
|
|
|
|
Patch0092: 0092-udev-Handle-PTP-device-symlink-properly-on-udev-acti.patch
|
|
|
|
|
Patch0093: 0093-Fix-detection-of-TDX-confidential-VM-on-Azure-platfo.patch
|
|
|
|
|
Patch0094: 0094-confidential-virt-split-caching-of-CVM-detection-int.patch
|
|
|
|
|
Patch0095: 0095-confidential-virt-add-detection-for-s390x-target.patch
|
|
|
|
|
Patch0096: 0096-man-systemd-detect-virt-fix-row-spanning-for-VM-head.patch
|
|
|
|
|
Patch0097: 0097-man-systemd-detect-virt-list-known-CVM-technologies.patch
|
2020-11-12 12:08:11 +00:00
|
|
|
|
|
2024-06-26 15:26:24 +00:00
|
|
|
|
# Downstream-only patches (9000–9999)
|
2022-12-14 21:35:52 +00:00
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%ifarch %{ix86} x86_64 aarch64 riscv64
|
2023-11-07 15:27:34 +00:00
|
|
|
|
%global want_bootloader 1
|
2017-02-14 23:59:10 +00:00
|
|
|
|
%endif
|
|
|
|
|
|
2017-12-11 12:46:21 +00:00
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gcc-c++
|
2021-12-25 14:29:02 +00:00
|
|
|
|
BuildRequires: clang
|
2020-07-27 10:10:55 +00:00
|
|
|
|
BuildRequires: coreutils
|
2010-06-22 04:16:32 +00:00
|
|
|
|
BuildRequires: libcap-devel
|
2014-12-10 23:01:54 +00:00
|
|
|
|
BuildRequires: libmount-devel
|
2020-02-05 12:21:04 +00:00
|
|
|
|
BuildRequires: libfdisk-devel
|
|
|
|
|
BuildRequires: libpwquality-devel
|
2010-06-22 04:16:32 +00:00
|
|
|
|
BuildRequires: pam-devel
|
2010-07-24 01:05:02 +00:00
|
|
|
|
BuildRequires: libselinux-devel
|
2010-09-14 15:51:38 +00:00
|
|
|
|
BuildRequires: audit-libs-devel
|
2020-04-16 11:05:54 +00:00
|
|
|
|
%if %{without bootstrap}
|
2012-12-05 13:51:32 +00:00
|
|
|
|
BuildRequires: cryptsetup-devel
|
2020-04-16 11:05:54 +00:00
|
|
|
|
%endif
|
2012-03-20 09:27:26 +00:00
|
|
|
|
BuildRequires: dbus-devel
|
2024-01-29 10:23:07 +00:00
|
|
|
|
BuildRequires: util-linux
|
2020-04-19 14:47:57 +00:00
|
|
|
|
# /usr/bin/getfacl is needed by test-acl-util
|
2024-01-29 10:23:07 +00:00
|
|
|
|
BuildRequires: acl
|
2011-07-13 21:28:44 +00:00
|
|
|
|
BuildRequires: libacl-devel
|
2013-03-07 22:46:46 +00:00
|
|
|
|
BuildRequires: gobject-introspection-devel
|
|
|
|
|
BuildRequires: libblkid-devel
|
2022-06-23 01:13:02 +00:00
|
|
|
|
%if %{with xz}
|
2012-01-11 03:44:49 +00:00
|
|
|
|
BuildRequires: xz-devel
|
2017-06-07 17:14:47 +00:00
|
|
|
|
BuildRequires: xz
|
2022-06-23 01:13:02 +00:00
|
|
|
|
%endif
|
|
|
|
|
%if %{with lz4}
|
2015-11-19 13:46:22 +00:00
|
|
|
|
BuildRequires: lz4-devel
|
2017-06-07 17:14:47 +00:00
|
|
|
|
BuildRequires: lz4
|
2022-06-23 01:13:02 +00:00
|
|
|
|
%endif
|
|
|
|
|
%if %{with bzip2}
|
2015-11-19 13:46:22 +00:00
|
|
|
|
BuildRequires: bzip2-devel
|
2022-06-23 01:13:02 +00:00
|
|
|
|
%endif
|
|
|
|
|
%if %{with zstd}
|
2020-06-30 07:40:20 +00:00
|
|
|
|
BuildRequires: libzstd-devel
|
2022-06-23 01:13:02 +00:00
|
|
|
|
%endif
|
2017-12-12 05:28:37 +00:00
|
|
|
|
BuildRequires: libidn2-devel
|
2014-08-19 23:48:42 +00:00
|
|
|
|
BuildRequires: libcurl-devel
|
2013-03-07 22:46:46 +00:00
|
|
|
|
BuildRequires: kmod-devel
|
2014-07-22 03:04:01 +00:00
|
|
|
|
BuildRequires: elfutils-devel
|
2020-02-05 12:21:04 +00:00
|
|
|
|
BuildRequires: openssl-devel
|
2022-06-23 01:13:02 +00:00
|
|
|
|
%if %{with gnutls}
|
2014-07-22 03:04:01 +00:00
|
|
|
|
BuildRequires: gnutls-devel
|
2022-06-23 01:13:02 +00:00
|
|
|
|
%endif
|
2023-06-05 03:42:45 +00:00
|
|
|
|
%if %{undefined rhel}
|
2012-08-23 01:27:58 +00:00
|
|
|
|
BuildRequires: qrencode-devel
|
2023-06-05 03:42:45 +00:00
|
|
|
|
%endif
|
2012-09-28 00:38:31 +00:00
|
|
|
|
BuildRequires: libmicrohttpd-devel
|
2015-01-16 05:27:43 +00:00
|
|
|
|
BuildRequires: libxkbcommon-devel
|
2015-02-16 20:54:03 +00:00
|
|
|
|
BuildRequires: iptables-devel
|
2024-01-29 10:23:07 +00:00
|
|
|
|
BuildRequires: pkgconfig(bash-completion)
|
|
|
|
|
BuildRequires: pkgconfig(libarchive)
|
2020-09-27 12:01:19 +00:00
|
|
|
|
BuildRequires: pkgconfig(libfido2)
|
2021-05-06 13:30:27 +00:00
|
|
|
|
BuildRequires: pkgconfig(tss2-esys)
|
|
|
|
|
BuildRequires: pkgconfig(tss2-rc)
|
|
|
|
|
BuildRequires: pkgconfig(tss2-mu)
|
2021-12-03 12:46:29 +00:00
|
|
|
|
BuildRequires: pkgconfig(libbpf)
|
2021-05-23 20:05:07 +00:00
|
|
|
|
BuildRequires: systemtap-sdt-devel
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%if %{with docs}
|
2012-08-23 01:27:58 +00:00
|
|
|
|
BuildRequires: libxslt
|
|
|
|
|
BuildRequires: docbook-style-xsl
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%endif
|
2012-08-23 01:27:58 +00:00
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: gperf
|
2013-08-15 11:04:03 +00:00
|
|
|
|
BuildRequires: gawk
|
2015-12-02 04:53:29 +00:00
|
|
|
|
BuildRequires: tree
|
2019-03-29 15:06:48 +00:00
|
|
|
|
BuildRequires: hostname
|
2023-01-05 12:52:34 +00:00
|
|
|
|
BuildRequires: python3
|
2023-01-24 23:16:28 +00:00
|
|
|
|
BuildRequires: python3-devel
|
2021-05-17 06:02:46 +00:00
|
|
|
|
BuildRequires: python3dist(jinja2)
|
2023-01-24 23:16:28 +00:00
|
|
|
|
BuildRequires: python3dist(lxml)
|
|
|
|
|
BuildRequires: python3dist(pefile)
|
2023-06-05 16:49:57 +00:00
|
|
|
|
%if %{undefined rhel}
|
2023-01-24 23:16:28 +00:00
|
|
|
|
BuildRequires: python3dist(pillow)
|
2023-04-22 10:37:06 +00:00
|
|
|
|
BuildRequires: python3dist(pytest-flakes)
|
2023-06-05 16:49:57 +00:00
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
2023-01-24 23:16:28 +00:00
|
|
|
|
BuildRequires: python3dist(zstd)
|
2023-11-07 15:27:34 +00:00
|
|
|
|
%if 0%{?want_bootloader}
|
|
|
|
|
BuildRequires: python3dist(pyelftools)
|
|
|
|
|
%endif
|
2023-01-24 23:16:28 +00:00
|
|
|
|
# gzip and lzma are provided by the stdlib
|
2015-01-06 02:08:08 +00:00
|
|
|
|
BuildRequires: firewalld-filesystem
|
2014-02-20 00:12:13 +00:00
|
|
|
|
BuildRequires: libseccomp-devel
|
2017-12-12 05:27:09 +00:00
|
|
|
|
BuildRequires: meson >= 0.43
|
2017-07-02 00:16:12 +00:00
|
|
|
|
BuildRequires: gettext
|
2018-12-21 19:08:58 +00:00
|
|
|
|
# We use RUNNING_ON_VALGRIND in tests, so the headers need to be available
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%ifarch %{valgrind_arches}
|
2018-12-21 19:08:58 +00:00
|
|
|
|
BuildRequires: valgrind-devel
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%endif
|
2016-04-18 15:33:59 +00:00
|
|
|
|
|
2022-04-12 08:26:11 +00:00
|
|
|
|
%ifnarch %ix86
|
|
|
|
|
# bpftool is not built for i368
|
|
|
|
|
BuildRequires: bpftool
|
|
|
|
|
%global have_bpf 1
|
|
|
|
|
%endif
|
|
|
|
|
|
2023-02-02 01:14:52 +00:00
|
|
|
|
%if 0%{?fedora}
|
2022-11-21 10:44:30 +00:00
|
|
|
|
%ifarch x86_64 aarch64
|
2023-08-13 10:52:15 +00:00
|
|
|
|
%global have_xen 1
|
2022-11-21 10:44:30 +00:00
|
|
|
|
# That package is only built for those two architectures
|
|
|
|
|
BuildRequires: xen-devel
|
|
|
|
|
%endif
|
2023-02-02 01:14:52 +00:00
|
|
|
|
%endif
|
2022-11-21 10:44:30 +00:00
|
|
|
|
|
2012-01-22 19:46:45 +00:00
|
|
|
|
Requires(post): coreutils
|
2015-03-14 15:48:28 +00:00
|
|
|
|
Requires(post): grep
|
2018-11-05 20:18:32 +00:00
|
|
|
|
# systemd-machine-id-setup requires libssl
|
|
|
|
|
Requires(post): openssl-libs
|
2017-01-11 18:30:19 +00:00
|
|
|
|
Requires: dbus >= 1.9.18
|
2023-09-07 10:17:02 +00:00
|
|
|
|
Requires: %{name}-pam%{_isa} = %{version}-%{release}
|
2022-02-24 07:01:43 +00:00
|
|
|
|
Requires(meta): (%{name}-rpm-macros = %{version}-%{release} if rpm-build)
|
2023-09-07 10:17:02 +00:00
|
|
|
|
Requires: %{name}-libs%{_isa} = %{version}-%{release}
|
2021-06-16 15:03:00 +00:00
|
|
|
|
%{?fedora:Recommends: %{name}-resolved = %{version}-%{release}}
|
2015-07-29 17:31:53 +00:00
|
|
|
|
Recommends: diffutils
|
2021-06-02 09:39:07 +00:00
|
|
|
|
Requires: (util-linux-core or util-linux)
|
2022-12-17 16:10:35 +00:00
|
|
|
|
Recommends: libxkbcommon%{_isa}
|
install everything in /usr
This patch is needed for the /usr-move feature
https://fedoraproject.org/wiki/Features/UsrMove
This package requires now 'filesystem' >= 3, which is only installable
on a system which has /bin, /sbin, /lib, /lib64 as symlinks to /usr and
not regular directories. The 'filesystem' package acts as a guard, to
prevent *this* package to be installed on old unconverted systems.
New installations will have the 'filesystem' >=3 layout right away, old
installations need to be converted with anaconda or dracut first; only
after that, the 'filesystem' package, and also *this* package can be
installed.
Packages *should* not install files in /bin, /sbin, /lib, /lib64, but
only in the corresponding directories in /usr. Packages *must* not
install conflicting files with the same names in the corresponding
directories in / and /usr. Especially compatibilty symlinks must not be
installed.
Feel free to modify any of the changes to the spec file, but keep the
above in mind.
2012-01-25 14:56:17 +00:00
|
|
|
|
Provides: /bin/systemctl
|
2012-01-26 13:37:41 +00:00
|
|
|
|
Provides: /sbin/shutdown
|
2013-03-07 22:46:46 +00:00
|
|
|
|
Provides: syslog
|
2012-01-22 19:46:45 +00:00
|
|
|
|
Provides: systemd-units = %{version}-%{release}
|
2012-07-30 10:29:09 +00:00
|
|
|
|
Obsoletes: system-setup-keyboard < 0.9
|
|
|
|
|
Provides: system-setup-keyboard = 0.9
|
2013-07-13 10:50:50 +00:00
|
|
|
|
# systemd-sysv-convert was removed in f20: https://fedorahosted.org/fpc/ticket/308
|
|
|
|
|
Obsoletes: systemd-sysv < 206
|
2016-09-29 09:18:54 +00:00
|
|
|
|
# self-obsoletes so that dnf will install new subpackages on upgrade (#1260394)
|
2021-06-16 15:03:00 +00:00
|
|
|
|
Obsoletes: %{name} < 249~~
|
2013-07-13 10:50:50 +00:00
|
|
|
|
Provides: systemd-sysv = 206
|
2014-10-13 14:33:20 +00:00
|
|
|
|
Conflicts: initscripts < 9.56.1
|
2016-01-08 09:48:55 +00:00
|
|
|
|
%if 0%{?fedora}
|
2015-05-20 18:14:50 +00:00
|
|
|
|
Conflicts: fedora-release < 23-0.12
|
2016-01-08 09:48:55 +00:00
|
|
|
|
%endif
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%if 0%{?fedora} >= 41
|
|
|
|
|
BuildRequires: setup >= 2.15.0-3
|
|
|
|
|
BuildRequires: python3
|
|
|
|
|
Conflicts: setup < 2.15.0-3
|
|
|
|
|
Conflicts: selinux-policy-any < 41.1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 41
|
|
|
|
|
# Make sure that dracut supports systemd-executor and the renames done for v255,
|
|
|
|
|
# and dlopen libraries and read-only fs in initrd.
|
|
|
|
|
Conflicts: dracut < 060-2
|
|
|
|
|
%else
|
|
|
|
|
# Make sure that dracut supports systemd-executor and the renames done for v255.
|
2023-11-08 16:02:18 +00:00
|
|
|
|
Conflicts: dracut < 059-16
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%endif
|
2023-11-08 15:20:57 +00:00
|
|
|
|
|
2020-03-08 11:12:39 +00:00
|
|
|
|
Obsoletes: timedatex < 0.6-3
|
2019-09-21 22:05:52 +00:00
|
|
|
|
Provides: timedatex = 0.6-3
|
2022-07-03 19:31:32 +00:00
|
|
|
|
Provides: %{name}-tmpfiles = %{version}-%{release}
|
|
|
|
|
Provides: %{name}-sysusers = %{version}-%{release}
|
2023-05-09 12:58:59 +00:00
|
|
|
|
Provides: %{name}-shutdown = %{version}-%{release}
|
2010-06-22 04:16:32 +00:00
|
|
|
|
|
2020-10-20 15:33:29 +00:00
|
|
|
|
# Recommends to replace normal Requires deps for stuff that is dlopen()ed
|
2021-05-20 14:52:27 +00:00
|
|
|
|
Recommends: libidn2.so.0%{?elf_suffix}
|
|
|
|
|
Recommends: libidn2.so.0(IDN2_0.0.0)%{?elf_bits}
|
|
|
|
|
Recommends: libpcre2-8.so.0%{?elf_suffix}
|
|
|
|
|
Recommends: libpwquality.so.1%{?elf_suffix}
|
|
|
|
|
Recommends: libpwquality.so.1(LIBPWQUALITY_1.0)%{?elf_bits}
|
2023-06-05 03:42:45 +00:00
|
|
|
|
%if %{undefined rhel}
|
2021-05-20 14:52:27 +00:00
|
|
|
|
Recommends: libqrencode.so.4%{?elf_suffix}
|
2023-06-05 03:42:45 +00:00
|
|
|
|
%endif
|
2023-08-03 21:13:03 +00:00
|
|
|
|
Recommends: libbpf.so.1%{?elf_suffix}
|
|
|
|
|
Recommends: libbpf.so.1(LIBBPF_0.4.0)%{?elf_bits}
|
2021-12-09 22:10:44 +00:00
|
|
|
|
|
|
|
|
|
# used by systemd-coredump and systemd-analyze
|
|
|
|
|
Recommends: libdw.so.1%{?elf_suffix}
|
|
|
|
|
Recommends: libdw.so.1(ELFUTILS_0.186)%{?elf_bits}
|
|
|
|
|
Recommends: libelf.so.1%{?elf_suffix}
|
|
|
|
|
Recommends: libelf.so.1(ELFUTILS_1.7)%{?elf_bits}
|
|
|
|
|
|
|
|
|
|
# used by dissect, integritysetup, veritysetyp, growfs, repart, cryptenroll, home
|
|
|
|
|
Recommends: libcryptsetup.so.12%{?elf_suffix}
|
|
|
|
|
Recommends: libcryptsetup.so.12(CRYPTSETUP_2.4)%{?elf_bits}
|
2020-10-20 15:33:29 +00:00
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
# Libkmod is used to load modules.
|
|
|
|
|
Recommends: libkmod.so.2%{?elf_suffix}
|
|
|
|
|
# kmod_list_next, kmod_load_resources, kmod_module_get_initstate,
|
|
|
|
|
# kmod_module_get_module, kmod_module_get_name, kmod_module_new_from_lookup,
|
|
|
|
|
# kmod_module_probe_insert_module, kmod_module_unref, kmod_module_unref_list,
|
|
|
|
|
# kmod_new, kmod_set_log_fn, kmod_unref, kmod_validate_resources
|
|
|
|
|
# are part of LIBKMOD_5.
|
|
|
|
|
Recommends: libkmod.so.2(LIBKMOD_5)%{?elf_bits}
|
|
|
|
|
|
|
|
|
|
Recommends: libarchive.so.13%{?elf_suffix}
|
|
|
|
|
|
2010-06-22 04:16:32 +00:00
|
|
|
|
%description
|
2021-09-29 15:19:21 +00:00
|
|
|
|
systemd is a system and service manager that runs as PID 1 and starts the rest
|
|
|
|
|
of the system. It provides aggressive parallelization capabilities, uses socket
|
|
|
|
|
and D-Bus activation for starting services, offers on-demand starting of
|
|
|
|
|
daemons, keeps track of processes using Linux control groups, maintains mount
|
|
|
|
|
and automount points, and implements an elaborate transactional dependency-based
|
|
|
|
|
service control logic. systemd supports SysV and LSB init scripts and works as a
|
2017-02-16 18:10:10 +00:00
|
|
|
|
replacement for sysvinit. Other parts of this package are a logging daemon,
|
2021-09-29 15:19:21 +00:00
|
|
|
|
utilities to control basic system configuration like the hostname, date, locale,
|
|
|
|
|
maintain a list of logged-in users, system accounts, runtime directories and
|
2022-01-04 16:41:56 +00:00
|
|
|
|
settings, and a logging daemons.
|
2019-07-30 19:39:02 +00:00
|
|
|
|
%if 0%{?stable}
|
2023-03-03 17:17:58 +00:00
|
|
|
|
This package was built from the %(c=%version; echo "v${c%.*}-stable") branch of systemd.
|
2019-04-26 11:14:59 +00:00
|
|
|
|
%endif
|
2010-06-22 04:16:32 +00:00
|
|
|
|
|
2012-06-06 22:57:02 +00:00
|
|
|
|
%package libs
|
|
|
|
|
Summary: systemd libraries
|
2023-02-08 11:38:11 +00:00
|
|
|
|
License: LGPL-2.1-or-later AND MIT
|
2012-07-02 18:52:00 +00:00
|
|
|
|
Obsoletes: libudev < 183
|
2012-06-22 12:33:14 +00:00
|
|
|
|
Obsoletes: systemd < 185-4
|
|
|
|
|
Conflicts: systemd < 185-4
|
2016-05-22 03:56:03 +00:00
|
|
|
|
Obsoletes: systemd-compat-libs < 230
|
2016-10-11 17:01:50 +00:00
|
|
|
|
Obsoletes: nss-myhostname < 0.4
|
|
|
|
|
Provides: nss-myhostname = 0.4
|
2016-10-29 20:59:04 +00:00
|
|
|
|
Provides: nss-myhostname%{_isa} = 0.4
|
2012-06-06 22:57:02 +00:00
|
|
|
|
|
|
|
|
|
%description libs
|
2016-04-18 15:33:59 +00:00
|
|
|
|
Libraries for systemd and udev.
|
|
|
|
|
|
|
|
|
|
%package pam
|
|
|
|
|
Summary: systemd PAM module
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description pam
|
|
|
|
|
Systemd PAM module registers the session with systemd-logind.
|
2012-06-06 22:57:02 +00:00
|
|
|
|
|
2018-11-02 10:39:52 +00:00
|
|
|
|
%package rpm-macros
|
|
|
|
|
Summary: Macros that define paths and scriptlets related to systemd
|
2018-11-02 10:53:19 +00:00
|
|
|
|
BuildArch: noarch
|
2018-11-02 10:39:52 +00:00
|
|
|
|
|
|
|
|
|
%description rpm-macros
|
2019-10-20 09:57:02 +00:00
|
|
|
|
Just the definitions of rpm macros.
|
|
|
|
|
|
|
|
|
|
See
|
|
|
|
|
https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_systemd
|
|
|
|
|
for information how to use those macros.
|
2018-11-02 10:39:52 +00:00
|
|
|
|
|
2011-07-27 21:25:36 +00:00
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development headers for systemd
|
2023-02-08 11:38:11 +00:00
|
|
|
|
License: LGPL-2.1-or-later AND MIT
|
2022-12-17 16:10:35 +00:00
|
|
|
|
Requires: %{name}-libs%{_isa} = %{version}-%{release}
|
2022-09-29 08:20:07 +00:00
|
|
|
|
Requires(meta): (%{name}-rpm-macros = %{version}-%{release} if rpm-build)
|
2012-06-05 16:33:49 +00:00
|
|
|
|
Provides: libudev-devel = %{version}
|
2016-10-29 20:59:04 +00:00
|
|
|
|
Provides: libudev-devel%{_isa} = %{version}
|
2012-05-24 20:42:11 +00:00
|
|
|
|
Obsoletes: libudev-devel < 183
|
2011-07-27 21:25:36 +00:00
|
|
|
|
|
|
|
|
|
%description devel
|
2015-06-17 18:49:27 +00:00
|
|
|
|
Development headers and auxiliary files for developing applications linking
|
|
|
|
|
to libudev or libsystemd.
|
2011-07-27 21:25:36 +00:00
|
|
|
|
|
2015-11-12 06:12:17 +00:00
|
|
|
|
%package udev
|
|
|
|
|
Summary: Rule-based device node and kernel event manager
|
2023-02-08 11:31:21 +00:00
|
|
|
|
License: LGPL-2.1-or-later
|
2020-04-11 08:59:58 +00:00
|
|
|
|
|
2022-12-17 16:10:35 +00:00
|
|
|
|
Requires: systemd%{_isa} = %{version}-%{release}
|
2024-01-29 10:23:07 +00:00
|
|
|
|
Requires(post): systemd%{_isa} = %{version}-%{release}
|
|
|
|
|
Requires(preun): systemd%{_isa} = %{version}-%{release}
|
|
|
|
|
Requires(postun): systemd%{_isa} = %{version}-%{release}
|
2016-04-22 18:21:31 +00:00
|
|
|
|
Requires(post): grep
|
2016-03-15 19:40:45 +00:00
|
|
|
|
Requires: kmod >= 18-4
|
2020-06-02 07:13:17 +00:00
|
|
|
|
# https://bodhi.fedoraproject.org/updates/FEDORA-2020-dd43dd05b1
|
|
|
|
|
Obsoletes: systemd < 245.6-1
|
2015-11-12 06:12:17 +00:00
|
|
|
|
Provides: udev = %{version}
|
2016-10-29 20:59:04 +00:00
|
|
|
|
Provides: udev%{_isa} = %{version}
|
2015-11-12 06:12:17 +00:00
|
|
|
|
Obsoletes: udev < 183
|
2023-09-27 09:04:10 +00:00
|
|
|
|
Requires: (grubby > 8.40-72 if grubby)
|
|
|
|
|
Requires: (sdubby > 1.0-3 if sdubby)
|
2020-06-02 07:13:17 +00:00
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
# Libkmod is used to load modules. Assume that if we need udevd, we certainly
|
|
|
|
|
# want to load modules, so make this into a hard dependency here.
|
|
|
|
|
Requires: libkmod.so.2%{?elf_suffix}
|
|
|
|
|
Requires: libkmod.so.2(LIBKMOD_5)%{?elf_bits}
|
|
|
|
|
|
2021-12-09 22:10:44 +00:00
|
|
|
|
# Recommends to replace normal Requires deps for stuff that is dlopen()ed
|
|
|
|
|
# used by dissect, integritysetup, veritysetyp, growfs, repart, cryptenroll, home
|
|
|
|
|
Recommends: libcryptsetup.so.12%{?elf_suffix}
|
|
|
|
|
Recommends: libcryptsetup.so.12(CRYPTSETUP_2.4)%{?elf_bits}
|
|
|
|
|
|
|
|
|
|
# used by systemd-coredump and systemd-analyze
|
|
|
|
|
Recommends: libdw.so.1%{?elf_suffix}
|
|
|
|
|
Recommends: libdw.so.1(ELFUTILS_0.186)%{?elf_bits}
|
|
|
|
|
Recommends: libelf.so.1%{?elf_suffix}
|
|
|
|
|
Recommends: libelf.so.1(ELFUTILS_1.7)%{?elf_bits}
|
|
|
|
|
|
2023-01-25 07:51:13 +00:00
|
|
|
|
# used by home, cryptsetup, cryptenroll, logind
|
2021-12-09 22:10:44 +00:00
|
|
|
|
Recommends: libfido2.so.1%{?elf_suffix}
|
2023-01-25 07:51:13 +00:00
|
|
|
|
Recommends: libp11-kit.so.0%{?elf_suffix}
|
2021-12-09 22:10:44 +00:00
|
|
|
|
Recommends: libtss2-esys.so.0%{?elf_suffix}
|
|
|
|
|
Recommends: libtss2-mu.so.0%{?elf_suffix}
|
|
|
|
|
Recommends: libtss2-rc.so.0%{?elf_suffix}
|
|
|
|
|
|
2016-09-26 19:16:25 +00:00
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1377733#c9
|
2020-03-03 14:30:48 +00:00
|
|
|
|
Suggests: systemd-bootchart
|
2017-07-11 05:29:36 +00:00
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1408878
|
2020-02-28 11:20:36 +00:00
|
|
|
|
Requires: kbd
|
2020-04-11 08:59:58 +00:00
|
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1753381
|
|
|
|
|
Provides: u2f-hidraw-policy = 1.0.2-40
|
|
|
|
|
Obsoletes: u2f-hidraw-policy < 1.0.2-40
|
2015-11-12 06:12:17 +00:00
|
|
|
|
|
2022-04-27 13:45:25 +00:00
|
|
|
|
# self-obsoletes to install both packages after split of systemd-boot
|
|
|
|
|
Obsoletes: systemd-udev < 252.2^
|
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
Provides: %{name}-repart = %{version}-%{release}
|
|
|
|
|
|
2015-11-12 06:12:17 +00:00
|
|
|
|
%description udev
|
2021-09-29 15:19:21 +00:00
|
|
|
|
This package contains systemd-udev and the rules and hardware database needed to
|
|
|
|
|
manage device nodes. This package is necessary on physical machines and in
|
|
|
|
|
virtual machines, but not in containers.
|
2015-11-12 06:12:17 +00:00
|
|
|
|
|
2022-01-04 16:41:56 +00:00
|
|
|
|
This package also provides systemd-timesyncd, a network time protocol daemon.
|
|
|
|
|
|
2021-12-09 22:10:44 +00:00
|
|
|
|
It also contains tools to manage encrypted home areas and secrets bound to the
|
2022-01-04 16:41:56 +00:00
|
|
|
|
machine, and to create or grow partitions and make file systems automatically.
|
2021-12-09 22:10:44 +00:00
|
|
|
|
|
2023-01-24 23:16:28 +00:00
|
|
|
|
%package ukify
|
|
|
|
|
Summary: Tool to build Unified Kernel Images
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2023-01-25 07:51:13 +00:00
|
|
|
|
|
2024-08-28 09:57:41 +00:00
|
|
|
|
Requires: (systemd-boot if %{shrink:(
|
|
|
|
|
filesystem(x86-32) or
|
|
|
|
|
filesystem(x86-64) or
|
|
|
|
|
filesystem(aarch64) or
|
|
|
|
|
filesystem(riscv64)
|
|
|
|
|
)})
|
2023-01-25 07:51:13 +00:00
|
|
|
|
Requires: python3dist(pefile)
|
|
|
|
|
Requires: python3dist(zstd)
|
2023-09-02 16:11:39 +00:00
|
|
|
|
Requires: python3dist(cryptography)
|
2023-01-25 07:51:13 +00:00
|
|
|
|
Recommends: python3dist(pillow)
|
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
# for tests
|
|
|
|
|
%ifarch riscv64
|
|
|
|
|
# 2.42 received support for riscv64 + efi targets
|
|
|
|
|
%global binutils_version_req >= 2.42
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: binutils %{?binutils_version_req}
|
|
|
|
|
|
2024-08-30 07:59:50 +00:00
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2023-01-24 23:16:28 +00:00
|
|
|
|
%description ukify
|
|
|
|
|
This package provides ukify, a script that combines a kernel image, an initrd,
|
|
|
|
|
with a command line, and possibly PCR measurements and other metadata, into a
|
|
|
|
|
Unified Kernel Image (UKI).
|
|
|
|
|
|
2024-08-28 09:57:41 +00:00
|
|
|
|
%if 0%{?want_bootloader}
|
2022-04-27 13:45:25 +00:00
|
|
|
|
%package boot-unsigned
|
|
|
|
|
Summary: UEFI boot manager (unsigned version)
|
|
|
|
|
|
|
|
|
|
Provides: systemd-boot-unsigned-%{efi_arch} = %version-%release
|
2022-12-17 16:10:35 +00:00
|
|
|
|
Provides: systemd-boot = %version-%release
|
|
|
|
|
Provides: systemd-boot%{_isa} = %version-%release
|
2023-01-27 13:25:59 +00:00
|
|
|
|
# A provides with just the version, no release or dist, used to build systemd-boot
|
|
|
|
|
Provides: version(systemd-boot-unsigned) = %version
|
|
|
|
|
Provides: version(systemd-boot-unsigned)%{_isa} = %version
|
2022-04-27 13:45:25 +00:00
|
|
|
|
|
|
|
|
|
# self-obsoletes to install both packages after split of systemd-boot
|
|
|
|
|
Obsoletes: systemd-udev < 252.2^
|
|
|
|
|
|
|
|
|
|
%description boot-unsigned
|
|
|
|
|
systemd-boot (short: sd-boot) is a simple UEFI boot manager. It provides a
|
|
|
|
|
graphical menu to select the entry to boot and an editor for the kernel command
|
|
|
|
|
line. systemd-boot supports systems with UEFI firmware only.
|
|
|
|
|
|
|
|
|
|
This package contains the unsigned version. Install systemd-boot instead to get
|
|
|
|
|
the version that works with Secure Boot.
|
2022-12-03 08:47:34 +00:00
|
|
|
|
%endif
|
2022-04-27 13:45:25 +00:00
|
|
|
|
|
2015-11-12 04:46:42 +00:00
|
|
|
|
%package container
|
|
|
|
|
# Name is the same as in Debian
|
|
|
|
|
Summary: Tools for containers and VMs
|
2022-12-17 16:10:35 +00:00
|
|
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
2024-01-29 10:23:07 +00:00
|
|
|
|
Requires(post): systemd%{_isa} = %{version}-%{release}
|
|
|
|
|
Requires(preun): systemd%{_isa} = %{version}-%{release}
|
|
|
|
|
Requires(postun): systemd%{_isa} = %{version}-%{release}
|
2015-11-12 06:12:17 +00:00
|
|
|
|
# obsolete parent package so that dnf will install new subpackage on upgrade (#1260394)
|
2015-11-12 04:46:42 +00:00
|
|
|
|
Obsoletes: %{name} < 229-5
|
2022-02-10 17:14:26 +00:00
|
|
|
|
# Bias the system towards libcurl-minimal if nothing pulls in full libcurl (#1997040)
|
|
|
|
|
Suggests: libcurl-minimal
|
2023-02-08 11:31:21 +00:00
|
|
|
|
License: LGPL-2.1-or-later
|
2015-11-12 04:46:42 +00:00
|
|
|
|
|
|
|
|
|
%description container
|
|
|
|
|
Systemd tools to spawn and manage containers and virtual machines.
|
|
|
|
|
|
2024-09-17 07:51:14 +00:00
|
|
|
|
This package contains systemd-nspawn, machinectl,
|
2023-11-07 17:41:08 +00:00
|
|
|
|
systemd-machined, and systemd-importd.
|
2015-11-12 04:46:42 +00:00
|
|
|
|
|
2015-11-07 15:31:13 +00:00
|
|
|
|
%package journal-remote
|
|
|
|
|
# Name is the same as in Debian
|
|
|
|
|
Summary: Tools to send journal events over the network
|
2022-12-17 16:10:35 +00:00
|
|
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
2023-02-08 11:31:21 +00:00
|
|
|
|
License: LGPL-2.1-or-later
|
2015-01-06 02:08:08 +00:00
|
|
|
|
Requires: firewalld-filesystem
|
2015-11-07 15:31:13 +00:00
|
|
|
|
Provides: %{name}-journal-gateway = %{version}-%{release}
|
2016-10-29 20:59:04 +00:00
|
|
|
|
Provides: %{name}-journal-gateway%{_isa} = %{version}-%{release}
|
2015-11-19 01:22:43 +00:00
|
|
|
|
Obsoletes: %{name}-journal-gateway < 227-7
|
2022-02-10 17:14:26 +00:00
|
|
|
|
# Bias the system towards libcurl-minimal if nothing pulls in full libcurl (#1997040)
|
|
|
|
|
Suggests: libcurl-minimal
|
2013-06-26 10:32:27 +00:00
|
|
|
|
|
2015-11-07 15:31:13 +00:00
|
|
|
|
%description journal-remote
|
2021-09-29 15:19:21 +00:00
|
|
|
|
Programs to forward journal entries over the network, using encrypted HTTP, and
|
|
|
|
|
to write journal files from serialized journal contents.
|
2015-11-07 15:31:13 +00:00
|
|
|
|
|
2021-09-29 15:19:21 +00:00
|
|
|
|
This package contains systemd-journal-gatewayd, systemd-journal-remote, and
|
|
|
|
|
systemd-journal-upload.
|
2013-06-26 10:32:27 +00:00
|
|
|
|
|
2021-06-16 15:03:00 +00:00
|
|
|
|
%package resolved
|
|
|
|
|
Summary: Network Name Resolution manager
|
2022-12-17 16:10:35 +00:00
|
|
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
2021-06-16 15:03:00 +00:00
|
|
|
|
Obsoletes: %{name} < 249~~
|
2021-12-09 22:10:44 +00:00
|
|
|
|
Requires: libidn2.so.0%{?elf_suffix}
|
|
|
|
|
Requires: libidn2.so.0(IDN2_0.0.0)%{?elf_bits}
|
2022-02-23 22:27:29 +00:00
|
|
|
|
Requires(posttrans): grep
|
2021-06-16 15:03:00 +00:00
|
|
|
|
|
|
|
|
|
%description resolved
|
2021-09-29 15:19:21 +00:00
|
|
|
|
systemd-resolved is a system service that provides network name resolution to
|
|
|
|
|
local applications. It implements a caching and validating DNS/DNSSEC stub
|
|
|
|
|
resolver, as well as an LLMNR and MulticastDNS resolver and responder.
|
2021-06-16 15:03:00 +00:00
|
|
|
|
|
2024-06-26 15:26:24 +00:00
|
|
|
|
%package oomd
|
|
|
|
|
Summary: A userspace out-of-memory (OOM) killer
|
2023-11-07 16:45:57 +00:00
|
|
|
|
Requires: %{name}-udev = %{version}-%{release}
|
2024-06-26 15:26:24 +00:00
|
|
|
|
Provides: %{name}-oomd-defaults = %{version}-%{release}
|
2023-02-08 11:31:21 +00:00
|
|
|
|
License: LGPL-2.1-or-later
|
2021-02-05 09:39:39 +00:00
|
|
|
|
|
2024-06-26 15:26:24 +00:00
|
|
|
|
%description oomd
|
|
|
|
|
systemd-oomd is a system service that uses cgroups-v2 and pressure stall
|
|
|
|
|
information (PSI) to monitor and take action on processes before an OOM
|
|
|
|
|
occurs in kernel space.
|
2020-06-03 21:40:09 +00:00
|
|
|
|
|
2010-06-22 04:16:32 +00:00
|
|
|
|
%prep
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%autosetup -n %{?commit:%{name}-%{commit}}%{!?commit:%{name}-%{version_no_tilde}} -p1
|
2013-03-13 07:31:41 +00:00
|
|
|
|
|
2010-06-22 04:16:32 +00:00
|
|
|
|
%build
|
2022-02-24 07:01:43 +00:00
|
|
|
|
%global ntpvendor %(source /etc/os-release; echo ${ID})
|
2014-09-09 18:34:49 +00:00
|
|
|
|
%{!?ntpvendor: echo 'NTP vendor zone is not set!'; exit 1}
|
|
|
|
|
|
2014-09-09 18:34:46 +00:00
|
|
|
|
CONFIGURE_OPTS=(
|
2024-01-29 10:23:07 +00:00
|
|
|
|
-Dmode=%[%{with upstream}?"developer":"release"]
|
2017-07-02 00:16:12 +00:00
|
|
|
|
-Dsysvinit-path=/etc/rc.d/init.d
|
|
|
|
|
-Drc-local=/etc/rc.d/rc.local
|
2020-10-06 11:19:04 +00:00
|
|
|
|
-Ddns-servers=
|
2019-11-22 13:57:07 +00:00
|
|
|
|
-Duser-path=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
|
2024-08-01 12:03:56 +00:00
|
|
|
|
-Dservice-watchdog=3min
|
2017-07-13 15:35:31 +00:00
|
|
|
|
-Ddev-kvm-mode=0666
|
2023-11-07 15:27:34 +00:00
|
|
|
|
-Dkmod=enabled
|
|
|
|
|
-Dxkbcommon=enabled
|
|
|
|
|
-Dblkid=enabled
|
|
|
|
|
-Dfdisk=enabled
|
|
|
|
|
-Dseccomp=enabled
|
2017-07-02 00:16:12 +00:00
|
|
|
|
-Dima=true
|
2023-11-07 15:27:34 +00:00
|
|
|
|
-Dselinux=enabled
|
|
|
|
|
-Dbpf-framework=%[0%{?have_bpf}?"enabled":"disabled"]
|
|
|
|
|
-Dapparmor=disabled
|
|
|
|
|
-Dpolkit=enabled
|
|
|
|
|
-Dxz=%[%{with xz}?"enabled":"disabled"]
|
|
|
|
|
-Dzlib=%[%{with zlib}?"enabled":"disabled"]
|
|
|
|
|
-Dbzip2=%[%{with bzip2}?"enabled":"disabled"]
|
|
|
|
|
-Dlz4=%[%{with lz4}?"enabled":"disabled"]
|
|
|
|
|
-Dzstd=%[%{with zstd}?"enabled":"disabled"]
|
|
|
|
|
-Dpam=enabled
|
|
|
|
|
-Dacl=enabled
|
2017-07-02 00:16:12 +00:00
|
|
|
|
-Dsmack=true
|
2023-11-07 15:27:34 +00:00
|
|
|
|
-Dopenssl=enabled
|
2021-12-03 12:46:29 +00:00
|
|
|
|
-Dcryptolib=openssl
|
2023-11-07 15:27:34 +00:00
|
|
|
|
-Dp11kit=enabled
|
|
|
|
|
-Dgcrypt=disabled
|
|
|
|
|
-Daudit=enabled
|
|
|
|
|
-Delfutils=enabled
|
|
|
|
|
-Dlibcryptsetup=%[%{with bootstrap}?"disabled":"enabled"]
|
|
|
|
|
-Delfutils=enabled
|
2024-01-29 10:23:07 +00:00
|
|
|
|
-Drepart=enabled
|
2023-11-07 15:27:34 +00:00
|
|
|
|
-Dpwquality=enabled
|
|
|
|
|
-Dqrencode=%[%{defined rhel}?"disabled":"enabled"]
|
|
|
|
|
-Dmicrohttpd=enabled
|
2023-12-04 03:42:29 +00:00
|
|
|
|
-Dlibiptc=disabled
|
2023-11-07 15:27:34 +00:00
|
|
|
|
-Dlibcurl=enabled
|
|
|
|
|
-Dlibfido2=enabled
|
|
|
|
|
-Dxenctrl=%[0%{?have_xen}?"enabled":"disabled"]
|
2017-07-02 00:16:12 +00:00
|
|
|
|
-Defi=true
|
|
|
|
|
-Dtpm=true
|
2023-11-07 15:27:34 +00:00
|
|
|
|
-Dtpm2=enabled
|
2017-07-02 00:16:12 +00:00
|
|
|
|
-Dhwdb=true
|
|
|
|
|
-Dsysusers=true
|
|
|
|
|
-Ddefault-kill-user-processes=false
|
2022-08-09 10:20:22 +00:00
|
|
|
|
-Dfirst-boot-full-preset=true
|
2023-11-22 23:38:44 +00:00
|
|
|
|
-Ddefault-network=true
|
2017-07-02 00:16:12 +00:00
|
|
|
|
-Dtests=unsafe
|
2024-07-08 14:16:18 +00:00
|
|
|
|
-Dinstall-tests=false
|
2018-02-20 22:46:22 +00:00
|
|
|
|
-Dnobody-user=nobody
|
|
|
|
|
-Dnobody-group=nobody
|
2020-10-20 15:33:29 +00:00
|
|
|
|
-Dcompat-mutable-uid-boundaries=true
|
2018-03-05 21:31:56 +00:00
|
|
|
|
-Dsplit-bin=true
|
2019-03-27 17:37:25 +00:00
|
|
|
|
-Db_ndebug=false
|
2024-01-29 10:23:07 +00:00
|
|
|
|
-Dman=%[%{with docs}?"enabled":"disabled"]
|
|
|
|
|
-Dversion-tag=%{version}%[%{without upstream}?"-%{release}":""]
|
2022-03-29 20:07:50 +00:00
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1906010
|
2024-01-29 10:23:07 +00:00
|
|
|
|
-Dshared-lib-tag=%{version_no_tilde}%[%{without upstream}?"-%{release}":""]
|
2024-07-04 09:16:56 +00:00
|
|
|
|
-Dlink-executor-shared=false
|
2022-08-09 23:53:46 +00:00
|
|
|
|
-Dfallback-hostname="localhost"
|
2020-07-12 20:53:09 +00:00
|
|
|
|
-Ddefault-dnssec=no
|
2022-03-14 14:48:35 +00:00
|
|
|
|
-Ddefault-dns-over-tls=no
|
2020-09-02 08:49:44 +00:00
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1867830
|
|
|
|
|
-Ddefault-mdns=no
|
2021-12-23 12:45:31 +00:00
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2028169
|
|
|
|
|
-Dstatus-unit-format-default=combined
|
2023-12-08 11:35:59 +00:00
|
|
|
|
-Dconfigfiledir=/usr/lib
|
2020-11-12 12:08:11 +00:00
|
|
|
|
-Doomd=true
|
2024-01-29 10:23:07 +00:00
|
|
|
|
|
2021-06-16 10:27:54 +00:00
|
|
|
|
-Dadm-gid=4
|
2024-01-29 10:23:07 +00:00
|
|
|
|
-Dtty-gid=5
|
2021-06-16 10:27:54 +00:00
|
|
|
|
-Ddisk-gid=6
|
2024-01-29 10:23:07 +00:00
|
|
|
|
-Dlp-gid=7
|
2021-06-16 10:27:54 +00:00
|
|
|
|
-Dkmem-gid=9
|
2024-01-29 10:23:07 +00:00
|
|
|
|
-Dwheel-gid=10
|
|
|
|
|
-Dcdrom-gid=11
|
|
|
|
|
-Ddialout-gid=18
|
|
|
|
|
-Dutmp-gid=22
|
|
|
|
|
-Dtape-gid=33
|
2021-06-16 10:27:54 +00:00
|
|
|
|
-Dkvm-gid=36
|
2024-01-29 10:23:07 +00:00
|
|
|
|
-Dvideo-gid=39
|
|
|
|
|
-Daudio-gid=63
|
|
|
|
|
-Dusers-gid=100
|
|
|
|
|
-Dinput-gid=104
|
2021-12-03 14:48:12 +00:00
|
|
|
|
-Drender-gid=105
|
|
|
|
|
-Dsgx-gid=106
|
2021-06-16 10:27:54 +00:00
|
|
|
|
-Dsystemd-journal-gid=190
|
|
|
|
|
-Dsystemd-network-uid=192
|
|
|
|
|
-Dsystemd-resolve-uid=193
|
|
|
|
|
# -Dsystemd-timesync-uid=, not set yet
|
2014-09-09 18:34:46 +00:00
|
|
|
|
|
2023-11-07 15:27:34 +00:00
|
|
|
|
# For now, let's build the bootloader in the same places where we
|
|
|
|
|
# built with gnu-efi. Later on, we might want to extend coverage, but
|
|
|
|
|
# considering that that support is untested, let's not do this now.
|
|
|
|
|
-Dbootloader=%[%{?want_bootloader}?"enabled":"disabled"]
|
2024-08-28 09:57:41 +00:00
|
|
|
|
-Dukify=enabled
|
2024-06-26 15:26:24 +00:00
|
|
|
|
|
|
|
|
|
# RHEL10 bootstrapping
|
|
|
|
|
-Dstandalone-binaries=false
|
|
|
|
|
-Dnscd=false
|
|
|
|
|
-Dportabled=false
|
|
|
|
|
-Dmountfsd=false
|
|
|
|
|
-Dhomed=disabled
|
|
|
|
|
-Dnetworkd=false
|
|
|
|
|
-Dtimesyncd=false
|
|
|
|
|
-Dcreate-log-dirs=false
|
|
|
|
|
-Dnsresourced=false
|
2024-07-16 16:01:24 +00:00
|
|
|
|
-Dfirstboot=true
|
2024-06-26 15:26:24 +00:00
|
|
|
|
-Dvmspawn=disabled
|
|
|
|
|
-Dstoragetm=false
|
|
|
|
|
-Dhtml=disabled
|
2024-08-22 13:43:32 +00:00
|
|
|
|
-Ddefault-net-naming-scheme=rhel-10.0-beta
|
2024-06-26 15:26:24 +00:00
|
|
|
|
-Ddefault-llmnr=no
|
|
|
|
|
-Ddns-over-tls=openssl
|
|
|
|
|
-Dntp-servers=
|
|
|
|
|
-Dsupport-url=https://access.redhat.com/support
|
|
|
|
|
-Dlibidn=disabled
|
|
|
|
|
-Dgnutls=disabled
|
|
|
|
|
-Ddefault-compression=zstd
|
|
|
|
|
# https://issues.redhat.com/browse/RHEL-16810
|
|
|
|
|
-Dsbat-distro-url=mailto:secalert@redhat.com
|
|
|
|
|
-Dsshconfdir=no
|
2024-07-19 07:04:06 +00:00
|
|
|
|
-Dsshdconfdir=no
|
2024-07-22 15:01:08 +00:00
|
|
|
|
-Duserdb=false
|
2023-11-07 15:27:34 +00:00
|
|
|
|
)
|
2023-03-05 13:03:12 +00:00
|
|
|
|
|
2021-01-13 12:52:14 +00:00
|
|
|
|
%if %{without lto}
|
|
|
|
|
%global _lto_cflags %nil
|
|
|
|
|
%endif
|
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
{ %meson "${CONFIGURE_OPTS[@]}" %{?meson_extra_configure_options} ; }
|
2021-02-23 08:23:10 +00:00
|
|
|
|
|
2021-06-25 16:30:40 +00:00
|
|
|
|
%meson_build
|
|
|
|
|
|
2021-02-23 08:23:10 +00:00
|
|
|
|
new_triggers=%{_vpath_builddir}/src/rpm/triggers.systemd.sh
|
|
|
|
|
if ! diff -u %{SOURCE1} ${new_triggers}; then
|
|
|
|
|
echo -e "\n\n\nWARNING: triggers.systemd in Source1 is different!"
|
|
|
|
|
echo -e " cp $PWD/${new_triggers} %{SOURCE1}\n\n\n"
|
|
|
|
|
sleep 5
|
|
|
|
|
fi
|
|
|
|
|
|
2010-06-22 04:16:32 +00:00
|
|
|
|
%install
|
2017-07-02 00:16:12 +00:00
|
|
|
|
%meson_install
|
2016-07-26 19:12:35 +00:00
|
|
|
|
|
2012-08-07 15:16:26 +00:00
|
|
|
|
# udev links
|
2013-03-15 16:19:10 +00:00
|
|
|
|
mkdir -p %{buildroot}/%{_sbindir}
|
|
|
|
|
ln -sf ../bin/udevadm %{buildroot}%{_sbindir}/udevadm
|
2010-07-24 00:51:34 +00:00
|
|
|
|
|
2014-10-07 00:37:38 +00:00
|
|
|
|
# Compatiblity and documentation files
|
|
|
|
|
touch %{buildroot}/etc/crypttab
|
|
|
|
|
chmod 600 %{buildroot}/etc/crypttab
|
|
|
|
|
|
2023-12-13 12:02:45 +00:00
|
|
|
|
# Config files that were moved under /usr.
|
|
|
|
|
# We need to %ghost them so that they are not removed on upgrades.
|
|
|
|
|
touch %{buildroot}/etc/systemd/coredump.conf \
|
|
|
|
|
%{buildroot}/etc/systemd/journald.conf \
|
|
|
|
|
%{buildroot}/etc/systemd/journal-remote.conf \
|
|
|
|
|
%{buildroot}/etc/systemd/journal-upload.conf \
|
|
|
|
|
%{buildroot}/etc/systemd/logind.conf \
|
|
|
|
|
%{buildroot}/etc/systemd/oomd.conf \
|
|
|
|
|
%{buildroot}/etc/systemd/pstore.conf \
|
|
|
|
|
%{buildroot}/etc/systemd/resolved.conf \
|
|
|
|
|
%{buildroot}/etc/systemd/sleep.conf \
|
|
|
|
|
%{buildroot}/etc/systemd/system.conf \
|
|
|
|
|
%{buildroot}/etc/systemd/user.conf \
|
|
|
|
|
%{buildroot}/etc/udev/udev.conf \
|
|
|
|
|
%{buildroot}/etc/udev/iocost.conf
|
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
install -D -t %{buildroot}/usr/lib/systemd/ %{SOURCE3}
|
|
|
|
|
|
2017-07-02 00:16:12 +00:00
|
|
|
|
# /etc/initab
|
2024-01-29 10:23:07 +00:00
|
|
|
|
install -Dm0644 -t %{buildroot}/etc/ %{SOURCE6}
|
2014-10-07 00:37:38 +00:00
|
|
|
|
|
2017-07-02 00:16:12 +00:00
|
|
|
|
# /etc/sysctl.conf compat
|
2024-01-29 10:23:07 +00:00
|
|
|
|
install -Dm0644 %{SOURCE7} %{buildroot}/etc/sysctl.conf
|
2014-10-07 04:39:08 +00:00
|
|
|
|
ln -s ../sysctl.conf %{buildroot}/etc/sysctl.d/99-sysctl.conf
|
|
|
|
|
|
2010-09-14 00:38:13 +00:00
|
|
|
|
# Make sure these directories are properly owned
|
2015-03-23 02:47:59 +00:00
|
|
|
|
mkdir -p %{buildroot}%{system_unit_dir}/basic.target.wants
|
|
|
|
|
mkdir -p %{buildroot}%{system_unit_dir}/default.target.wants
|
|
|
|
|
mkdir -p %{buildroot}%{system_unit_dir}/dbus.target.wants
|
|
|
|
|
mkdir -p %{buildroot}%{system_unit_dir}/syslog.target.wants
|
2020-04-01 17:42:04 +00:00
|
|
|
|
mkdir -p %{buildroot}/run
|
2015-01-19 21:11:51 +00:00
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/log
|
2022-01-19 07:31:33 +00:00
|
|
|
|
touch %{buildroot}%{_localstatedir}/log/lastlog
|
|
|
|
|
chmod 0664 %{buildroot}%{_localstatedir}/log/lastlog
|
2020-04-01 17:42:04 +00:00
|
|
|
|
touch %{buildroot}/run/utmp
|
2014-10-07 03:52:00 +00:00
|
|
|
|
touch %{buildroot}%{_localstatedir}/log/{w,b}tmp
|
|
|
|
|
|
2012-02-11 01:46:33 +00:00
|
|
|
|
# Make sure the user generators dir exists too
|
2015-03-23 02:47:59 +00:00
|
|
|
|
mkdir -p %{buildroot}%{pkgdir}/system-generators
|
|
|
|
|
mkdir -p %{buildroot}%{pkgdir}/user-generators
|
2012-02-11 01:46:33 +00:00
|
|
|
|
|
2011-04-21 01:39:20 +00:00
|
|
|
|
# Create new-style configuration files so that we can ghost-own them
|
2013-03-15 16:19:10 +00:00
|
|
|
|
touch %{buildroot}%{_sysconfdir}/hostname
|
|
|
|
|
touch %{buildroot}%{_sysconfdir}/vconsole.conf
|
|
|
|
|
touch %{buildroot}%{_sysconfdir}/locale.conf
|
|
|
|
|
touch %{buildroot}%{_sysconfdir}/machine-id
|
|
|
|
|
touch %{buildroot}%{_sysconfdir}/machine-info
|
|
|
|
|
touch %{buildroot}%{_sysconfdir}/localtime
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
|
|
|
|
|
touch %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/00-keyboard.conf
|
2011-04-21 01:39:20 +00:00
|
|
|
|
|
2012-07-03 19:12:08 +00:00
|
|
|
|
# Make sure the shutdown/sleep drop-in dirs exist
|
2015-03-23 02:47:59 +00:00
|
|
|
|
mkdir -p %{buildroot}%{pkgdir}/system-shutdown/
|
|
|
|
|
mkdir -p %{buildroot}%{pkgdir}/system-sleep/
|
2012-07-03 19:12:08 +00:00
|
|
|
|
|
2013-03-07 22:27:37 +00:00
|
|
|
|
# Make sure directories in /var exist
|
2013-03-15 16:19:10 +00:00
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/coredump
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/catalog
|
2014-07-03 20:15:11 +00:00
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/backlight
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/rfkill
|
2016-04-10 15:21:43 +00:00
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/linger
|
2017-12-12 06:49:18 +00:00
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/private
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/log/private
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/cache/private
|
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/private/systemd/journal-upload
|
|
|
|
|
ln -s ../private/systemd/journal-upload %{buildroot}%{_localstatedir}/lib/systemd/journal-upload
|
2013-03-15 16:19:10 +00:00
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/log/journal
|
|
|
|
|
touch %{buildroot}%{_localstatedir}/lib/systemd/catalog/database
|
|
|
|
|
touch %{buildroot}%{_sysconfdir}/udev/hwdb.bin
|
2014-02-20 00:12:13 +00:00
|
|
|
|
touch %{buildroot}%{_localstatedir}/lib/systemd/random-seed
|
2017-12-12 06:49:18 +00:00
|
|
|
|
touch %{buildroot}%{_localstatedir}/lib/private/systemd/journal-upload/state
|
2013-03-07 22:27:37 +00:00
|
|
|
|
|
2012-10-24 16:18:40 +00:00
|
|
|
|
# Install yum protection fragment
|
2024-01-29 10:23:07 +00:00
|
|
|
|
install -Dm0644 %{SOURCE5} %{buildroot}/etc/dnf/protected.d/systemd.conf
|
2012-10-24 16:18:40 +00:00
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
install -Dm0644 -t %{buildroot}/usr/lib/firewalld/services/ %{SOURCE8} %{SOURCE9}
|
2015-01-06 02:08:08 +00:00
|
|
|
|
|
2015-06-27 18:00:14 +00:00
|
|
|
|
# Install additional docs
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1234951
|
2024-01-29 10:23:07 +00:00
|
|
|
|
install -Dm0644 -t %{buildroot}%{_pkgdocdir}/ %{SOURCE10}
|
2015-06-27 18:00:14 +00:00
|
|
|
|
|
2016-10-07 11:39:19 +00:00
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1378974
|
2024-01-29 10:23:07 +00:00
|
|
|
|
install -Dm0644 -t %{buildroot}%{system_unit_dir}/systemd-udev-trigger.service.d/ %{SOURCE11}
|
2016-10-07 11:39:19 +00:00
|
|
|
|
|
2020-09-27 11:51:04 +00:00
|
|
|
|
install -Dm0644 -t %{buildroot}%{_prefix}/lib/systemd/ %{SOURCE13}
|
2020-04-02 16:00:02 +00:00
|
|
|
|
|
2021-02-05 09:39:39 +00:00
|
|
|
|
# systemd-oomd default configuration
|
|
|
|
|
install -Dm0644 -t %{buildroot}%{_prefix}/lib/systemd/oomd.conf.d/ %{SOURCE14}
|
2022-08-23 18:59:16 +00:00
|
|
|
|
install -Dm0644 -t %{buildroot}%{system_unit_dir}/system.slice.d/ %{SOURCE15}
|
|
|
|
|
install -Dm0644 -t %{buildroot}%{user_unit_dir}/slice.d/ %{SOURCE15}
|
2023-02-02 17:09:03 +00:00
|
|
|
|
|
2023-06-01 21:17:44 +00:00
|
|
|
|
# https://fedoraproject.org/wiki/Changes/IncreaseVmMaxMapCount
|
|
|
|
|
install -Dm0644 -t %{buildroot}%{_prefix}/lib/sysctl.d/ %{SOURCE17}
|
|
|
|
|
|
2024-07-08 14:16:18 +00:00
|
|
|
|
sed -i 's|#!/usr/bin/env python3|#!%{__python3}|' %{buildroot}/usr/lib/systemd/tests/run-unit-tests.py || :
|
2018-12-21 19:08:58 +00:00
|
|
|
|
|
2020-02-07 15:34:30 +00:00
|
|
|
|
install -m 0644 -D -t %{buildroot}%{_rpmconfigdir}/macros.d/ %{SOURCE21}
|
2023-06-21 09:28:48 +00:00
|
|
|
|
# Use rpm's own sysusers provides where available
|
2023-06-26 14:39:41 +00:00
|
|
|
|
%if ! (0%{?fedora} >= 39 || 0%{?rhel} >= 10)
|
2020-02-07 15:34:30 +00:00
|
|
|
|
install -m 0644 -D -t %{buildroot}%{_rpmconfigdir}/fileattrs/ %{SOURCE22}
|
|
|
|
|
install -m 0755 -D -t %{buildroot}%{_rpmconfigdir}/ %{SOURCE23}
|
2023-06-21 09:28:48 +00:00
|
|
|
|
%endif
|
2020-02-07 15:34:30 +00:00
|
|
|
|
install -m 0755 -D -t %{buildroot}%{_rpmconfigdir}/ %{SOURCE24}
|
|
|
|
|
|
2023-02-22 14:51:59 +00:00
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2107754
|
|
|
|
|
install -Dm0644 -t %{buildroot}%{_prefix}/lib/systemd/network/ %{SOURCE25}
|
|
|
|
|
|
2023-09-18 19:43:20 +00:00
|
|
|
|
ln -s --relative %{buildroot}%{_bindir}/kernel-install %{buildroot}%{_sbindir}/installkernel
|
2023-09-15 08:57:19 +00:00
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%if "%{_sbindir}" == "%{_bindir}"
|
|
|
|
|
# Systemd has the split-sbin option which is also used to select the directory
|
|
|
|
|
# for alias symlinks. We need to keep split-sbin=true for now, to support
|
|
|
|
|
# unmerged systems. Move the symlinks here instead.
|
|
|
|
|
mv -v %{buildroot}/usr/sbin/* %{buildroot}%{_bindir}/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 41
|
|
|
|
|
# This requires https://pagure.io/setup/pull-request/50
|
|
|
|
|
# and https://src.fedoraproject.org/rpms/setup/pull-request/10.
|
|
|
|
|
%{python3} %{SOURCE4} /usr/lib/sysusers.d/20-setup-{users,groups}.conf %{buildroot}/usr/lib/sysusers.d/basic.conf
|
|
|
|
|
rm %{buildroot}/usr/lib/sysusers.d/basic.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
2024-07-17 13:36:35 +00:00
|
|
|
|
# We don't want to ship systemd-ssh-generator and it is not possible to disable it via meson_options.txt
|
2024-07-30 11:01:55 +00:00
|
|
|
|
# OpenScanHub doesn't build man pages, so let's not fail when they are not present
|
2024-07-17 13:36:35 +00:00
|
|
|
|
rm %{buildroot}%{_prefix}/lib/systemd/system-generators/systemd-ssh-generator
|
|
|
|
|
rm %{buildroot}%{_prefix}/lib/systemd/system/ssh-access.target
|
2024-07-19 07:04:06 +00:00
|
|
|
|
rm %{buildroot}%{_prefix}/lib/systemd/systemd-ssh-proxy
|
2024-07-30 11:01:55 +00:00
|
|
|
|
rm %{buildroot}%{_mandir}/man1/systemd-ssh-proxy.1 || :
|
|
|
|
|
rm %{buildroot}%{_mandir}/man8/systemd-ssh-generator.8 || :
|
2024-07-17 13:36:35 +00:00
|
|
|
|
|
2014-02-20 00:47:27 +00:00
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
2023-11-23 13:45:33 +00:00
|
|
|
|
# Split files in build root into rpms
|
2023-11-23 14:10:10 +00:00
|
|
|
|
python3 %{SOURCE2} %buildroot %{!?want_bootloader:--no-bootloader}
|
2017-12-11 23:41:07 +00:00
|
|
|
|
|
2015-02-16 18:24:46 +00:00
|
|
|
|
%check
|
2020-02-28 11:25:15 +00:00
|
|
|
|
%if %{with tests}
|
2020-07-09 07:54:04 +00:00
|
|
|
|
meson test -C %{_vpath_builddir} -t 6 --print-errorlogs
|
2020-02-28 11:25:15 +00:00
|
|
|
|
%endif
|
2015-05-30 22:18:12 +00:00
|
|
|
|
|
2015-11-15 00:32:46 +00:00
|
|
|
|
#############################################################################################
|
|
|
|
|
|
2016-04-04 14:51:55 +00:00
|
|
|
|
%include %{SOURCE1}
|
2015-11-15 00:32:46 +00:00
|
|
|
|
|
2010-08-27 01:59:56 +00:00
|
|
|
|
%post
|
2017-01-11 22:51:30 +00:00
|
|
|
|
systemd-machine-id-setup &>/dev/null || :
|
2020-02-21 22:59:01 +00:00
|
|
|
|
|
2021-06-16 10:27:54 +00:00
|
|
|
|
[ $1 -eq 1 ] || exit 0
|
2013-10-02 02:10:00 +00:00
|
|
|
|
|
2021-06-16 10:27:54 +00:00
|
|
|
|
[ -w %{_localstatedir} ] && journalctl --update-catalog || :
|
|
|
|
|
systemd-sysusers || :
|
|
|
|
|
systemd-tmpfiles --create &>/dev/null || :
|
2020-09-02 08:22:03 +00:00
|
|
|
|
|
2018-11-09 00:35:11 +00:00
|
|
|
|
# We reset the enablement of all services upon initial installation
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1118740#c23
|
|
|
|
|
# This will fix up enablement of any preset services that got installed
|
|
|
|
|
# before systemd due to rpm ordering problems:
|
2020-02-07 12:41:19 +00:00
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1647172.
|
|
|
|
|
# We also do this for user units, see
|
|
|
|
|
# https://fedoraproject.org/wiki/Changes/Systemd_presets_for_user_units.
|
2020-09-02 08:22:03 +00:00
|
|
|
|
systemctl preset-all &>/dev/null || :
|
|
|
|
|
systemctl --global preset-all &>/dev/null || :
|
2013-01-08 02:00:08 +00:00
|
|
|
|
|
2021-02-11 13:37:24 +00:00
|
|
|
|
%postun
|
2024-01-29 10:23:07 +00:00
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
|
[ -w %{_localstatedir} ] && journalctl --update-catalog || :
|
|
|
|
|
|
|
|
|
|
systemctl daemon-reexec || :
|
|
|
|
|
|
|
|
|
|
systemd-tmpfiles --create &>/dev/null || :
|
2016-10-11 17:01:50 +00:00
|
|
|
|
fi
|
|
|
|
|
|
2024-07-22 15:01:08 +00:00
|
|
|
|
%systemd_postun_with_restart systemd-timedated.service systemd-hostnamed.service systemd-journald.service systemd-localed.service
|
2021-02-11 13:37:24 +00:00
|
|
|
|
|
|
|
|
|
# FIXME: systemd-logind.service is excluded (https://github.com/systemd/systemd/pull/17558)
|
2023-07-28 17:30:34 +00:00
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
# This is the expanded form of %%systemd_user_daemon_reexec. We
|
2023-08-23 07:12:42 +00:00
|
|
|
|
# can't use the macro because we define it ourselves.
|
|
|
|
|
if [ $1 -ge 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then
|
|
|
|
|
# Package upgrade, not uninstall
|
|
|
|
|
/usr/lib/systemd/systemd-update-helper user-reexec || :
|
|
|
|
|
fi
|
2021-02-11 13:37:24 +00:00
|
|
|
|
|
2024-01-29 10:23:07 +00:00
|
|
|
|
%triggerun -- systemd < 256
|
|
|
|
|
# This is for upgrades from previous versions before systemd restart was moved to %%postun
|
|
|
|
|
systemctl daemon-reexec || :
|
2023-01-26 10:14:15 +00:00
|
|
|
|
|
2024-07-25 17:37:56 +00:00
|
|
|
|
%triggerpostun -- systemd < 256-9
|
|
|
|
|
if [ -L /etc/ssh/sshd_config.d/20-systemd-userdb.conf ] && \
|
2024-07-29 07:32:02 +00:00
|
|
|
|
[ "$(readlink -m /etc/ssh/sshd_config.d/20-systemd-userdb.conf)" = "/usr/lib/systemd/sshd_config.d/20-systemd-userdb.conf" ] ; then
|
2024-07-25 17:37:56 +00:00
|
|
|
|
rm -f /etc/ssh/sshd_config.d/20-systemd-userdb.conf || :
|
|
|
|
|
fi
|
2023-01-26 10:14:15 +00:00
|
|
|
|
|
2024-06-26 15:26:24 +00:00
|
|
|
|
%global udev_services systemd-udev{d,-settle,-trigger}.service systemd-udevd-{control,kernel}.socket %{?want_bootloader:systemd-boot-update.service} systemd-pstore.service remote-cryptsetup.target
|
2016-04-22 18:21:31 +00:00
|
|
|
|
|
2015-11-12 06:12:17 +00:00
|
|
|
|
%post udev
|
2016-04-22 18:21:31 +00:00
|
|
|
|
# Move old stuff around in /var/lib
|
|
|
|
|
mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/random-seed &>/dev/null
|
|
|
|
|
mv %{_localstatedir}/lib/backlight %{_localstatedir}/lib/systemd/backlight &>/dev/null
|
|
|
|
|
|
2017-01-11 22:51:30 +00:00
|
|
|
|
udevadm hwdb --update &>/dev/null
|
2020-09-02 10:35:56 +00:00
|
|
|
|
|
2016-04-22 18:21:31 +00:00
|
|
|
|
%systemd_post %udev_services
|
2020-09-02 10:35:56 +00:00
|
|
|
|
|
|
|
|
|
# Try to save the random seed, but don't complain if /dev/urandom is unavailable
|
|
|
|
|
/usr/lib/systemd/systemd-random-seed save 2>&1 | \
|
|
|
|
|
grep -v 'Failed to open /dev/urandom' || :
|
2016-04-22 18:21:31 +00:00
|
|
|
|
|
|
|
|
|
# Replace obsolete keymaps
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1151958
|
|
|
|
|
grep -q -E '^KEYMAP="?fi-latin[19]"?' /etc/vconsole.conf 2>/dev/null &&
|
2018-02-09 13:50:35 +00:00
|
|
|
|
sed -i.rpm.bak -r 's/^KEYMAP="?fi-latin[19]"?/KEYMAP="fi"/' /etc/vconsole.conf || :
|
2015-11-12 06:12:17 +00:00
|
|
|
|
|
|
|
|
|
%preun udev
|
2016-04-22 18:21:31 +00:00
|
|
|
|
%systemd_preun %udev_services
|
2015-11-12 06:12:17 +00:00
|
|
|
|
|
|
|
|
|
%postun udev
|
2021-02-11 13:37:24 +00:00
|
|
|
|
# Restart some services.
|
2016-10-04 20:48:13 +00:00
|
|
|
|
# Others are either oneshot services, or sockets, and restarting them causes issues (#1378974)
|
2024-06-26 15:26:24 +00:00
|
|
|
|
%systemd_postun_with_restart systemd-udevd.service
|
2015-11-12 06:12:17 +00:00
|
|
|
|
|
2013-06-26 10:32:27 +00:00
|
|
|
|
|
2021-06-16 10:27:54 +00:00
|
|
|
|
%global journal_remote_units_restart systemd-journal-gatewayd.service systemd-journal-remote.service systemd-journal-upload.service
|
|
|
|
|
%global journal_remote_units_norestart systemd-journal-gatewayd.socket systemd-journal-remote.socket
|
2015-11-07 15:31:13 +00:00
|
|
|
|
%post journal-remote
|
2021-06-16 10:27:54 +00:00
|
|
|
|
%systemd_post %journal_remote_units_restart %journal_remote_units_norestart
|
2015-01-06 02:08:08 +00:00
|
|
|
|
%firewalld_reload
|
2013-06-26 10:32:27 +00:00
|
|
|
|
|
2015-11-07 15:31:13 +00:00
|
|
|
|
%preun journal-remote
|
2021-06-16 10:27:54 +00:00
|
|
|
|
%systemd_preun %journal_remote_units_restart %journal_remote_units_norestart
|
2017-12-12 08:05:12 +00:00
|
|
|
|
if [ $1 -eq 1 ] ; then
|
|
|
|
|
if [ -f %{_localstatedir}/lib/systemd/journal-upload/state -a ! -L %{_localstatedir}/lib/systemd/journal-upload ] ; then
|
|
|
|
|
mkdir -p %{_localstatedir}/lib/private/systemd/journal-upload
|
|
|
|
|
mv %{_localstatedir}/lib/systemd/journal-upload/state %{_localstatedir}/lib/private/systemd/journal-upload/.
|
2017-12-13 03:34:34 +00:00
|
|
|
|
rmdir %{_localstatedir}/lib/systemd/journal-upload || :
|
2017-12-12 08:05:12 +00:00
|
|
|
|
fi
|
|
|
|
|
fi
|
2013-06-26 10:32:27 +00:00
|
|
|
|
|
2015-11-07 15:31:13 +00:00
|
|
|
|
%postun journal-remote
|
2021-06-16 10:27:54 +00:00
|
|
|
|
%systemd_postun_with_restart %journal_remote_units_restart
|
2015-01-06 02:08:08 +00:00
|
|
|
|
%firewalld_reload
|
2013-06-26 10:32:27 +00:00
|
|
|
|
|
2024-01-09 09:12:34 +00:00
|
|
|
|
%post resolved
|
|
|
|
|
%systemd_post systemd-resolved.service
|
|
|
|
|
|
2021-06-16 15:03:00 +00:00
|
|
|
|
%preun resolved
|
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
|
systemctl disable --quiet \
|
|
|
|
|
systemd-resolved.service \
|
|
|
|
|
>/dev/null || :
|
2021-12-18 15:50:52 +00:00
|
|
|
|
if [ -L /etc/resolv.conf ] && \
|
|
|
|
|
realpath /etc/resolv.conf | grep ^/run/systemd/resolve/; then
|
|
|
|
|
rm -f /etc/resolv.conf # no longer useful
|
2021-11-06 18:20:44 +00:00
|
|
|
|
# if network manager is enabled, move to it instead
|
|
|
|
|
[ -f /run/NetworkManager/resolv.conf ] && \
|
|
|
|
|
systemctl -q is-enabled NetworkManager.service &>/dev/null && \
|
2021-12-18 15:50:52 +00:00
|
|
|
|
ln -fsv ../run/NetworkManager/resolv.conf /etc/resolv.conf
|
2021-11-06 18:20:44 +00:00
|
|
|
|
fi
|
2021-06-16 15:03:00 +00:00
|
|
|
|
fi
|
|
|
|
|
|
2024-01-09 09:12:34 +00:00
|
|
|
|
%postun resolved
|
|
|
|
|
%systemd_postun_with_restart systemd-resolved.service
|
2021-06-16 16:32:28 +00:00
|
|
|
|
|
2024-06-26 15:26:24 +00:00
|
|
|
|
%pre
|
|
|
|
|
getent group systemd-oom &>/dev/null || groupadd -r systemd-oom 2>&1 || :
|
|
|
|
|
getent passwd systemd-oom &>/dev/null || useradd -r -l -g systemd-oom -d / -s /sbin/nologin -c "systemd Userspace OOM Killer" systemd-oom &>/dev/null || :
|
|
|
|
|
|
|
|
|
|
%preun oomd
|
|
|
|
|
%systemd_preun systemd-oomd.service
|
|
|
|
|
|
|
|
|
|
%post oomd
|
|
|
|
|
%systemd_post systemd-oomd.service
|
|
|
|
|
|
|
|
|
|
%postun oomd
|
|
|
|
|
%systemd_postun_with_restart systemd-oomd.service
|
|
|
|
|
|
2016-04-18 15:50:22 +00:00
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
|
|
2022-03-17 20:37:30 +00:00
|
|
|
|
%files -f %{name}.lang -f .file-list-main
|
2015-01-19 21:11:51 +00:00
|
|
|
|
%doc %{_pkgdocdir}
|
2022-01-03 13:19:42 +00:00
|
|
|
|
%exclude %{_pkgdocdir}/LICENSE*
|
|
|
|
|
# Only the licenses texts for the licenses in License line are included.
|
2023-11-23 20:19:16 +00:00
|
|
|
|
%license LICENSE.GPL2
|
2022-01-03 13:19:42 +00:00
|
|
|
|
%license LICENSES/MIT.txt
|
2018-01-09 08:49:49 +00:00
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/basic.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/bluetooth.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/default.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/getty.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/graphical.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/local-fs.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/machines.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/multi-user.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/network-online.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/printer.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/remote-fs.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/sockets.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/sysinit.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/system-update.target.wants
|
|
|
|
|
%ghost %dir %attr(0755,-,-) /etc/systemd/system/timers.target.wants
|
2021-11-24 09:00:32 +00:00
|
|
|
|
%ghost %dir %attr(0700,-,-) /var/lib/portables
|
2018-01-09 08:49:49 +00:00
|
|
|
|
%ghost %dir %attr(0755,-,-) /var/lib/rpm-state/systemd
|
2017-12-11 23:41:07 +00:00
|
|
|
|
|
|
|
|
|
%files libs -f .file-list-libs
|
2016-04-18 15:50:22 +00:00
|
|
|
|
%license LICENSE.LGPL2.1
|
2014-07-24 20:41:23 +00:00
|
|
|
|
|
2017-12-11 23:41:07 +00:00
|
|
|
|
%files pam -f .file-list-pam
|
|
|
|
|
|
2018-11-02 10:39:52 +00:00
|
|
|
|
%files rpm-macros -f .file-list-rpm-macros
|
|
|
|
|
|
2021-06-16 15:03:00 +00:00
|
|
|
|
%files resolved -f .file-list-resolve
|
|
|
|
|
|
2017-12-11 23:41:07 +00:00
|
|
|
|
%files devel -f .file-list-devel
|
|
|
|
|
|
|
|
|
|
%files udev -f .file-list-udev
|
2015-11-12 06:12:17 +00:00
|
|
|
|
|
2023-01-24 23:16:28 +00:00
|
|
|
|
%files ukify -f .file-list-ukify
|
2024-08-28 09:57:41 +00:00
|
|
|
|
%if 0%{?want_bootloader}
|
2022-04-27 13:45:25 +00:00
|
|
|
|
%files boot-unsigned -f .file-list-boot
|
2022-12-03 08:47:34 +00:00
|
|
|
|
%endif
|
2022-04-27 13:45:25 +00:00
|
|
|
|
|
2017-12-11 23:41:07 +00:00
|
|
|
|
%files container -f .file-list-container
|
2021-11-24 09:00:32 +00:00
|
|
|
|
%ghost %dir %attr(0700,-,-) /var/lib/machines
|
2016-04-18 13:01:13 +00:00
|
|
|
|
|
2017-12-11 23:41:07 +00:00
|
|
|
|
%files journal-remote -f .file-list-remote
|
2013-06-26 10:32:27 +00:00
|
|
|
|
|
2024-06-26 15:26:24 +00:00
|
|
|
|
%files oomd -f .file-list-oomd
|
2023-01-24 23:16:28 +00:00
|
|
|
|
|
2023-08-03 21:13:40 +00:00
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
rm -f 10-timeout-abort.conf.user
|
|
|
|
|
rm -f .file-list-*
|
|
|
|
|
rm -f %{name}.lang
|
|
|
|
|
|
2010-06-11 06:18:33 +00:00
|
|
|
|
%changelog
|
2024-10-15 12:39:24 +00:00
|
|
|
|
* Tue Oct 15 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-15
|
|
|
|
|
- ci: rename beta branch to match dist-git name (RHEL-57603)
|
|
|
|
|
- udev: Handle PTP device symlink properly on udev action 'change' (RHEL-59871)
|
|
|
|
|
- Fix detection of TDX confidential VM on Azure platform (RHEL-56144)
|
|
|
|
|
- confidential-virt: split caching of CVM detection into separate method (RHEL-56144)
|
|
|
|
|
- confidential-virt: add detection for s390x target (RHEL-56144)
|
|
|
|
|
- man/systemd-detect-virt: fix row spanning for VM header (RHEL-56144)
|
|
|
|
|
- man/systemd-detect-virt: list known CVM technologies (RHEL-56144)
|
|
|
|
|
|
2024-08-30 14:04:39 +00:00
|
|
|
|
* Fri Aug 30 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-14
|
|
|
|
|
- Revert "cgroup-util: Don't try to open pidfd for kernel threads" (RHEL-52634)
|
|
|
|
|
- ukify: Skip test on architectures without UEFI (RHEL-52634)
|
|
|
|
|
|
2024-08-22 13:43:32 +00:00
|
|
|
|
* Thu Aug 22 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-13
|
|
|
|
|
- systemctl: do not try to acquire triggering units for template units (RHEL-55132)
|
|
|
|
|
- core/unit: add one assertion for u->manager (RHEL-55734)
|
|
|
|
|
- core/service: destroy runtime data when Type=oneshot services exit (RHEL-55734)
|
|
|
|
|
- cgroup-util: Ignore kernel threads in cg_kill_items() (RHEL-55746)
|
|
|
|
|
- cgroup-util: Don't try to open pidfd for kernel threads (RHEL-55746)
|
|
|
|
|
- cgroup-util: fix typo (RHEL-55746)
|
|
|
|
|
- netif-naming-scheme: rename rhel-10.0 to rhel-10.0.beta (RHEL-55728)
|
|
|
|
|
- net-naming-scheme: disable NAMING_FIRMWARE_NODE_SUN (RHEL-55728)
|
|
|
|
|
- net-naming-scheme: remove NAMING_FIRMWARE_NODE_SUN from 9.5 (RHEL-55728)
|
|
|
|
|
- make systemd-ukify subpackage arch dependent (RHEL-52634)
|
|
|
|
|
|
2024-08-15 10:50:22 +00:00
|
|
|
|
* Thu Aug 15 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-12
|
|
|
|
|
- netif-naming-scheme: add rhel-9.5 scheme (RHEL-44416)
|
|
|
|
|
- udev-builtin-net_id: use firmware_node/sun for ID_NET_NAME_SLOT (RHEL-44416)
|
|
|
|
|
- man/net-naming-scheme: add missing period (RHEL-44416)
|
|
|
|
|
- Revert "packit: drop the dependency on python3-zstd" (RHEL-36636)
|
|
|
|
|
|
2024-07-30 11:01:55 +00:00
|
|
|
|
* Tue Jul 30 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-11
|
|
|
|
|
- fix OpenScanHub builds (RHEL-40924)
|
|
|
|
|
|
2024-07-29 07:32:02 +00:00
|
|
|
|
* Mon Jul 29 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-10
|
|
|
|
|
- fix updgrade from versions before removal of systemd-ssh-generator - follow-up (RHEL-50131)
|
|
|
|
|
|
2024-07-25 17:37:56 +00:00
|
|
|
|
* Thu Jul 25 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-9
|
|
|
|
|
- fix updgrade from versions before removal of systemd-ssh-generator (RHEL-50131)
|
|
|
|
|
|
2024-07-23 12:39:36 +00:00
|
|
|
|
* Tue Jul 23 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-8
|
|
|
|
|
- Avoid /tmp being mounted as tmpfs without the user's will (RHEL-40924)
|
|
|
|
|
- unit: don't add Requires for tmp.mount (RHEL-40924)
|
|
|
|
|
- units: add [Install] section to tmp.mount (RHEL-40924)
|
|
|
|
|
- units: don't enable tmp.mount statically in local-fs.target (RHEL-40924)
|
|
|
|
|
|
2024-07-22 15:01:08 +00:00
|
|
|
|
* Mon Jul 22 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-7
|
|
|
|
|
- drop 10-timeout-abort.conf snippet (RHEL-46280)
|
|
|
|
|
- don't ship systemd-userdbd (RHEL-46280)
|
|
|
|
|
|
2024-07-19 07:04:06 +00:00
|
|
|
|
* Fri Jul 19 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-6
|
|
|
|
|
- doc: add downstream CONTRIBUTING document (RHEL-40924)
|
|
|
|
|
- ci: allow `policy` as rhel-only keyword (RHEL-40924)
|
|
|
|
|
- ci: run mkosi test only for Fedora and CentOS Stream (RHEL-40924)
|
|
|
|
|
- taint: remove unused variable `usr_sbin` (RHEL-40924)
|
|
|
|
|
- packit: drop the libarchive workaround (RHEL-40924)
|
|
|
|
|
- packit: drop the dependency on python3-zstd (RHEL-40924)
|
|
|
|
|
- coredump: by default process and store core files up to 1GiB (RHEL-46778)
|
|
|
|
|
- don't ship systemd-ssh-generator harder (RHEL-40924)
|
|
|
|
|
|
2024-07-17 13:36:35 +00:00
|
|
|
|
* Wed Jul 17 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-5
|
|
|
|
|
- don't ship systemd-ssh-generator (RHEL-40924)
|
|
|
|
|
|
2024-07-16 16:01:24 +00:00
|
|
|
|
* Tue Jul 16 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-4
|
|
|
|
|
- reenable systemd-firstboot (RHEL-48822)
|
2021-06-04 20:15:49 +00:00
|
|
|
|
- don't create /var/log/journal (RHEL-40924)
|
2024-07-16 16:01:24 +00:00
|
|
|
|
|
2024-07-08 14:16:18 +00:00
|
|
|
|
* Mon Jul 08 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-3
|
|
|
|
|
- taint: remove unmerged-bin (RHEL-46277)
|
|
|
|
|
- presets: remove resolved (RHEL-46576)
|
|
|
|
|
- remove resolved scriptlets
|
|
|
|
|
- don't install tests
|
|
|
|
|
|
2024-07-04 09:16:56 +00:00
|
|
|
|
* Thu Jul 04 2024 systemd maintenance team <systemd-maint@redhat.com> - 256-2
|
|
|
|
|
- logind: set RemoveIPC to false by default (RHEL-40924)
|
|
|
|
|
- tmpfiles: don't create resolv.conf -> stub-resolv.conf symlink (RHEL-40924)
|
|
|
|
|
- rc-local: order after network-online.target (RHEL-40924)
|
|
|
|
|
- random-util: increase random seed size to 1024 (RHEL-40924)
|
|
|
|
|
- journal: don't enable systemd-journald-audit.socket by default (RHEL-40924)
|
|
|
|
|
- journald.conf: don't touch current audit settings (RHEL-40924)
|
|
|
|
|
- rules: add elevator= kernel command line parameter (RHEL-40924)
|
|
|
|
|
- pid1: bump DefaultTasksMax to 80% of the kernel pid.max value (RHEL-40924)
|
|
|
|
|
- udev/net-setup-link: change the default MACAddressPolicy to "none" (RHEL-40924)
|
|
|
|
|
- core: decrease log level of messages about use of KillMode=none (RHEL-40924)
|
|
|
|
|
- meson: rename libbasic to libbasic_static (RHEL-46020)
|
|
|
|
|
- meson: build libsystemd-core via an intermediate static library (RHEL-46020)
|
|
|
|
|
- meson: add option to build systemd-executor "statically" (RHEL-46020)
|
|
|
|
|
|
2024-06-26 15:26:24 +00:00
|
|
|
|
* Wed Jun 26 2024 Jan Macku <jamacku@redhat.com> - 256-1
|
|
|
|
|
- Initial import and bootsprap from Fedora
|
|
|
|
|
* remove standalone packages
|
|
|
|
|
* remove networkd package
|
|
|
|
|
* remove homed
|
|
|
|
|
* remove portabled
|
|
|
|
|
* remove timesyncd
|
|
|
|
|
* remove tests package
|
|
|
|
|
* move oomd to separate package
|
|
|
|
|
* revert bin-sbin merge related changes
|
|
|
|
|
- remove autorelease stuff
|
|
|
|
|
* for changelog history see changelog file
|
|
|
|
|
- rules: copy 40-redhat.rules from RHEL 9 (RHEL-40360)
|
|
|
|
|
- net-naming-scheme: start rhel10 naming and include rhel8 and rhel9 ones (RHEL-22621)
|
|
|
|
|
- fedora: use system-auth in pam systemd-user (RHEL-40924)
|
|
|
|
|
- tmpfiles: make --purge hard to (mis-)use (RHEL-40924)
|
|
|
|
|
- journal: again create user journals for users with high uids (RHEL-40924)
|
|
|
|
|
- (origin/rhel-10.0.beta, rhel-10.0.beta) ci: allow to pass parameters together with rhel-only note (RHEL-36636)
|
|
|
|
|
- ci: reconfigure Packit for RHEL 10 (RHEL-36636)
|
|
|
|
|
- ci: deploy systemd man to GitHub Pages (RHEL-36636)
|
|
|
|
|
- ci: setup source-git automation (RHEL-36636)
|
|
|
|
|
- ci: update workflows to run on source-git setup (RHEL-36636)
|