## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # 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 %global pkgdir %{_prefix}/lib/systemd %global system_unit_dir %{pkgdir}/system %global user_unit_dir %{pkgdir}/user %bcond bzip2 1 %bcond gnutls 1 %bcond lz4 1 %bcond xz 1 %bcond zlib 1 %bcond zstd 1 # Bootstrap may be needed to break circular dependencies with cryptsetup, # e.g. when re-building cryptsetup on a json-c SONAME-bump. %bcond bootstrap 0 %bcond tests 1 # When enabled, rely on filesystem(unmerged-sbin-symlinks) file triggers to # create /usr/sbin symlinks instead of shipping them in the package. This # avoids file conflicts when installing on merged-sbin systems and eliminates # bootstrap ordering issues with the bin/sbin merge. # # So far only Fedora >= 43 ships a filesystem package with those file # triggers and the required matching virtual provides. %bcond sbin_compat %[0%{?fedora} >= 43] # riscv64 has LTO disabled globally %bcond lto %["%_arch" != "riscv64"] # Build docs on 64-bit architectures only %bcond docs %[%{?__isa_bits} >= 64] # Build from git main %bcond upstream 0 # Build with OBS-specific quirks %bcond obs 0 # When bootstrap, libcryptsetup is disabled # but auto-features causes many options to be turned on # that depend on libcryptsetup (e.g. libcryptsetup-plugins, homed) %if %{with bootstrap} %global __meson_auto_features disabled # If we're building for upstream, don't unconditionally enable all # new features as new features might be introduced for which we're # missing build dependencies. %elif %{with upstream} %global __meson_auto_features auto %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}} # In OBS, noarch packages are shared between all architectures and # independent architectures can be rebuilt automatically without all # the other architectures getting rebuilt. This can result in the noarch # packages being newer than the archful packages for some architectures, # which means our current strict deps from the noarch packages on the # archful packages can't be satisfied. # # To address this problem, let's relax the dependencies from the noarch # packages on the archful packages for OBS builds. Let's only do this for # OBS builds because this isn't an issue on Fedora as it's impossible to # build a package for only some of the architectures. %if %{with obs} %define noarch_requires_version %{version} %else %define noarch_requires_version %{version}-%{release} %endif %if 0%{?__isa_bits} == 64 %global elf_bits (64bit) %global elf_suffix ()%{elf_bits} %endif Name: systemd Url: https://systemd.io # Allow users to specify the version and release when building the rpm by # setting the %%version_override and %%release_override macros. # But don't do that on OBS, otherwise the version subst fails, and will be # like 257-123-gabcd257.1 instead of 257-123-gabcd %if %{without obs} Version: %{?version_override}%{!?version_override:262.1} %else Version: %{?version_override}%{!?version_override:%(cat meson.version)} %endif Release: %autorelease %global stable %(c="%version"; [ "$c" = "${c#*.*}" ]; echo $?) # Temporary macro to enable systemd-report.standalone %bcond report_standalone %[ v"%{version}" >= v"261.999" || %{defined commit} ] # For a breakdown of the licensing, see README License: LGPL-2.1-or-later AND MIT AND GPL-2.0-or-later Summary: System and Service Manager # download tarballs with "spectool -g systemd.spec" # packit will always rewrite the first Source0 it finds, ignoring any conditionals so list # the fallback source that's used if neither %%branch, %%commit or %%obs are defined first. %if %{undefined branch} && %{undefined commit} && %{without obs} Source0: https://github.com/systemd/systemd/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz %elif %{defined branch} Source0: https://github.com/systemd/systemd/archive/refs/heads/%{branch}.tar.gz %elif %{defined commit} Source0: https://github.com/systemd/systemd/archive/%{commit}/%{name}-%{commit}.tar.gz %elif %{with obs} Source0: https://github.com/systemd/systemd/archive/v%{version_no_tilde}/%{name}-%{version}.tar.xz %endif # This file must be available before %%prep. # It is generated during systemd build and can be found at build/src/rpm/triggers.systemd.sh. Source1: triggers.systemd Source2: split-files.py Source4: test_sysusers_defined.py Source7: sysctl.conf.README Source8: systemd-journal-remote.xml Source9: systemd-journal-gatewayd.xml Source11: systemd-udev-trigger-no-reload.conf # https://fedoraproject.org/wiki/How_to_filter_libabigail_reports Source13: libabigail.abignore Source14: 10-oomd-defaults.conf Source15: 10-oomd-per-slice-defaults.conf Source16: 10-timeout-abort.conf Source17: 10-map-count.conf Source18: 60-block-scheduler.rules Source20: macros.sysusers.compat Source21: macros.sysusers Source22: sysusers.attr Source23: sysusers.prov Source24: sysusers.generate-pre.sh Source25: 98-default-mac-none.link Source26: systemd-user # Repartition Fedora's file lists into component packages. Source27: systemd-second-layer-split.py # Downstream component and path changes. Patch100: systemd-optional-components.patch Patch101: systemd-configuration-layout.patch %if 0%{?fedora} < 40 && 0%{?rhel} < 10 # Work-around for dracut issue: run generators directly when we are in initrd # https://bugzilla.redhat.com/show_bug.cgi?id=2164404 # Drop when dracut-060 is available. Patch: https://github.com/systemd/systemd/pull/26494.patch %endif %if %{without upstream} # Those are downstream-only patches, but we don't want them in packit builds. # Create user journals for users with high UIDs # https://bugzilla.redhat.com/show_bug.cgi?id=2251843 Patch: 30846.patch # userdb: create userdb root directory with correct label # We can drop this after SELinux policy is updated to handle the transition. Patch: 0001-core-create-userdb-root-directory-with-correct-label.patch # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2415701 Patch: 0002-machined-continue-without-resolve.hook-socket.patch %endif %ifarch %{ix86} x86_64 aarch64 riscv64 loongarch64 %global want_bootloader 1 %endif BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: clang BuildRequires: coreutils BuildRequires: rpmdevtools BuildRequires: libmount-devel BuildRequires: libfdisk-devel BuildRequires: libpwquality-devel BuildRequires: libxcrypt-devel BuildRequires: pam-devel BuildRequires: libselinux-devel BuildRequires: audit-libs-devel %if %{without bootstrap} BuildRequires: cryptsetup-devel # Require (previous version) of our macros package. # We use the %%systemd_{post,preun,…} macros for various services. BuildRequires: systemd-rpm-macros %endif %if !%{defined rhel} || 0%{?rhel} > 10 # Use dlopen-notes to generate Requires/Recommends from embedded metadata. # Currently, package-notes are not available on Centos Stream 9 or 10. BuildRequires: package-notes >= 0.20 %endif BuildRequires: dbus-devel BuildRequires: util-linux # /usr/bin/getfacl is needed by test-acl-util BuildRequires: acl BuildRequires: libacl-devel BuildRequires: gobject-introspection-devel BuildRequires: libblkid-devel %if %{with xz} BuildRequires: xz-devel BuildRequires: xz %endif %if %{with lz4} BuildRequires: lz4-devel BuildRequires: lz4 %endif %if %{with bzip2} BuildRequires: bzip2-devel %endif %if %{with zstd} BuildRequires: libzstd-devel %endif BuildRequires: libidn2-devel BuildRequires: libcurl-devel BuildRequires: kmod-devel BuildRequires: elfutils-devel BuildRequires: openssl-devel %if 0%{?fedora} >= 41 && 0%{?fedora} < 45 BuildRequires: openssl-devel-engine %endif %if %{with gnutls} BuildRequires: gnutls-devel %endif %if 0%{?fedora} BuildRequires: qrencode-devel %endif BuildRequires: libmicrohttpd-devel BuildRequires: libxkbcommon-devel BuildRequires: iptables-devel BuildRequires: pkgconfig(bash-completion) BuildRequires: pkgconfig(libarchive) BuildRequires: pkgconfig(libfido2) BuildRequires: pkgconfig(tss2-esys) BuildRequires: pkgconfig(tss2-rc) BuildRequires: pkgconfig(tss2-mu) BuildRequires: pkgconfig(libbpf) BuildRequires: systemtap-sdt-devel %if %{with docs} BuildRequires: libxslt BuildRequires: docbook-style-xsl %endif BuildRequires: pkgconfig BuildRequires: gperf BuildRequires: gawk BuildRequires: hostname BuildRequires: python3 BuildRequires: python3-devel BuildRequires: python3dist(jinja2) BuildRequires: python3dist(lxml) BuildRequires: python3dist(pefile) %if 0%{?fedora} BuildRequires: python3dist(pillow) %endif BuildRequires: python3dist(pytest) %if 0%{?want_bootloader} BuildRequires: python3dist(pyelftools) %endif # gzip and lzma are provided by the stdlib BuildRequires: firewalld-filesystem BuildRequires: libseccomp-devel BuildRequires: meson >= 0.43 BuildRequires: gettext # We use RUNNING_ON_VALGRIND in tests, so the headers need to be available %ifarch %{valgrind_arches} BuildRequires: valgrind-devel %endif %if %{defined rhel} && 0%{?rhel} < 10 BuildRequires: rsync %endif %ifnarch %ix86 # bpftool is not built for i368 BuildRequires: bpftool BuildRequires: kernel-devel %global have_bpf 1 %endif %if 0%{?fedora} %ifarch x86_64 aarch64 %global have_xen 1 # That package is only built for those two architectures BuildRequires: xen-devel %endif %endif %if %{with obs} BuildRequires: pesign-obs-integration %endif Requires(post): coreutils Requires(post): grep # systemd-machine-id-setup requires libssl Requires(post): openssl-libs Recommends: dbus >= 1.9.18 Requires(meta): (systemd-rpm-macros = %{version}-%{release} if rpm-build) Requires: systemd-libs%{_isa} = %{version}-%{release} Requires: systemd-shared%{_isa} = %{version}-%{release} Requires: /usr/bin/systemd-sysusers # The standalone version doesn't Provide the _isa suffix, # so this biases towards the common version. Recommends: systemd-sysusers%{_isa} = %{version}-%{release} %if %{defined rhel} && 0%{?rhel} <= 10 Requires: libzstd.so.1%{?elf_suffix} %endif Recommends: diffutils Requires: (util-linux-core or util-linux) Requires: (libbpf >= 2:1.4.7 if libbpf) Provides: /bin/systemctl Provides: /sbin/shutdown Provides: syslog Provides: systemd-units = %{version}-%{release} Provides: nss-myhostname = 0.4 Provides: nss-myhostname%{_isa} = 0.4 Obsoletes: system-setup-keyboard < 0.9 Provides: system-setup-keyboard = 0.9 %if 0%{?fedora} Conflicts: fedora-release < 23-0.12 %endif %if 0%{?fedora} >= 41 || 0%{?rhel} >= 11 BuildRequires: setup >= 2.15.0-3 BuildRequires: python3 Conflicts: setup < 2.15.0-3 Conflicts: selinux-policy-any < 41.3 %endif %if 0%{?fedora} >= 41 || 0%{?rhel} >= 10 # 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 %elif 0%{?fedora} || %{without upstream} # Make sure that dracut supports systemd-executor and the renames done for v255. Conflicts: dracut < 059-16 %endif Conflicts: systemd-standalone-tmpfiles Provides: systemd-tmpfiles = %{version}-%{release} Conflicts: systemd-standalone-shutdown Provides: systemd-shutdown = %{version}-%{release} Requires: (systemd-zsh-completion = %{version}-%{release} if zsh) # If we are in a container Requires: (systemd-containerized = %{version}-%{release} if fedora-release-container) # Install extension support on image-based systems. Requires: (systemd-sysext = %{version}-%{release} if %{shrink:( fedora-release-ostree-desktop or fedora-release-coreos )}) %if %{with sbin_compat} || "%{_sbindir}" == "%{_bindir}" # Compat symlinks for Requires in other packages. # We rely on filesystem to create the symlinks for us. Requires: filesystem(unmerged-sbin-symlinks) Provides: /usr/sbin/halt Provides: /usr/sbin/init Provides: /usr/sbin/poweroff Provides: /usr/sbin/reboot Provides: /usr/sbin/shutdown %endif %if %{defined rhel} && 0%{?rhel} <= 10 # libmount is always required, even in containers, so make it a hard dependency. Requires: libmount.so.1%{?elf_suffix} Requires: libmount.so.1(MOUNT_2.26)%{?elf_bits} # Various systemd services have syscall filters so make libseccomp a hard dependency. Requires: libseccomp.so.2%{?elf_suffix} Requires: libacl.so.1%{?elf_suffix} %endif %define dlopen_notes_features %{expand: # Various systemd services have syscall filters so make libseccomp a hard dependency. systemd:seccomp:required # zstd is used for compression in the journal systemd:zstd:required # 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. systemd-udev:kmod:required # We want to always use idn with resolved. systemd-resolved:idn:required # libcurl is required by systemd-imdsd and systemd-report. # Downgrade the dep for now. systemd:curl:recommended systemd-udev:curl:recommended systemd-report:curl:recommended # libssl + libcrypto are required by systemd-resolved/resolvectl. # Downgrade the dep in the main package. systemd:libssl:recommended systemd:libcrypto:recommended # Disable qrencode on non-fedora builds %{!?fedora:*:qrencode:ignored} } %description 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. Other parts of this package are a logging daemon, utilities to control basic system configuration like the hostname, date, locale, maintain a list of logged-in users, system accounts, runtime directories and settings, and a logging daemons. %if 0%{?stable} This package was built from the %(c=%version; echo "v${c%.*}-stable") branch of systemd. %endif %package libs Summary: systemd libraries License: LGPL-2.1-or-later AND MIT Conflicts: systemd-shared < %{version}-%{release} %description libs Libraries for systemd and udev. %package shared Summary: Internal systemd shared library License: LGPL-2.1-or-later AND MIT # in 257.3-6 /usr/lib64/systemd/libsystemd-shared-257.2-14.fc42.so # was moved from package systemd to systemd-shared. # Add a conflit to allow downgrades across this change. Conflicts: systemd < 257.3-6 Conflicts: systemd-libs < %{version}-%{release} %description shared Internal libraries used by various systemd binaries. %package rpm-macros Summary: Macros that define paths and scriptlets related to systemd BuildArch: noarch %description rpm-macros Just the definitions of rpm macros. See https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_systemd for information how to use those macros. %package sysusers Summary: systemd-sysusers program Requires: systemd-shared%{_isa} = %{version}-%{release} Conflicts: systemd-standalone-sysusers # in 257.3-6 /usr/bin/systemd-sysusers was moved from package systemd # to systemd-sysusers. Add a conflit to allow downgrades across this change. Conflicts: systemd < 257.3-6 %description sysusers This package contains the systemd-sysusers program. %package devel Summary: Development headers for systemd License: LGPL-2.1-or-later AND MIT Requires: systemd-libs%{_isa} = %{version}-%{release} Requires(meta): (systemd-rpm-macros = %{version}-%{release} if rpm-build) Provides: libudev-devel = %{version} Provides: libudev-devel%{_isa} = %{version} %description devel Development headers and auxiliary files for developing applications linking to libudev or libsystemd. %package udev Summary: Rule-based device node and kernel event manager License: LGPL-2.1-or-later Requires: systemd%{_isa} = %{version}-%{release} Requires(post): systemd%{_isa} = %{version}-%{release} Requires(preun): systemd%{_isa} = %{version}-%{release} Requires(postun): systemd%{_isa} = %{version}-%{release} Requires(post): grep Requires: kmod >= 18-4 Requires: (systemd-quota%{_isa} = %{version}-%{release} if quota) %if %{defined rhel} && 0%{?rhel} <= 10 # 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} # udev uses libblkid in various builtins so make it a hard dependency. Requires: libblkid.so.1%{?elf_suffix} Requires: libblkid.so.1(BLKID_2.30)%{?elf_bits} Requires: libfdisk.so.1%{?elf_suffix} %endif Provides: udev = %{version} Provides: udev%{_isa} = %{version} %if 0%{?fedora} || 0%{?rhel} >= 10 Requires: (grubby > 8.40-72 if grubby) %endif %if 0%{?fedora} Requires: (sdubby > 1.0-3 if sdubby) %endif # A backport of systemd-timesyncd is shipped as a separate package in EPEL so # let's make sure we properly handle that. %if 0%{?rhel} Conflicts: systemd-timesyncd < %{version}-%{release} Obsoletes: systemd-timesyncd < %{version}-%{release} Provides: systemd-timesyncd = %{version}-%{release} %endif Conflicts: systemd-networkd < %{version}-%{release} %if %{defined rhel} && 0%{?rhel} <= 10 # 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} # udev uses libblkid in various builtins so make it a hard dependency. Requires: libblkid.so.1%{?elf_suffix} Requires: libblkid.so.1(BLKID_2.30)%{?elf_bits} %endif # https://bugzilla.redhat.com/show_bug.cgi?id=1377733#c9 Suggests: systemd-bootchart # v261 handles missing setfont/loadkeys gracefully Recommends: kbd # 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 # Newer versions of those are required to support X11 keycode remapping Conflicts: xorg-x11-drv-evdev < 2.11.0 Conflicts: xorg-x11-drv-libinput < 1.5.0 %if %{with sbin_compat} || "%{_sbindir}" == "%{_bindir}" # Compat symlinks for Requires in other packages. # We rely on filesystem to create the symlinks for us. Requires: filesystem(unmerged-sbin-symlinks) Provides: /usr/sbin/udevadm %endif %description udev 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. This package also provides systemd-timesyncd, a network time protocol daemon. %package report Summary: System metrics and signed reports Requires: systemd%{_isa} = %{version}-%{release} Conflicts: systemd-standalone-report Suggests: libcurl-minimal %description report Collect system metrics and generate, sign, and upload reports. %package storage Summary: Storage volume providers and management Requires: systemd%{_isa} = %{version}-%{release} %description storage Expose block devices, files, and directories as storage volumes and manage their mounts. %package imds Summary: Client for IMDS cloud metadata services Requires: systemd%{_isa} = %{version}-%{release} %description imds %{summary}. When this package is installed, systemd-imds-generator will automatically enable systemd-imds on supported clouds. This code should be considered experimental for now. %package firstboot Summary: First-boot initialization tool Requires: systemd%{_isa} = %{version}-%{release} Suggests: systemd-mute-console%{_isa} = %{version}-%{release} %description firstboot Tools and unit files for image initialization and first-boot configuration. %if 0%{?want_bootloader} %package sysinstall Summary: Operating system installer Requires: systemd%{_isa} = %{version}-%{release} Requires: systemd-boot%{_isa} = %{version}-%{release} Requires: systemd-credentials%{_isa} = %{version}-%{release} Requires: systemd-repart%{_isa} = %{version}-%{release} Suggests: systemd-mute-console%{_isa} = %{version}-%{release} %description sysinstall Terminal and command-line installer for deploying an operating system to disk. %endif %package userdb Summary: User record database tools Requires: systemd%{_isa} = %{version}-%{release} %description userdb User database management tools, including systemd-userdbd and userdbctl. %package credentials Summary: Credential management helpers Requires: systemd%{_isa} = %{version}-%{release} %description credentials Credential store and credential management helpers, including systemd-creds. %package capsule Summary: Capsule service components Requires: systemd%{_isa} = %{version}-%{release} %description capsule Unit files for service managers running under dynamically allocated user accounts. %package mute-console Summary: Console muting socket and helpers Requires: systemd%{_isa} = %{version}-%{release} %description mute-console Socket-activated helpers for muting console output. %package debug Summary: Debugging tools for systemd Requires: systemd = %{version}-%{release} %description debug Boot breakpoints, debug generator, and debug shell. %package clonesetup Summary: Device-mapper clone activation Requires: systemd-udev%{_isa} = %{version}-%{release} %description clonesetup Activate and tear down dm-clone devices configured in clonetab. %package quota Summary: File system quota initialization Requires: systemd%{_isa} = %{version}-%{release} Requires: /usr/sbin/quotaon Requires: /usr/sbin/quotacheck %description quota Check and enable file system quotas during boot. %package volatile-root Summary: Volatile root file systems Requires: systemd%{_isa} = %{version}-%{release} %description volatile-root Set up a stateless root file system in the initrd with systemd.volatile=. %package factory Summary: Systemd factory reset components Requires: systemd%{_isa} = %{version}-%{release} Suggests: systemd-repart%{_isa} = %{version}-%{release} %description factory Tools and services for requesting and performing factory resets. %package pcr Summary: Platform Configuration Register (PCR) management tools Requires: systemd = %{version}-%{release} Requires: systemd-tpm2%{_isa} = %{version}-%{release} %description pcr This package provides tools for managing Platform Configuration Registers (PCRs). %package nspawn Summary: Tools for containers Requires: systemd-machine%{_isa} = %{version}-%{release} # Unprivileged nspawn defaults to managed user namespaces. Requires: systemd-namespace%{_isa} = %{version}-%{release} License: LGPL-2.1-or-later %description nspawn Systemd tools to spawn and manage containers. This package contains systemd-nspawn. %package cryptsetup Summary: Early-boot cryptsetup and integrity helpers Requires: systemd-udev%{_isa} = %{version}-%{release} Suggests: systemd-tpm2%{_isa} = %{version}-%{release} %description cryptsetup Early-boot cryptsetup, integritysetup, and veritysetup helpers and units. %package repart Summary: Repartitioning and growfs helpers Requires: systemd%{_isa} = %{version}-%{release} Suggests: systemd-udev%{_isa} = %{version}-%{release} %if %{defined rhel} && 0%{?rhel} <= 10 Requires: libblkid.so.1%{?elf_suffix} Requires: libblkid.so.1(BLKID_2.30)%{?elf_bits} Requires: libfdisk.so.1%{?elf_suffix} %endif Provides: systemd-repart = %{version}-%{release} Conflicts: systemd-standalone-repart %description repart Partitioning, file system creation and growth, and image construction templates. %package tpm2 Summary: TPM2 integration helpers Requires: systemd-udev%{_isa} = %{version}-%{release} Requires: (swtpm-tools if swtpm) %description tpm2 TPM2 setup and software TPM support. %package udev-kernelless Summary: Boot services for virtual machines using an external kernel Requires: systemd%{_isa} = %{version}-%{release} Requires: (systemd-quota%{_isa} = %{version}-%{release} if quota) Requires(post): grep Provides: udev = %{version}-%{release} Conflicts: systemd-udev %description udev-kernelless Root file system services for virtual machines started with an external kernel and initrd, such as QEMU -kernel. No kernel, modules, or device manager are included. %package ukify Summary: Tool to build Unified Kernel Images Requires: systemd-boot-tools = %{noarch_requires_version} Requires: (systemd-stub = %{noarch_requires_version} if %{shrink:( filesystem(x86-32) or filesystem(x86-64) or filesystem(aarch64) or filesystem(riscv64) or filesystem(loongarch64) )}) Requires: python3dist(pefile) Requires: python3dist(zstandard) Requires: python3dist(cryptography) %if 0%{?fedora} Recommends: python3dist(pillow) %endif # for tests %ifarch riscv64 # 2.42 received support for riscv64 + efi targets %global binutils_version_req >= 2.42 %endif BuildRequires: binutils %{?binutils_version_req} BuildArch: noarch %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). %package boot-tools Summary: Boot entry management and UKI signing tools Requires: systemd-shared%{_isa} = %{version}-%{release} %if %{defined rhel} && 0%{?rhel} <= 10 Requires: libblkid.so.1%{?elf_suffix} Requires: openssl-libs %endif %description boot-tools Tools to manage boot entries and sign, measure, and inspect Unified Kernel Images. %if 0%{?want_bootloader} %package stub Summary: UEFI stub for Unified Kernel Images %description stub UEFI entry points for Unified Kernel Images, usable independently of systemd-boot. %if %{without obs} %package boot-unsigned Summary: UEFI boot manager (unsigned version) Requires: systemd%{_isa} = %{version}-%{release} Requires: systemd-boot-tools%{_isa} = %{version}-%{release} Provides: systemd-boot-unsigned-%{efi_arch} = %version-%release Provides: systemd-boot = %version-%release Provides: systemd-boot%{_isa} = %version-%release # 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 %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. %else %package boot Summary: UEFI boot manager (signed version) Requires: systemd%{_isa} = %{version}-%{release} Requires: systemd-boot-tools%{_isa} = %{version}-%{release} Provides: systemd-boot-signed-%{efi_arch} = %version-%release Provides: systemd-boot = %version-%release Provides: systemd-boot%{_isa} = %version-%release # A provides with just the version, no release or dist, used to build systemd-boot Provides: version(systemd-boot-signed) = %version Provides: version(systemd-boot-signed)%{_isa} = %version %description boot 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 signed version. %endif %endif %package home Summary: Home directory manager Requires: systemd = %{version}-%{release} Requires: (systemd-ssh%{_isa} = %{version}-%{release} if openssh-server) Recommends: systemd-userdb%{_isa} = %{version}-%{release} Suggests: systemd-mute-console%{_isa} = %{version}-%{release} License: LGPL-2.1-or-later %description home Systemd tools to manage home directories. This package contains systemd-homed, which manages home directories in a more secure and convenient way. %package portable Summary: Systemd portable service manager Requires: systemd = %{version}-%{release} Suggests: systemd-namespace%{_isa} = %{version}-%{release} License: LGPL-2.1-or-later %description portable This package provides systemd's portable service manager, enabling the management of services in a containerized environment. %package ssh Summary: Systemd SSH and SSHD related tools and configuration Requires: systemd = %{version}-%{release} Requires: (systemd-userdb%{_isa} = %{version}-%{release} if openssh-server) Requires: (openssh-clients or openssh-server) Suggests: openssh-server License: LGPL-2.1-or-later %description ssh This package provides tools and configurations for SSH clients and servers. %package containerized Summary: Systemd containerized components Requires: systemd = %{version}-%{release} License: LGPL-2.1-or-later %description containerized This package provides systemd's containerized components, enabling the features of systemd in a containerized environment. %package sysext Summary: System and configuration extensions Requires: systemd%{_isa} = %{version}-%{release} %description sysext Merge system and configuration extensions into the running system. %package sysupdate Summary: Image update tools Requires: systemd = %{version}-%{release} Requires: systemd-import%{_isa} = %{version}-%{release} License: LGPL-2.1-or-later %description sysupdate Tools and services for downloading and applying image updates. %package machine Summary: Container and virtual machine registration Requires: systemd%{_isa} = %{version}-%{release} Requires: (systemd-ssh%{_isa} = %{version}-%{release} if openssh-clients) Suggests: systemd-import%{_isa} = %{version}-%{release} License: LGPL-2.1-or-later %description machine Tools and services for registering and managing containers and virtual machines. This package contains machinectl and systemd-machined. %package image Summary: Local disk image inspection and mounting Requires: systemd%{_isa} = %{version}-%{release} Requires: systemd-namespace%{_isa} = %{version}-%{release} %description image Inspect and mount local disk images and layered mount stacks, including unprivileged access. %package import Summary: Tools to download, import and export container and VM images Requires: systemd%{_isa} = %{version}-%{release} Requires: gnupg2 Suggests: systemd-namespace%{_isa} = %{version}-%{release} # Bias the system towards libcurl-minimal if nothing pulls in full libcurl (#1997040) Suggests: libcurl-minimal License: LGPL-2.1-or-later %description import Systemd tools to download, import, and export container and VM images. %package namespace Summary: Managed user namespaces and image mounts Requires: systemd%{_isa} = %{version}-%{release} License: LGPL-2.1-or-later %description namespace Services for managed user namespaces and image mounts, used by unprivileged containers, virtual machines, image imports, and managed service sandboxes. %package vmspawn Summary: Tools for VMs Requires: systemd-machine%{_isa} = %{version}-%{release} Requires: qemu-kvm-core Requires: (swtpm-tools if swtpm) Suggests: systemd-namespace%{_isa} = %{version}-%{release} %if 0%{?fedora} Suggests: qemu-device-display-virtio-gpu Suggests: qemu-device-display-virtio-vga %endif License: LGPL-2.1-or-later %description vmspawn Systemd tools to spawn and manage virtual machines. This package contains systemd-vmspawn. %package storagetm Summary: Systemd storage target mode Requires: systemd-udev%{_isa} = %{version}-%{release} License: LGPL-2.1-or-later %description storagetm Systemd storage target mode. This package contains systemd-storagetm. %package journal-remote # Name is the same as in Debian Summary: Tools to send journal events over the network Requires: systemd%{_isa} = %{version}-%{release} License: LGPL-2.1-or-later Requires: firewalld-filesystem Provides: systemd-journal-gateway = %{version}-%{release} Provides: systemd-journal-gateway%{_isa} = %{version}-%{release} %if %{defined rhel} && 0%{?rhel} <= 10 Requires: libmicrohttpd.so.12%{?elf_suffix} Requires: libcurl.so.4%{?elf_suffix} %endif # Bias the system towards libcurl-minimal if nothing pulls in full libcurl (#1997040) Suggests: libcurl-minimal %description journal-remote Programs to forward journal entries over the network, using encrypted HTTP, and to write journal files from serialized journal contents. This package contains systemd-journal-gatewayd, systemd-journal-remote, and systemd-journal-upload. %package networkd Summary: System daemon that manages network configurations Requires: systemd%{_isa} = %{version}-%{release} Conflicts: systemd-udev < %{version}-%{release} License: LGPL-2.1-or-later %description networkd systemd-networkd is a system service that manages networks. It detects and configures network devices as they appear, as well as creating virtual network devices. %package networkd-defaults Summary: Configure network interfaces with networkd by default Requires: systemd-networkd = %{noarch_requires_version} License: MIT-0 BuildArch: noarch %description networkd-defaults This package contains a set of config files for systemd-networkd that cause it to configure network interfaces by default. Note that systemd-networkd needs to enabled for this to have any effect. %package resolved Summary: Network Name Resolution manager Requires: systemd%{_isa} = %{version}-%{release} %if %{defined rhel} && 0%{?rhel} <= 10 Requires: libidn2.so.0%{?elf_suffix} Requires: libidn2.so.0(IDN2_0.0.0)%{?elf_bits} %endif Requires(posttrans): grep %description resolved 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. %package oomd-defaults Summary: Configuration files for systemd-oomd Requires: systemd = %{noarch_requires_version} License: LGPL-2.1-or-later BuildArch: noarch %description oomd-defaults A set of drop-in files for systemd units to enable action from systemd-oomd, a userspace out-of-memory (OOM) killer. %package zsh-completion Summary: Zsh completion files for systemd Requires: systemd = %{version}-%{release} Requires: zsh BuildArch: noarch %description zsh-completion This package contains Zsh completion files for systemd. %package tests Summary: Internal unit tests for systemd Requires: systemd%{_isa} = %{version}-%{release} # This dependency is provided transitively. Also add it explicitly to # appease rpminspect, https://github.com/rpminspect/rpminspect/issues/1231: Requires: systemd-libs%{_isa} = %{version}-%{release} Requires: python3dist(psutil) License: LGPL-2.1-or-later %description tests Systemd unit tests used to test the internal implementation after a build. Different binaries test different parts of the codebase. %package standalone-repart Summary: Standalone systemd-repart binary for use on systems without systemd Provides: systemd-repart = %{version}-%{release} Conflicts: systemd-repart Suggests: coreutils-single RemovePathPostfixes: .standalone %description standalone-repart Standalone systemd-repart binary with no dependencies on the systemd-shared library or other libraries from systemd-libs. %if %{with report_standalone} %package standalone-report Summary: Standalone systemd-report binaries for use on systems without systemd Provides: systemd-report = %{version}-%{release} Conflicts: systemd-report RemovePathPostfixes: .standalone %description standalone-report Standalone systemd-report, systemd-report-basic, systemd-report-sign-plain, … binaries with no dependencies on the systemd-shared library or other libraries from systemd-libs. This package conflicts with the systemd-report package. %endif %package standalone-tmpfiles Summary: Standalone systemd-tmpfiles binary for use on systems without systemd Provides: systemd-tmpfiles = %{version}-%{release} Conflicts: systemd Suggests: coreutils-single RemovePathPostfixes: .standalone %description standalone-tmpfiles Standalone systemd-tmpfiles binary with no dependencies on the systemd-shared library or other libraries from systemd-libs. This package conflicts with the main systemd package and is meant for use on systems without systemd. %package standalone-sysusers Summary: Standalone systemd-sysusers binary for use on systems without systemd Provides: systemd-sysusers = %{version}-%{release} Suggests: coreutils-single RemovePathPostfixes: .standalone %description standalone-sysusers Standalone systemd-sysusers binary with no dependencies on the systemd-shared library or other libraries from systemd-libs. This package conflicts with the systemd-sysusers package. %package standalone-shutdown Summary: Standalone systemd-shutdown binary for use in exitrds Provides: systemd-shutdown = %{version}-%{release} Conflicts: systemd Suggests: coreutils-single RemovePathPostfixes: .standalone %description standalone-shutdown Standalone systemd-shutdown binary with no dependencies on the systemd-shared library or other libraries from systemd-libs. This package conflicts with the main systemd package and is meant for use in exitrds. %define status %{shrink: '**' bzip2=%{?with_bzip2}%{!?with_bzip2:0} gnutls=%{?with_gnutls}%{!?with_gnutls:0} lz4=%{?with_lz4}%{!?with_lz4:0} xz=%{?with_xz}%{!?with_xz:0} zlib=%{?with_zlib}%{!?with_zlib:0} zstd=%{?with_zstd}%{!?with_zstd:0} bootstrap=%{?with_bootstrap}%{!?with_bootstrap:0} tests=%{?with_tests}%{!?with_tests:0} lto=%{?with_lto}%{!?with_lto:0} docs=%{?with_docs}%{!?with_docs:0} upstream=%{?with_upstream}%{!?with_upstream:0} obs=%{?with_obs}%{!?with_obs:0} report_standalone=%{?with_report_standalone}%{!?with_report_standalone:0} fedora=%{?fedora} rhel=%{?rhel} _arch=%{_arch} '**'} %prep # Print varius with's and without's to make it easier to figure out what is going on echo %{status} %if %{with obs} # Recipe files in the OBS build are in a distro-specific dir, as they conflict (e.g. with SUSE ones) mv %{_sourcedir}/%{name}.fedora/* %{_sourcedir} %endif # Automatically figure out the name of the top-level directory. # TODO: Use %%autosetup -C once we can depend on rpm >= 4.20. %if %{undefined _build_in_place} %autosetup -n %(tar -tf %{SOURCE0} 2>/dev/null | head -n1) -p1 %endif # Disable user lockdown until rpm implements it natively. # https://github.com/rpm-software-management/rpm/issues/3450 sed -r -i 's/^u!/u/' sysusers.d/*.conf* %build echo %{status} %if 0%{?eln} %global ntpvendor fedora %else %global ntpvendor %(source /etc/os-release; echo ${ID}) %endif %{!?ntpvendor: echo 'NTP vendor zone is not set!'; exit 1} VMLINUX_H_PATH='' %if 0%{?have_bpf} %global find_vmlinux_h %{expand: import functools, glob, subprocess def cmp(a, b): c = subprocess.call(["rpmdev-vercmp", a, b], stdout=subprocess.DEVNULL) return {0:0, 11:+1, 12:-1}[c] choices = list(glob.glob("/usr/src/kernels/*/vmlinux.h")) assert choices print(max(choices, key=functools.cmp_to_key(cmp))) } # The build fails on ppc64le with # "GCC error "Must specify a BPF target arch via __TARGET_ARCH_xxx". # TODO: Remove this when libbpf checks for __powerpc64__ macro. %ifnarch ppc64le VMLINUX_H_PATH=$(%python3 -c '%find_vmlinux_h') %endif %endif CONFIGURE_OPTS=( -Dmode=release -Dslow-tests=true -Dcompat-sysv-interfaces=false -Dxorg=false -Dntp-servers='0.%{ntpvendor}.pool.ntp.org 1.%{ntpvendor}.pool.ntp.org 2.%{ntpvendor}.pool.ntp.org 3.%{ntpvendor}.pool.ntp.org' -Ddns-servers= -Dservice-watchdog= -Ddev-kvm-mode=0666 -Dkmod=enabled -Dxkbcommon=enabled -Dblkid=enabled -Dfdisk=enabled -Dseccomp=enabled -Dima=true -Dselinux=enabled -Dbpf-framework=%[0%{?have_bpf}?"enabled":"disabled"] -Dvmlinux-h=%[0%{?have_bpf}?"auto":"disabled"] -Dvmlinux-h-path="$VMLINUX_H_PATH" -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 -Dsmack=true -Dopenssl=enabled -Dp11kit=enabled -Dgcrypt=disabled -Daudit=enabled -Delfutils=enabled -Dlibcryptsetup=%[%{with bootstrap}?"disabled":"enabled"] -Drepart=enabled -Dpwquality=enabled -Dqrencode=%[%{defined rhel}?"disabled":"enabled"] -Dgnutls=%[%{with gnutls}?"enabled":"disabled"] -Dmicrohttpd=enabled -Dvmspawn=enabled -Dlibidn2=enabled -Dlibcurl=enabled -Dlibfido2=enabled -Dxenctrl=%[0%{?have_xen}?"enabled":"disabled"] -Defi=true -Dsysupdate=enabled -Dsysupdated=enabled -Dsysinstall=%[0%{?want_bootloader}?"true":"false"] -Dtpm=true -Dtpm2=enabled -Dhwdb=true -Dsysusers=true -Dstandalone-binaries=true -Ddefault-kill-user-processes=false -Dfirst-boot-full-preset=true -Ddefault-network=true -Dtests=unsafe -Dinstall-tests=true -Dnobody-user=nobody -Dnobody-group=nobody -Dcompat-mutable-uid-boundaries=true -Dsplit-bin=true -Db_ndebug=false -Dman=%[%{with docs}?"enabled":"disabled"] -Dversion-tag=%{version}%[%{without upstream}?"-%{release}":""] # https://bugzilla.redhat.com/show_bug.cgi?id=1906010 -Dshared-lib-tag=%{version_no_tilde}%[%{without upstream}?"-%{release}":""] -Dlink-executor-shared=false -Dfallback-hostname="localhost" -Ddefault-dnssec=no -Ddefault-dns-over-tls=no # https://bugzilla.redhat.com/show_bug.cgi?id=1867830 -Ddefault-mdns=no -Ddefault-llmnr=resolve # https://bugzilla.redhat.com/show_bug.cgi?id=2028169 -Dstatus-unit-format-default=combined %if 0%{?fedora} # https://fedoraproject.org/wiki/Changes/Shorter_Shutdown_Timer -Ddefault-timeout-sec=45 -Ddefault-user-timeout-sec=45 %endif -Dconfigfiledir=/usr/lib -Doomd=true -Dadm-gid=4 -Dtty-gid=5 -Ddisk-gid=6 -Dlp-gid=7 -Dkmem-gid=9 -Dwheel-gid=10 -Dcdrom-gid=11 -Ddialout-gid=18 -Dutmp-gid=22 -Dtape-gid=33 -Dkvm-gid=36 -Dvideo-gid=39 -Daudio-gid=63 -Dusers-gid=100 -Dinput-gid=104 -Drender-gid=105 -Dsgx-gid=106 -Dsystemd-journal-gid=190 -Dsystemd-network-uid=192 -Dsystemd-resolve-uid=193 # -Dsystemd-timesync-uid=, not set yet # Make sure we use the original paths to maintain compatibility # with unmerged systems -Dquotaon-path=/usr/sbin/quotaon -Dquotacheck-path=/usr/sbin/quotacheck -Dkmod-path=/usr/bin/kmod -Dkexec-path=/usr/sbin/kexec -Dsulogin-path=/usr/sbin/sulogin -Dmount-path=/usr/bin/mount -Dumount-path=/usr/bin/umount -Dloadkeys-path=/usr/bin/loadkeys -Dsetfont-path=/usr/bin/setfont -Dnologin-path=/usr/sbin/nologin # 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"] -Dukify=enabled %if 0%{?want_bootloader} && %{with obs} -Dsbat-distro-url=https://github.com/systemd/systemd -Dsbat-distro=upstream -Dsbat-distro-summary='Upstream build from git' -Defi-stub-extra-sections=500 -Defi-addon-extra-sections=100 %endif ) %if %{without lto} %global _lto_cflags %nil %endif { %meson "${CONFIGURE_OPTS[@]}" %{?meson_extra_configure_options} ; } %meson_build # If dynamic spec generation is available, directly pick up the triggers # from the build directory for upstream builds. %if %{with upstream} && (0%{?fedora} >= 41 || 0%{?rhel} >= 11) # Include the triggers cp %{_vpath_builddir}/src/rpm/triggers.systemd.sh %{specpartsdir}/triggers.specpart %else 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 %endif sed -r 's|/system/|/user/|g' %{SOURCE16} >10-timeout-abort.conf.user %install %meson_install # udev links %if !%{with sbin_compat} && "%{_sbindir}" != "%{_bindir}" mkdir -p %{buildroot}/%{_sbindir} ln -sf ../bin/udevadm %{buildroot}%{_sbindir}/udevadm %endif # Compatiblity and documentation files touch %{buildroot}/etc/crypttab chmod 600 %{buildroot}/etc/crypttab # 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/homed.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/networkd.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/timesyncd.conf \ %{buildroot}/etc/systemd/user.conf \ %{buildroot}/etc/udev/udev.conf \ %{buildroot}/etc/udev/iocost.conf # /etc/sysctl.conf compat install -Dm0644 %{SOURCE7} %{buildroot}/etc/sysctl.conf ln -s ../sysctl.conf %{buildroot}/etc/sysctl.d/99-sysctl.conf # Make sure these directories are properly owned 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 mkdir -p %{buildroot}/run mkdir -p %{buildroot}%{_localstatedir}/log touch %{buildroot}%{_localstatedir}/log/lastlog chmod 0664 %{buildroot}%{_localstatedir}/log/lastlog touch %{buildroot}/run/utmp touch %{buildroot}%{_localstatedir}/log/{w,b}tmp # Make sure the user generators dir exists too mkdir -p %{buildroot}%{pkgdir}/system-generators mkdir -p %{buildroot}%{pkgdir}/user-generators # Create new-style configuration files so that we can ghost-own them 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 install -d -m 0700 %{buildroot}%{_sysconfdir}/userdb # Make sure the shutdown/sleep drop-in dirs exist mkdir -p %{buildroot}%{pkgdir}/system-shutdown/ mkdir -p %{buildroot}%{pkgdir}/system-sleep/ # Make sure directories in /var exist mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/coredump mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/catalog mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/backlight mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/rfkill mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/linger 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 mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/timesync ln -s ../private/systemd/journal-upload %{buildroot}%{_localstatedir}/lib/systemd/journal-upload mkdir -p %{buildroot}%{_localstatedir}/log/journal touch %{buildroot}%{_localstatedir}/lib/systemd/catalog/database touch %{buildroot}%{_sysconfdir}/udev/hwdb.bin touch %{buildroot}%{_localstatedir}/lib/systemd/random-seed touch %{buildroot}%{_localstatedir}/lib/systemd/timesync/clock touch %{buildroot}%{_localstatedir}/lib/private/systemd/journal-upload/state # Install yum protection config. Old location in /etc. mkdir -p %{buildroot}/etc/dnf/protected.d/ cat >%{buildroot}/etc/dnf/protected.d/systemd.conf <%{buildroot}/usr/share/dnf5/libdnf.conf.d/protect-systemd.conf <= 42 || 0%{?rhel} >= 11 install -m 0644 -D %{SOURCE21} %{buildroot}%{_rpmconfigdir}/macros.d/macros.sysusers %else install -m 0644 -D %{SOURCE20} %{buildroot}%{_rpmconfigdir}/macros.d/macros.sysusers # Use rpm's own sysusers provides where available %if ! (0%{?fedora} >= 39 || 0%{?rhel} >= 10) install -m 0644 -D -t %{buildroot}%{_rpmconfigdir}/fileattrs/ %{SOURCE22} install -m 0755 -D -t %{buildroot}%{_rpmconfigdir}/ %{SOURCE23} %endif install -m 0755 -D -t %{buildroot}%{_rpmconfigdir}/ %{SOURCE24} %endif # https://bugzilla.redhat.com/show_bug.cgi?id=2107754 install -Dm0644 -t %{buildroot}%{_prefix}/lib/systemd/network/ %{SOURCE25} %if 0%{?fedora} || 0%{?rhel} >= 10 ln -s --relative %{buildroot}%{_bindir}/kernel-install %{buildroot}%{_sbindir}/installkernel %endif %if %{with sbin_compat} || "%{_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 || 0%{?rhel} >= 11 %if %{without upstream} # This requires https://pagure.io/setup/pull-request/50 # and https://src.fedoraproject.org/rpms/setup/pull-request/10. # We skip this on upstream builds so that new users and groups # can be added without breaking the build. %if 0%{?fedora} >= 43 || 0%{?rhel} >= 11 IGNORED=empower \ %{python3} %{SOURCE4} /usr/lib/sysusers.d/setup.conf %{buildroot}/usr/lib/sysusers.d/basic.conf %else %{python3} %{SOURCE4} /usr/lib/sysusers.d/20-setup-{users,groups}.conf %{buildroot}/usr/lib/sysusers.d/basic.conf %endif %endif sed -n -r -i '1,7p; /can .do.|empower/p' %{buildroot}/usr/lib/sysusers.d/basic.conf %endif # Disable sshd_config.d/20-systemd-userdb.conf for now. # This option may override an existing AuthorizedKeysCommand setting # (or be ineffective, depending on the order of configuration). # See https://github.com/systemd/systemd/issues/33648. rm %{buildroot}/etc/ssh/sshd_config.d/20-systemd-userdb.conf mv %{buildroot}/usr/lib/tmpfiles.d/20-systemd-userdb.conf{,.example} install -m 0644 -t %{buildroot}%{_prefix}/lib/pam.d/ %{SOURCE26} %find_lang %{name} # The kernelless profile uses built-in pstore backends without module loading. install -d %{buildroot}%{system_unit_dir}/systemd-pstore.service.d cat >%{buildroot}%{system_unit_dir}/systemd-pstore.service.d/10-kernelless.conf <<'EOF' [Unit] Wants= After= EOF # Split files in build root into rpms python3 %{SOURCE2} %buildroot %{!?want_bootloader:--no-bootloader} # Stage sd-boot binaries for signing %if %{with obs} && 0%{?want_bootloader} BRP_PESIGN_FILES=/usr/lib/systemd/boot/efi/systemd-boot%{efi_arch}.efi BRP_PESIGN_PACKAGES=systemd-boot /usr/lib/rpm/brp-suse.d/brp-99-pesign %endif # Direct second-stage repartition based on Fedora's split-files.py output. %{__python3} %{SOURCE27} %{!?want_bootloader:--no-bootloader} %check %if %{with tests} meson test -C %{_vpath_builddir} -t 6 --print-errorlogs %endif %if %{with lto} # Make sure that LTO is effective at removing unused code. When compiled # without LTO, we end up with all of libbasic_static.a in libsystemd.so. # For example, all the configuration stuff is not needed for libsystemd.so. # Make sure it is gone. (! strings %{buildroot}%{_libdir}/libsystemd.so | grep Config) %endif ############################################################################################# %if %{without upstream} || (0%{?fedora} < 41 && 0%{?rhel} < 11) %include %{SOURCE1} %endif # This macro is newly added upstream so we can't rely on it being always being available # in the systemd-rpm-macros yet so we define it ourselves. %global systemd_posttrans_with_restart() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_posttrans_with_restart}} \ if [ $1 -ge 2 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Package upgrade, not install \ /usr/lib/systemd/systemd-update-helper mark-restart-system-units %* || : \ fi \ %{nil} %global systemd_user_posttrans_with_restart() \ %{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# systemd_user_posttrans_with_restart}} \ if [ $1 -ge 2 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then \ # Package upgrade, not install \ /usr/lib/systemd/systemd-update-helper mark-restart-user-units %* || : \ fi \ %{nil} %global main_services %{shrink: emergency.service emergency.target getty-pre.target getty.target rescue.service rescue.target systemd-coredump.socket systemd-coredump@.service systemd-oomd.service systemd-oomd.socket systemd-sysctl.service } %post systemd-machine-id-setup &>/dev/null || : # This is for upgrades from previous versions before getty@.service needed to be enabled [ $1 -gt 1 ] && systemctl is-enabled getty@tty1.service &>/dev/null && \ touch %{_localstatedir}/lib/rpm-state/systemd-getty-was-active || : [ $1 -eq 1 ] || exit 0 # create /var/log/journal only on initial installation, # and only if it's writable (it won't be in rpm-ostree). [ -w %{_localstatedir} ] && mkdir -p %{_localstatedir}/log/journal [ -w %{_localstatedir} ] && journalctl --update-catalog || : systemd-sysusers || : systemd-tmpfiles --create &>/dev/null || : # 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: # 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. systemctl preset-all &>/dev/null || : systemctl --global preset-all &>/dev/null || : %preun %systemd_preun %main_services %posttrans if [ $1 -ge 2 ]; then [ -w %{_localstatedir} ] && journalctl --update-catalog || : systemctl daemon-reexec || : systemd-tmpfiles --create &>/dev/null || : rm -f %{_localstatedir}/lib/rpm-state/systemd-getty-was-active || : fi %systemd_posttrans_with_restart systemd-timedated.service systemd-hostnamed.service systemd-journald.service systemd-localed.service systemd-oomd.service # FIXME: systemd-logind.service is excluded (https://github.com/systemd/systemd/pull/17558) # This is the expanded form of %%systemd_user_daemon_reexec. We # can't use the macro because we define it ourselves. if [ $1 -ge 2 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Package upgrade, not uninstall /usr/lib/systemd/systemd-update-helper user-reexec || : fi %triggerun -- systemd < 256 # This is for upgrades from previous versions before systemd restart was moved to %%postun systemctl daemon-reexec || : %triggerpostun -- systemd < 260~rc1 if [ -f %{_localstatedir}/lib/rpm-state/systemd-getty-was-active ]; then systemctl --no-reload enable getty@.service || : fi %global sysupdate_services %{shrink: systemd-sysupdate-auto-enable.service systemd-sysupdate-reboot.service systemd-sysupdate-reboot.timer systemd-sysupdate-update.service systemd-sysupdate-update.timer systemd-sysupdate.service systemd-sysupdate.socket systemd-sysupdate.timer systemd-sysupdate@.service systemd-sysupdated.service } %global sysext_services %{shrink: systemd-confext-initrd.service systemd-confext-sysroot.service systemd-confext.service systemd-sysext-initrd.service systemd-sysext-sysroot.service systemd-sysext.service systemd-sysext.socket systemd-sysext@.service systemd-sysupdate-notify-sysext.socket systemd-sysupdate-notify-sysext@.service } %global boot_services %{shrink: systemd-bless-boot.service systemd-boot-clear-sysfail.service systemd-boot-random-seed.service systemd-boot-update.service } %global boot_tools_services %{shrink: systemd-bootctl.socket systemd-bootctl@.service systemd-sysupdate-notify-bootctl.socket systemd-sysupdate-notify-bootctl@.service } %global machine_services %{shrink: systemd-machined.service systemd-machined.socket } %global namespace_services %{shrink: systemd-mountfsd.service systemd-mountfsd.socket systemd-nsresourced.service systemd-nsresourced.socket } %global factory_services %{shrink: factory-reset-now.target factory-reset.target systemd-factory-reset-complete.service systemd-factory-reset-reboot.service systemd-factory-reset-request.service systemd-factory-reset.socket systemd-factory-reset@.service systemd-tpm2-clear.service } %global pcr_services %{shrink: systemd-pcrextend.socket systemd-pcrextend@.service systemd-pcrfs-root.service systemd-pcrfs@.service systemd-pcrlock-file-system.service systemd-pcrlock-firmware-code.service systemd-pcrlock-firmware-config.service systemd-pcrlock-machine-id.service systemd-pcrlock-make-policy.service systemd-pcrlock-secureboot-authority.service systemd-pcrlock-secureboot-policy.service systemd-pcrlock.socket systemd-pcrlock@.service systemd-pcrlogin@.service systemd-pcrmachine.service systemd-pcrnvdone.service systemd-pcrosseparator.service systemd-pcrphase-factory-reset.service systemd-pcrphase-initrd.service systemd-pcrphase-storage-target-mode.service systemd-pcrphase-sysinit.service systemd-pcrphase.service systemd-pcrproduct.service systemd-sysupdate-notify-pcrlock.socket systemd-sysupdate-notify-pcrlock@.service } %global mute_console_services %{shrink: system-systemd\\\\x2dmute\\\\x2dconsole.slice systemd-mute-console.socket systemd-mute-console@.service } %global credentials_services %{shrink: systemd-creds.socket systemd-creds@.service } %global sysinstall_services %{shrink: system-install.target systemd-sysinstall.service systemd-sysinstall.socket systemd-sysinstall@.service } %global cryptsetup_services %{shrink: cryptsetup-pre.target cryptsetup.target integritysetup-pre.target integritysetup.target remote-cryptsetup.target remote-integritysetup.target remote-veritysetup.target system-systemd\\\\x2dcryptsetup.slice system-systemd\\\\x2dveritysetup.slice systemd-cryptenroll-firstboot.service systemd-cryptenroll.socket systemd-cryptenroll@.service veritysetup-pre.target veritysetup.target } %global import_services %{shrink: imports-pre.target imports.target systemd-importd.service systemd-importd.socket } %global repart_services %{shrink: systemd-growfs-root.service systemd-growfs@.service systemd-repart.service systemd-repart.socket systemd-repart@.service } %global tpm2_services %{shrink: systemd-tpm2-setup-early.service systemd-tpm2-setup.service systemd-tpm2-swtpm.service tpm2.target } %global userdb_services %{shrink: systemd-userdb-load-credentials.service systemd-userdbd.service systemd-userdbd.socket } %global udev_services %{shrink: bluetooth.target dev-hugepages.mount getty@.service hibernate.target hybrid-sleep.target initrd-cleanup.service initrd-fs.target initrd-parse-etc.service initrd-root-device.target initrd-root-fs.target initrd-switch-root.service initrd-switch-root.target initrd-udevadm-cleanup-db.service initrd-usr-fs.target initrd.target kexec.target kmod-static-nodes.service modprobe@.service printer.target proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.mount serial-getty@.service sigpwr.target sleep.target smartcard.target sound.target suspend-then-hibernate.target suspend.target sys-fs-fuse-connections.mount systemd-backlight@.service systemd-battery-check.service systemd-binfmt.service systemd-bsod.service systemd-coredump-register.service systemd-coredumpd.service systemd-fsck-root.service systemd-fsck@.service systemd-hibernate-clear.service systemd-hibernate-resume.service systemd-hibernate.service systemd-hwdb-update.service systemd-hybrid-sleep.service systemd-kexec.service systemd-modules-load.service systemd-pstore.service systemd-random-seed.service systemd-remount-fs.service systemd-rfkill.service systemd-rfkill.socket systemd-suspend-then-hibernate.service systemd-suspend.service systemd-time-wait-sync.service systemd-timesyncd.service systemd-tmpfiles-setup-dev-early.service systemd-tmpfiles-setup-dev.service systemd-udev-load-credentials.service systemd-udev-settle.service systemd-udev-trigger.service systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd-varlink.socket systemd-udevd.service systemd-validatefs@.service systemd-vconsole-setup.service time-set.target time-sync.target usb-gadget.target } %global udev_kernelless_services %{shrink: dev-hugepages.mount getty@.service kexec.target proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.mount serial-getty@.service systemd-binfmt.service systemd-coredump-register.service systemd-coredumpd.service systemd-fsck-root.service systemd-fsck@.service systemd-kexec.service systemd-pstore.service systemd-random-seed.service systemd-remount-fs.service systemd-time-wait-sync.service systemd-timesyncd.service systemd-validatefs@.service time-set.target time-sync.target } %post udev systemd-hwdb update &>/dev/null %systemd_post %udev_services # 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' || : %preun udev %systemd_preun %udev_services %posttrans udev # Restart some services. # Others are either oneshot services, or sockets, and restarting them causes issues (#1378974) %systemd_posttrans_with_restart systemd-udevd.service systemd-timesyncd.service %post udev-kernelless %systemd_post %udev_kernelless_services # 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' || : %preun udev-kernelless %systemd_preun %udev_kernelless_services %posttrans udev-kernelless # Restart persistent daemons; leave oneshot services and sockets alone. %systemd_posttrans_with_restart systemd-timesyncd.service %global clonesetup_services %{shrink: clonesetup.target } %post clonesetup %systemd_post %clonesetup_services %preun clonesetup %systemd_preun %clonesetup_services %global quota_services %{shrink: quotaon-root.service quotaon@.service systemd-quotacheck-root.service systemd-quotacheck@.service } %post quota %systemd_post %quota_services %preun quota %systemd_preun %quota_services %global debug_services %{shrink: sys-kernel-debug.mount sys-kernel-tracing.mount breakpoint-pre-basic.service breakpoint-pre-mount.service breakpoint-pre-switch-root.service breakpoint-pre-udev.service debug-shell.service } %post debug %systemd_post %debug_services %preun debug %systemd_preun %debug_services %post volatile-root %systemd_post systemd-volatile-root.service %preun volatile-root %systemd_preun systemd-volatile-root.service %global image_services %{shrink: systemd-loop@.service } %post image %systemd_post %image_services %preun image %systemd_preun %image_services %global storage_services %{shrink: systemd-storage-block.socket systemd-storage-block@.service systemd-storage-fs.socket systemd-storage-fs@.service } %post storage %systemd_post %storage_services %systemd_user_post systemd-storage-fs.socket systemd-storage-fs@.service %preun storage %systemd_preun %storage_services %systemd_user_preun systemd-storage-fs.socket systemd-storage-fs@.service %global report_services %{shrink: systemd-report-basic.socket systemd-report-basic@.service systemd-report-cgroup.socket systemd-report-cgroup@.service systemd-report-files.socket systemd-report-files@.service systemd-report-sign-plain.socket systemd-report-sign-plain@.service systemd-report-sign-tpm2.socket systemd-report-sign-tpm2@.service systemd-report-sign-tsm.socket systemd-report-sign-tsm@.service systemd-report.socket systemd-report@.service } %post report %systemd_post %report_services %preun report %systemd_preun %report_services %post firstboot %systemd_post first-boot-complete.target systemd-firstboot.service %preun firstboot %systemd_preun first-boot-complete.target systemd-firstboot.service %post userdb %systemd_post %userdb_services %preun userdb %systemd_preun %userdb_services %posttrans userdb %systemd_posttrans_with_restart systemd-userdbd.service %if 0%{?want_bootloader} %post sysinstall %systemd_post %sysinstall_services %preun sysinstall %systemd_preun %sysinstall_services %endif %post credentials %systemd_post %credentials_services %preun credentials %systemd_preun %credentials_services %if 0%{?want_bootloader} %if %{without obs} %post boot-unsigned %systemd_post %boot_services %preun boot-unsigned %systemd_preun %boot_services %else %post boot %systemd_post %boot_services %preun boot %systemd_preun %boot_services %endif %endif %if 0%{?want_bootloader} %post boot-tools %systemd_post %boot_tools_services %preun boot-tools %systemd_preun %boot_tools_services %endif %post sysext %systemd_post %sysext_services %preun sysext %systemd_preun %sysext_services %post sysupdate %systemd_post %sysupdate_services %preun sysupdate %systemd_preun %sysupdate_services %posttrans sysupdate %systemd_posttrans_with_restart systemd-sysupdated.service %post cryptsetup %systemd_post %cryptsetup_services %preun cryptsetup %systemd_preun %cryptsetup_services %post repart %systemd_post %repart_services %preun repart %systemd_preun %repart_services %post tpm2 %systemd_post %tpm2_services %preun tpm2 %systemd_preun %tpm2_services %post home %systemd_post systemd-homed-activate.service systemd-homed-firstboot.service systemd-homed.service %preun home %systemd_preun systemd-homed-activate.service systemd-homed-firstboot.service systemd-homed.service %posttrans home %systemd_posttrans_with_restart systemd-homed.service %post nspawn %systemd_post systemd-nspawn@.service %systemd_user_post systemd-nspawn@.service %preun nspawn %systemd_preun systemd-nspawn@.service %systemd_user_preun systemd-nspawn@.service %post vmspawn %systemd_post systemd-vmspawn@.service %systemd_user_post systemd-vmspawn@.service %preun vmspawn %systemd_preun systemd-vmspawn@.service %systemd_user_preun systemd-vmspawn@.service %post machine %systemd_post %machine_services %systemd_user_post systemd-machined.service systemd-machined.socket %preun machine %systemd_preun %machine_services %systemd_user_preun systemd-machined.service systemd-machined.socket %posttrans machine %systemd_posttrans_with_restart systemd-machined.service %systemd_user_posttrans_with_restart systemd-machined.service %post namespace %systemd_post %namespace_services %preun namespace %systemd_preun %namespace_services %post factory %systemd_post %factory_services %preun factory %systemd_preun %factory_services %post pcr %systemd_post %pcr_services %preun pcr %systemd_preun %pcr_services %post mute-console %systemd_post %mute_console_services %preun mute-console %systemd_preun %mute_console_services %post import %systemd_post %import_services %systemd_user_post systemd-importd.service systemd-importd.socket %preun import %systemd_preun %import_services %systemd_user_preun systemd-importd.service systemd-importd.socket %posttrans import %systemd_posttrans_with_restart systemd-importd.service %systemd_user_posttrans_with_restart systemd-importd.service %post portable %systemd_post systemd-portabled.service %systemd_user_post systemd-portabled.service %preun portable %systemd_preun systemd-portabled.service %systemd_user_preun systemd-portabled.service %posttrans portable %systemd_posttrans_with_restart systemd-portabled.service %systemd_user_posttrans_with_restart systemd-portabled.service %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 %post journal-remote %systemd_post %journal_remote_units_restart %journal_remote_units_norestart %firewalld_reload %preun journal-remote %systemd_preun %journal_remote_units_restart %journal_remote_units_norestart 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/. rmdir %{_localstatedir}/lib/systemd/journal-upload || : fi fi %posttrans journal-remote %systemd_posttrans_with_restart %journal_remote_units_restart %firewalld_reload %global networkd_services %{shrink: systemd-networkd.service systemd-networkd.socket systemd-networkd-varlink.socket systemd-networkd-wait-online.service systemd-network-generator.service systemd-networkd-persistent-storage.service } %post networkd %systemd_post %networkd_services %preun networkd %systemd_preun %networkd_services %posttrans networkd %systemd_posttrans_with_restart systemd-networkd.service %post resolved [ $1 -eq 1 ] || exit 0 # Initial installation touch %{_localstatedir}/lib/rpm-state/systemd-resolved.initial-installation # Related to https://bugzilla.redhat.com/show_bug.cgi?id=1943263 if ls /usr/lib/systemd/libsystemd-shared-24[0-8].so &>/dev/null; then echo "Skipping presets for systemd-resolved.service, seems we are upgrading from old systemd." exit 0 fi %systemd_post systemd-resolved.service %preun resolved %systemd_preun systemd-resolved.service if [ $1 -eq 0 ] ; then if [ -L /etc/resolv.conf ] && \ realpath /etc/resolv.conf | grep ^/run/systemd/resolve/; then rm -f /etc/resolv.conf # no longer useful # if network manager is enabled, move to it instead [ -f /run/NetworkManager/resolv.conf ] && \ systemctl -q is-enabled NetworkManager.service &>/dev/null && \ ln -fsv ../run/NetworkManager/resolv.conf /etc/resolv.conf fi fi %posttrans resolved %systemd_posttrans_with_restart systemd-resolved.service [ -e %{_localstatedir}/lib/rpm-state/systemd-resolved.initial-installation ] || exit 0 rm %{_localstatedir}/lib/rpm-state/systemd-resolved.initial-installation # Initial installation # Create /etc/resolv.conf symlink. # (https://bugzilla.redhat.com/show_bug.cgi?id=1873856) # # We would also create it using tmpfiles, but let's do this here too # before NetworkManager gets a chance. (systemd-tmpfiles invocation # above does not do this, because the line is marked with ! and # tmpfiles is invoked without --boot in the scriptlet.) # # *Create* the symlink if nothing is present yet. # (https://bugzilla.redhat.com/show_bug.cgi?id=2032085) # # *Override* the symlink if systemd is running. Don't do it if systemd # is not running, because that will immediately break DNS resolution, # since systemd-resolved is also not running # (https://bugzilla.redhat.com/show_bug.cgi?id=1891847). # # Also don't create the symlink to the stub when the stub is disabled (#1891847 again). if systemctl -q is-enabled systemd-resolved.service &>/dev/null && ! systemd-analyze cat-config systemd/resolved.conf 2>/dev/null | grep -iqE '^DNSStubListener\s*=\s*(no?|false|0|off)\s*$'; then if ! test -e /etc/resolv.conf && ! test -L /etc/resolv.conf; then ln -sv ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf || : elif test -d /run/systemd/system/ && ! mountpoint /etc/resolv.conf &>/dev/null; then ln -fsv ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf || : fi fi %global _docdir_fmt %{name} %files -f %{name}.lang -f .file-list-main %exclude %{_pkgdocdir}/LICENSE* # Only the licenses texts for the licenses in License line are included. %license LICENSE.GPL2 %license LICENSE.LGPL2.1 %license LICENSES/MIT.txt %ghost %dir %attr(0755,-,-) /etc/systemd/system/basic.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/multi-user.target.wants %ghost %dir %attr(0755,-,-) /etc/systemd/system/network-online.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 %ghost %dir %attr(0755,-,-) /var/lib/rpm-state/systemd %files libs -f .file-list-libs %license LICENSE.LGPL2.1 %license LICENSES/MIT.txt %files shared -f .file-list-shared %license LICENSE.LGPL2.1 %license LICENSES/MIT.txt %files rpm-macros -f .file-list-rpm-macros %files sysusers -f .file-list-sysusers %files firstboot -f .file-list-firstboot %if 0%{?want_bootloader} %files sysinstall -f .file-list-sysinstall %endif %files userdb -f .file-list-userdb %files credentials -f .file-list-credentials %files resolved -f .file-list-resolve %files devel -f .file-list-devel %files image -f .file-list-image %files storage -f .file-list-storage %files report -f .file-list-report %files imds -f .file-list-imds %files udev -f .file-list-udev %ghost %dir %attr(0755,-,-) /etc/systemd/system/bluetooth.target.wants %ghost %dir %attr(0755,-,-) /etc/systemd/system/printer.target.wants %files udev-kernelless -f .file-list-udev-kernelless %files clonesetup -f .file-list-clonesetup %files quota -f .file-list-quota %files volatile-root -f .file-list-volatile-root %files cryptsetup -f .file-list-cryptsetup %files ukify -f .file-list-ukify %dir %{pkgdir}/boot %files boot-tools -f .file-list-boot-tools %license LICENSE.GPL2 %license LICENSE.LGPL2.1 %license LICENSES/MIT.txt %if 0%{?want_bootloader} %files stub -f .file-list-stub %dir %{pkgdir}/boot %dir %{pkgdir}/boot/efi %license LICENSE.GPL2 %license LICENSE.LGPL2.1 %license LICENSES/MIT.txt %if %{without obs} %files boot-unsigned -f .file-list-boot %else %files boot -f .file-list-boot %endif %endif %files tpm2 -f .file-list-tpm2 %files home -f .file-list-home %files portable -f .file-list-portable %ghost %dir %attr(0700,-,-) /var/lib/portables %files repart -f .file-list-repart %files ssh -f .file-list-ssh %files containerized -f .file-list-containerized %files sysext -f .file-list-sysext %files sysupdate -f .file-list-sysupdate %files machine -f .file-list-container %ghost %dir %attr(0755,-,-) /etc/systemd/system/machines.target.wants %ghost %dir %attr(0700,-,-) /var/lib/machines %files import -f .file-list-import %files capsule -f .file-list-capsule %files mute-console -f .file-list-mute-console %files debug -f .file-list-debug %files factory -f .file-list-factory %files pcr -f .file-list-pcr %files nspawn -f .file-list-nspawn %files namespace -f .file-list-namespace %files vmspawn -f .file-list-vmspawn %files storagetm -f .file-list-storagetm %files journal-remote -f .file-list-remote %files networkd -f .file-list-networkd %files networkd-defaults -f .file-list-networkd-defaults %files oomd-defaults -f .file-list-oomd-defaults %files zsh-completion -f .file-list-zsh-completion %files tests -f .file-list-tests %files standalone-repart -f .file-list-standalone-repart %license LICENSE.GPL2 %license LICENSE.LGPL2.1 %license LICENSES/MIT.txt %if %{with report_standalone} %files standalone-report -f .file-list-standalone-report %dir %{pkgdir} %license LICENSE.GPL2 %license LICENSE.LGPL2.1 %license LICENSES/MIT.txt %endif %files standalone-tmpfiles -f .file-list-standalone-tmpfiles %license LICENSE.GPL2 %license LICENSE.LGPL2.1 %license LICENSES/MIT.txt %files standalone-sysusers -f .file-list-standalone-sysusers %license LICENSE.GPL2 %license LICENSE.LGPL2.1 %license LICENSES/MIT.txt %files standalone-shutdown -f .file-list-standalone-shutdown %dir %{pkgdir} %license LICENSE.GPL2 %license LICENSE.LGPL2.1 %license LICENSES/MIT.txt %clean rm -rf \ $RPM_BUILD_ROOT \ 10-timeout-abort.conf.user \ .file-list-* \ %{name}.lang \ debugfiles.list \ debuglinks.list \ debugsourcefiles.list \ debugsources.list \ elfbins.list %changelog ## START: Generated by rpmautospec * Sat Oct 17 2026 Zbigniew Jędrzejewski-Szmek - 262.1-1 - Version 262.1 - Fixes to many different components - Hardward database update * Tue Sep 29 2026 Zbigniew Jędrzejewski-Szmek - 262-3 - Split out systemd-imds subpackage - Resolves rhbz#2541402 * Fri Sep 25 2026 Simon de Vlieger - 262-2 - container: require `gnupg2` * Tue Sep 22 2026 Zbigniew Jędrzejewski-Szmek - 262-1 - Version 262 * Wed Sep 16 2026 Simon de Vlieger - 262~rc3-2 - split out import-keys.pgp * Tue Sep 15 2026 Zbigniew Jędrzejewski-Szmek - 262~rc3-1 - Version 262~rc3 * Wed Sep 09 2026 Zbigniew Jędrzejewski-Szmek - 262~rc2-1 - Version 262~rc2 * Wed Sep 09 2026 Sun Haiyong - 262~rc1-7 - Add loongarch64 support. * Tue Sep 08 2026 Zbigniew Jędrzejewski-Szmek - 262~rc1-6 - Stop enabling systemd-coredumpd.service by default * Tue Sep 08 2026 Zbigniew Jędrzejewski-Szmek - 262~rc1-5 - Backport patch for udevadm settle * Sat Sep 05 2026 Zbigniew Jędrzejewski-Szmek - 262~rc1-4 - Add patch to disable systemd-coredumpd.service * Thu Sep 03 2026 Zbigniew Jędrzejewski-Szmek - 262~rc1-1 - Version 262~rc1 - See https://raw.githubusercontent.com/systemd/systemd/v262-rc1/NEWS. Too many changes to list or discuss here. * Wed Jul 29 2026 Martin Pitt - 261.2-2 - Downgrade kbd dependency to Recommends unconditionally * Sat Jul 25 2026 Zbigniew Jędrzejewski-Szmek - 261.2-1 - Version 261.2 - a bugfix release with correctness and security-relevant fixes too. 276 patches, so too much to describe here. * Fri Jul 17 2026 Zbigniew Jędrzejewski-Szmek - 261.1-24 - Drop 20-yama-ptrace.conf * Fri Jul 17 2026 Christopher Klooz - 261.1-22 - add 99-kernel-hardening.conf * Fri Jul 17 2026 Fedora Release Engineering - 261.1-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Tue Jul 14 2026 Stewart Smith - 261.1-20 - Add sbin_compat bcond to rely on filesystem file triggers for sbin symlinks * Mon Jul 06 2026 Yaakov Selkowitz - 261.1-8 - Fix ntpvendor for ELN * Fri Jul 03 2026 Zbigniew Jędrzejewski-Szmek - 261.1-6 - Move portabled to systemd-container subpackage * Sat Jun 27 2026 Zbigniew Jędrzejewski-Szmek - 261.1-2 - Load libssl.so.4 rather than libssl.so.3 * Fri Jun 26 2026 Zbigniew Jędrzejewski-Szmek - 261.1-1 - Version 261.1 - The first batch of fixes post-release * Fri Jun 19 2026 Zbigniew Jędrzejewski-Szmek - 261-2 - Update to load openssl-4 rather than openssl-3 * Fri Jun 19 2026 Zbigniew Jędrzejewski-Szmek - 261-1 - Version 261 - Still some fixes after -rc4, incl. a change to how openssl/libcrypto is loaded and to imds service ordering at startup * Tue Jun 16 2026 Zbigniew Jędrzejewski-Szmek - 261~rc4-1 - Version 261~rc4 - New translations and various other fixes * Fri Jun 12 2026 Yaakov Selkowitz - 261~rc3-5 - Rebuilt for openssl 4.0 * Fri Jun 12 2026 Yaakov Selkowitz - 261~rc3-4 - Rebuilt for openssl 4.0 * Wed Jun 10 2026 Zbigniew Jędrzejewski-Szmek - 261~rc3-3 - Use dlopen notes again * Wed Jun 10 2026 Zbigniew Jędrzejewski-Szmek - 261~rc3-2 - Do not check ownership of /var/lib/systemd/timesync/ in rpm -V * Thu Jun 04 2026 Zbigniew Jędrzejewski-Szmek - 261~rc3-1 - Version 261~rc3 - Various smaller and larger fixes - A hint is emitted if init is called with the legacy telinit args (rhbz#2479961) - Various messages for missing dlopened libraries have been downgraded (rhbz#2463540) * Tue May 26 2026 Zbigniew Jędrzejewski-Szmek - 261~rc2-1 - Version 261~rc2 - A few fixes for this and that incl. rhbz#2481304, rhbz#2481466 * Fri May 22 2026 Zbigniew Jędrzejewski-Szmek - 261~rc1-1 - Version 261~rc1 - explicit dependencies are added for various libraries loaded using dlopen() * Fri May 22 2026 Zbigniew Jędrzejewski-Szmek - 260.1-11 - Fix compilation with openssl 4.0 * Fri May 22 2026 Zbigniew Jędrzejewski-Szmek - 260.1-10 - Revert "Use dlopen-notes to automatically generate library Recommends/Requires/Suggests" * Tue May 19 2026 Zbigniew Jędrzejewski-Szmek - 260.1-9 - Add back various explit Requires * Tue May 19 2026 Zbigniew Jędrzejewski-Szmek - 260.1-8 - Drop scriptlet workarounds for upgrades from versions < 247 * Tue May 19 2026 Zbigniew Jędrzejewski-Szmek - 260.1-7 - Use dlopen-notes to automatically generate library Recommends/Requires/Suggests * Tue May 12 2026 Zbigniew Jędrzejewski-Szmek - 260.1-5 - Downgrade kbd dependency to Recommends * Tue Apr 14 2026 Yaakov Selkowitz - 260.1-4 - Update conditionals for RHEL 11 * Tue Apr 14 2026 Zbigniew Jędrzejewski-Szmek - 260.1-3 - Stop building support for openssl engines * Mon Mar 23 2026 Zbigniew Jędrzejewski-Szmek - 260.1-1 - Version 260.1 - Fixes for crashes and misbehaviours in PID1 and other components * Tue Mar 17 2026 Zbigniew Jędrzejewski-Szmek - 260-1 - Version 260 - No significant changes since ~rc4 * Fri Mar 13 2026 Zbigniew Jędrzejewski-Szmek - 260~rc4-1 - Version 260~rc4 - Even more fixes, incl. a fix for a bad patch in ~rc3. * Thu Mar 12 2026 Zbigniew Jędrzejewski-Szmek - 260~rc3-1 - Version 260~rc3 - A bunch of bugfixes - More sanitization for invalid values received from hardware and firmware * Fri Mar 06 2026 Zbigniew Jędrzejewski-Szmek - 260~rc2-4 - Fix typo in unit name in %%post scriptlet * Thu Mar 05 2026 Hans de Goede - 260~rc2-3 - Silence false positive "HWID match failed, no DT blob" error (rhbz#2444759) * Wed Mar 04 2026 Marcin Juszkiewicz - 260~rc2-2 - riscv64 port has LTO disabled * Wed Mar 04 2026 Zbigniew Jędrzejewski-Szmek - 260~rc2-1 - Version 260~rc2 - A bunch of bugfixes in various components and documentation - Fix for GHSA-6pwp-j5vg-5j6m * Thu Feb 26 2026 Zbigniew Jędrzejewski-Szmek - 260~rc1-5 - Add patch for symlink creation error * Thu Feb 26 2026 Zbigniew Jędrzejewski-Szmek - 260~rc1-4 - Enable getty@.service through presets * Thu Feb 26 2026 Zbigniew Jędrzejewski-Szmek - 260~rc1-3 - Drop scriptlet for upgrades from versions <253 * Thu Feb 26 2026 Zbigniew Jędrzejewski-Szmek - 260~rc1-2 - Move support for tpm2 to systemd-udev subpackage * Wed Feb 25 2026 Zbigniew Jędrzejewski-Szmek - 260~rc1-1 - Version 260~rc1 - See https://raw.githubusercontent.com/systemd/systemd/v260-rc1/NEWS. Too many changes to list or discuss here. * Wed Feb 25 2026 Luca Boccassi - 259.1-2 - Install /usr/lib/systemd/boot/hwids/ in ukify package * Sat Feb 07 2026 Zbigniew Jędrzejewski-Szmek - 259.1-1 - Version 259.1 * Wed Feb 04 2026 Adam Williamson - 259-19 - Revert getty changes a bit harder * Wed Feb 04 2026 Zbigniew Jędrzejewski-Szmek - 259-18 - Revert all remaing changes to getty@.service * Wed Feb 04 2026 Zbigniew Jędrzejewski-Szmek - 259-17 - Revert to previous handling of getty@.service * Wed Feb 04 2026 Zbigniew Jędrzejewski-Szmek - 259-16 - Create getty@tty1.service again and move autovt@.service alias to /usr/lib * Wed Feb 04 2026 Zbigniew Jędrzejewski-Szmek - 259-15 - Properly enable systemd-tmpfiles-clear.service in scriptlets * Thu Jan 29 2026 Zbigniew Jędrzejewski-Szmek - 259-14 - Raise the number of placeholder sections in kernel and addon stubs * Thu Jan 29 2026 Zbigniew Jędrzejewski-Szmek - 259-13 - Stop enabling getty@tty1.service * Thu Jan 29 2026 Zbigniew Jędrzejewski-Szmek - 259-12 - Fix unit names in systemd-udev scriptlet * Tue Jan 27 2026 Zbigniew Jędrzejewski-Szmek - 259-11 - Enable getty@.service through presets * Sat Jan 24 2026 Zbigniew Jędrzejewski-Szmek - 259-10 - Move tpm2 and getty support to -udev subpackage * Sat Jan 17 2026 Fedora Release Engineering - 259-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Mon Jan 12 2026 Hans de Goede - 259-8 - Add 2 patches for automatic aarch64 DTB selection change * Fri Dec 19 2025 Daan De Meyer - 259-6 - Make dbus and systemd-pam recommended dependencies * Fri Dec 19 2025 Daan De Meyer - 259-5 - Drop libcap-devel BuildRequires * Thu Dec 18 2025 Zbigniew Jędrzejewski-Szmek - 259-1 - Version 259 - Some bugfixes since -rc3, in particular in the area of image creation and loading of libraries * Wed Dec 10 2025 Zbigniew Jędrzejewski-Szmek - 259~rc3-1 - Version 259~rc3 * Fri Nov 28 2025 Daan De Meyer - 259~rc2-4 - Check if --max-lines is supported by meson * Wed Nov 26 2025 Zbigniew Jędrzejewski-Szmek - 259~rc2-2 - Patch machined to continue after selinux denial * Wed Nov 26 2025 Zbigniew Jędrzejewski-Szmek - 259~rc2-1 - Version 259~rc2 * Fri Nov 21 2025 David Tardon - 259~rc1-6 - Drop provides for removed sysvinit tools (rhbz#2413557) * Thu Nov 20 2025 Daan De Meyer - 259~rc1-5 - Set meson auto features to auto when building for upstream * Thu Nov 20 2025 Daan De Meyer - 259~rc1-4 - Wrap %%autosetup in %%_build_in_place check * Thu Nov 20 2025 Daan De Meyer - 259~rc1-3 - Revert "Use %%autosetup -C" * Mon Nov 17 2025 Zbigniew Jędrzejewski-Szmek - 259~rc1-2 - Allow empower group * Mon Nov 17 2025 Zbigniew Jędrzejewski-Szmek - 259~rc1-1 - Version 259~rc1 - See https://raw.githubusercontent.com/systemd/systemd/v259-rc1/NEWS. Too many changes to list or discuss here. * Mon Nov 17 2025 Daan De Meyer - 258.2-2 - Add various extra explicit Requires * Fri Nov 07 2025 Zbigniew Jędrzejewski-Szmek - 258.2-1 - Version 258.2 - A bunch of fixes in many components. - Stop creating user namespace for system services (rhbz#2391343) - Systemd trigger scriptlets are updated * Wed Nov 05 2025 Zbigniew Jędrzejewski-Szmek - 258.1-13 - Restore runlevelX.target units (rhbz#2411195) * Tue Nov 04 2025 Zbigniew Jędrzejewski-Szmek - 258.1-12 - Use %%autosetup -C * Mon Nov 03 2025 Daan De Meyer - 258.1-11 - Remove hack to stop systemd-networkd-resolve-hook.socket * Mon Nov 03 2025 Zbigniew Jędrzejewski-Szmek - 258.1-10 - Automatically figure out the name of the top-level tar dir * Mon Nov 03 2025 Daan De Meyer - 258.1-9 - Make sure fallback source is listed first * Fri Oct 31 2025 Zbigniew Jędrzejewski-Szmek - 258.1-8 - Enable sysupdate and sysupdated * Wed Oct 29 2025 Daan De Meyer - 258.1-7 - Add missing networkd socket units * Sat Oct 25 2025 Daan De Meyer - 258.1-6 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec