diff --git abrt.spec abrt.spec index 3efaa981e4..d003e87664 100644 --- abrt.spec +++ abrt.spec @@ -57,7 +57,7 @@ Summary: Automatic bug detection and reporting tool Name: abrt Version: 2.17.6 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL-2.0-or-later URL: https://abrt.readthedocs.org/ Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz @@ -469,6 +469,13 @@ to the shell %global __scm_apply_git(qp:m:) %{__git} am --exclude doc/design --exclude doc/project/abrt.tex %autosetup -S git -p 0 +# Create a sysusers.d config file +#uidgid pair 173:173 reserved in setup rhbz#670231 +%global abrt_gid_uid 173 +cat >abrt.sysusers.conf </dev/null || groupadd -f -g %{abrt_gid_uid} --system abrt -getent passwd abrt >/dev/null || useradd --system -g abrt -u %{abrt_gid_uid} -d /etc/abrt -s /sbin/nologin abrt -exit 0 - %post # $1 == 1 if install; 2 if upgrade %systemd_post abrtd.service @@ -753,6 +755,7 @@ killall abrt-dbus >/dev/null 2>&1 || : %{_mandir}/man5/abrt-action-save-package-data.conf.5* %{_mandir}/man5/gpg_keys.conf.5* %{_mandir}/man8/abrtd.8* +%{_sysusersdir}/abrt.conf %files libs %{_libdir}/libabrt.so.* @@ -986,6 +989,9 @@ killall abrt-dbus >/dev/null 2>&1 || : %config(noreplace) %{_sysconfdir}/profile.d/abrt-console-notification.sh %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 2.17.6-5 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.17.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git avahi.spec avahi.spec index 2a3f7af778..2dd6e30464 100644 --- avahi.spec +++ avahi.spec @@ -60,7 +60,7 @@ Name: avahi Version: 0.9%{?rc:~%{rc}} -Release: 2%{?dist} +Release: 3%{?dist} Summary: Local network service discovery License: LGPL-2.1-or-later AND LGPL-2.0-or-later AND BSD-2-Clause-Views AND MIT URL: http://avahi.org @@ -69,7 +69,6 @@ Requires: expat Requires: libdaemon >= 0.11 # For /usr/bin/dbus-send Requires(post): dbus -Requires(pre): shadow-utils Requires(pre): coreutils Requires: %{name}-libs%{?_isa} = %{version}-%{release} BuildRequires: automake @@ -397,7 +396,6 @@ libraries. %package autoipd Summary: Link-local IPv4 address automatic configuration daemon (IPv4LL) -Requires(pre): shadow-utils Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description autoipd @@ -444,6 +442,11 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} rm -fv docs/INSTALL +# Create a sysusers.d config file +cat >avahi.sysusers.conf </dev/null || groupadd -f -g 70 -r avahi -if ! getent passwd avahi > /dev/null ; then - if ! getent passwd 70 > /dev/null ; then - useradd -r -l -u 70 -g avahi -d %{_localstatedir}/run/avahi-daemon -s /sbin/nologin -c "Avahi mDNS/DNS-SD Stack" avahi - else - useradd -r -l -g avahi -d %{_localstatedir}/run/avahi-daemon -s /sbin/nologin -c "Avahi mDNS/DNS-SD Stack" avahi - fi -fi -exit 0 - %post %{?ldconfig} /usr/bin/dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || : @@ -654,6 +648,7 @@ exit 0 %{_datadir}/dbus-1/interfaces/*.xml %{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service %{_libdir}/libavahi-core.so.* +%{_sysusersdir}/avahi.conf %files autoipd %{_sbindir}/avahi-autoipd @@ -855,6 +850,9 @@ exit 0 %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 0.9~rc2-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Michal Sekletar - 0.9~rc2-2 - Fix previous changelog entry diff --git bind9-next.spec bind9-next.spec index b840b44cc6..ffb54beb14 100644 --- bind9-next.spec +++ bind9-next.spec @@ -96,7 +96,6 @@ Patch3: bind-9.21-unittest-isc_rwlock-s390x.patch %{?systemd_ordering} Requires: coreutils -Requires(pre): shadow-utils Requires(post): shadow-utils Requires(post): glibc-common Requires(post): grep @@ -314,6 +313,12 @@ done :; +# Create a sysusers.d config file +cat >bind9-next.sysusers.conf </dev/null 2>&1 || :; - /usr/sbin/useradd -u %{bind_uid} -r -N -M -g named -s /sbin/nologin -d /var/named -c Named named >/dev/null 2>&1 || :; -fi; -:; +install -m0644 -D bind9-next.sysusers.conf %{buildroot}%{_sysusersdir}/bind9-next.conf %post %?ldconfig @@ -711,6 +711,7 @@ fi; %config(noreplace) %attr(0644,root,named) %{_sysconfdir}/named.root.key %config(noreplace) %{_sysconfdir}/logrotate.d/named %{_tmpfilesdir}/named.conf +%{_sysusersdir}/bind9-next.conf %{_sysconfdir}/rwtab.d/named %{_unitdir}/named.service %{_unitdir}/named-setup-rndc.service diff --git bind.spec bind.spec index a09cf38e42..babe34e15e 100644 --- bind.spec +++ bind.spec @@ -88,7 +88,7 @@ License: MPL-2.0 AND ISC AND MIT AND BSD-3-Clause AND BSD-2-Clause # Before rebasing bind, ensure bind-dyndb-ldap is ready to be rebuild and use side-tag with it. # Updating just bind will cause freeipa-dns-server package to be uninstallable. Version: 9.18.32 -Release: 6%{?dist} +Release: 7%{?dist} Epoch: 32 Url: https://www.isc.org/downloads/bind/ # @@ -137,7 +137,6 @@ Patch30: bind-9.20-nsupdate-tls-test.patch %{?systemd_ordering} Requires: coreutils -Requires(pre): shadow-utils Requires(post): shadow-utils Requires(post): glibc-common Requires(post): grep @@ -381,6 +380,12 @@ done :; +# Create a sysusers.d config file +cat >named.sysusers.conf </dev/null 2>&1 || :; - /usr/sbin/useradd -u %{bind_uid} -r -N -M -g named -s /sbin/nologin -d /var/named -c Named named >/dev/null 2>&1 || :; -fi; -:; +install -m0644 -D named.sysusers.conf %{buildroot}%{_sysusersdir}/named.conf %post %?ldconfig @@ -803,6 +803,7 @@ fi; %config(noreplace) %attr(0644,root,named) %{_sysconfdir}/named.root.key %config(noreplace) %{_sysconfdir}/logrotate.d/named %{_tmpfilesdir}/named.conf +%{_sysusersdir}/named.conf %{_sysconfdir}/rwtab.d/named %{_unitdir}/named.service %{_unitdir}/named-setup-rndc.service @@ -994,6 +995,9 @@ fi; %endif %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 32:9.18.32-7 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Adam Williamson - 32:9.18.32-6 - Rebuild again on mass rebuild tag so -4 doesn't override -5 diff --git bsd-games.spec bsd-games.spec index 2a5f56aace..8f60146ef6 100644 --- bsd-games.spec +++ bsd-games.spec @@ -6,7 +6,7 @@ Summary: Collection of text-based games Name: bsd-games Version: 2.17 -Release: 80%{?dist} +Release: 81%{?dist} # Automatically converted from old format: BSD and BSD with advertising - review is highly recommended. License: LicenseRef-Callaway-BSD AND LicenseRef-Callaway-BSD-with-advertising URL: ftp://metalab.unc.edu/pub/Linux/games/ @@ -57,7 +57,6 @@ BuildRequires: libfl-static BuildRequires: flex-devel %endif BuildRequires: bison -Requires(pre): shadow-utils %description Bsd-games includes adventure, arithmetic, atc, backgammon, battlestar, @@ -99,6 +98,13 @@ popd %patch -P26 -p1 -b .atc %patch -P27 -p1 -b .fread_chk +# Create a sysusers.d config file +cat >bsd-games.sysusers.conf </dev/null || groupadd -r $group -done -exit 0 +install -m0644 -D bsd-games.sysusers.conf %{buildroot}%{_sysusersdir}/bsd-games.conf %files %{_bindir}/adventure @@ -224,8 +226,12 @@ exit 0 %config(noreplace) %attr(664,root,games) %{_var}/games/snakerawscores %config(noreplace) %attr(664,root,games) %{_var}/games/bsd-fbg.scores %doc AUTHORS COPYING ChangeLog ChangeLog.0 THANKS YEAR2000 README.hunt trek/USD.doc/trek.me +%{_sysusersdir}/bsd-games.conf %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 2.17-81 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.17-80 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git bzflag.spec bzflag.spec index 4bb7245ec4..d965996113 100644 --- bzflag.spec +++ bzflag.spec @@ -1,7 +1,7 @@ Summary: 3D multi-player tank battle game Name: bzflag Version: 2.4.26 -Release: 7%{?dist} +Release: 8%{?dist} # Automatically converted from old format: LGPLv2 - review is highly recommended. License: LicenseRef-Callaway-LGPLv2 URL: http://bzflag.org @@ -27,7 +27,6 @@ BuildRequires: zlib-devel BuildRequires: sed BuildRequires: systemd Requires: opengl-games-utils -Requires(pre): shadow-utils %description BZFlag is a 3D multi-player tank battle game that allows users to play @@ -49,6 +48,11 @@ This package contains sample world maps for bzflag. %prep %setup -q -n %{name}-%{version} +# Create a sysusers.d config file +cat >bzflag.sysusers.conf </dev/null || groupadd -r bzflag -if getent passwd bzflag >/dev/null; then - # provide a more meaningful GECOS field than the one introduced in 2.4.6-3 - if [ "x`getent passwd bzflag | cut -d: -f5`" = 'xUseful comment about the purpose of this account' ]; then - usermod -c 'BZFlag game server' bzflag - fi -else - useradd -r -g bzflag -d %{_datadir}/bzflag -s /sbin/nologin \ - -c 'BZFlag game server' bzflag -fi -exit 0 +install -D -m0644 bzflag.sysusers.conf %{buildroot}%{_sysusersdir}/bzflag.conf %post %systemd_post bzflag.service @@ -153,11 +145,15 @@ exit 0 %{_mandir}/man*/* %{_sysconfdir}/sysconfig/bzflag %{_unitdir}/bzflag.service +%{_sysusersdir}/bzflag.conf %files maps-sample %{_datadir}/bzflag/maps/* %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 2.4.26-8 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.4.26-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git ceph.spec ceph.spec index 986684a30e..b0ec2e7e4d 100644 --- ceph.spec +++ ceph.spec @@ -185,7 +185,7 @@ ################################################################################# Name: ceph Version: 19.2.0 -Release: 9%{?dist} +Release: 10%{?dist} %if 0%{?fedora} || 0%{?rhel} Epoch: 2 %endif @@ -1390,6 +1390,11 @@ This package provides a Ceph hardware monitoring agent. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >ceph.sysusers.conf </dev/null || groupadd -r cephadm -getent passwd cephadm >/dev/null || useradd -r -g cephadm -s /bin/bash -c "cephadm user for mgr/cephadm" -d %{_sharedstatedir}/cephadm cephadm -exit 0 - -%if ! 0%{?suse_version} -%postun -n cephadm -[ $1 -ne 0 ] || userdel cephadm || : -%endif - %files -n cephadm %{_exec_prefix}/sbin/cephadm %{_mandir}/man8/cephadm.8* %attr(0700,cephadm,cephadm) %dir %{_sharedstatedir}/cephadm %attr(0700,cephadm,cephadm) %dir %{_sharedstatedir}/cephadm/.ssh %config(noreplace) %attr(0600,cephadm,cephadm) %{_sharedstatedir}/cephadm/.ssh/authorized_keys +%{_sysusersdir}/ceph.conf %files common %dir %{_docdir}/ceph @@ -2720,6 +2718,9 @@ exit 0 %{python3_sitelib}/ceph_node_proxy-* %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 2:19.2.0-10 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2:19.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git clamav.spec clamav.spec index 5dcbd9d438..b7d23eb7e3 100644 --- clamav.spec +++ clamav.spec @@ -26,7 +26,7 @@ Summary: End-user tools for the Clam Antivirus scanner Name: clamav Version: 1.4.1 -Release: 2%{?dist} +Release: 3%{?dist} License: %{?with_unrar:proprietary}%{!?with_unrar:GPL-2.0-only} URL: https://www.clamav.net/ %if %{with unrar} @@ -161,7 +161,6 @@ Summary: Filesystem structure for clamav # Prevent version mix Conflicts: %{name} < %{version}-%{release} Conflicts: %{name} > %{version}-%{release} -Requires(pre): shadow-utils BuildArch: noarch %description filesystem @@ -295,7 +294,6 @@ Requires: data(clamav) Requires: clamav-filesystem = %{version}-%{release} Requires: clamav-lib = %{version}-%{release} Requires: coreutils -Requires(pre): shadow-utils # This is still used by clamsmtp and exim-clamav Provides: clamav-server = %{version}-%{release} Provides: clamav-scanner-systemd = %{version}-%{release} @@ -316,7 +314,6 @@ Summary: Milter module for the Clam Antivirus scanner #Requires: clamd = %%{version}-%%{release} #Requires: /usr/sbin/sendmail Requires: clamav-filesystem = %{version}-%{release} -Requires(pre): shadow-utils Provides: clamav-milter-systemd = %{version}-%{release} Obsoletes: clamav-milter-systemd < %{version}-%{release} @@ -365,6 +362,20 @@ cd libclamav_rust %cargo_generate_buildrequires %endif +# Create sysusers.d config files +cat >clamav.sysusers.conf <clamd.sysusers.conf <clamav-milter.sysusers.conf </dev/null || groupadd -r %{updateuser} -getent passwd %{updateuser} >/dev/null || \ - useradd -r -g %{updateuser} -d %{homedir} -s /sbin/nologin \ - -c "Clamav database update user" %{updateuser} -getent group virusgroup >/dev/null || groupadd -r virusgroup -usermod %{updateuser} -a -G virusgroup -exit 0 - - -%pre -n clamd -getent group %{scanuser} >/dev/null || groupadd -r %{scanuser} -getent passwd %{scanuser} >/dev/null || \ - useradd -r -g %{scanuser} -d / -s /sbin/nologin \ - -c "Clamav scanner user" %{scanuser} -usermod %{scanuser} -a -G virusgroup -exit 0 - %post -n clamd # Point to the new service unit [ -L /etc/systemd/system/multi-user.target.wants/clamd@scan.service ] && @@ -553,14 +548,6 @@ exit 0 # milter and clamd communicate through local sockets /usr/sbin/groupmems -g %{scanuser} -a %{milteruser} &>/dev/null || : -%pre milter -getent group %{milteruser} >/dev/null || groupadd -r %{milteruser} -getent passwd %{milteruser} >/dev/null || \ - useradd -r -g %{milteruser} -d %{_rundir}/clamav-milter -s /sbin/nologin \ - -c "Clamav Milter user" %{milteruser} -usermod %{milteruser} -a -G virusgroup -exit 0 - %post milter %systemd_post clamav-milter.service @@ -627,6 +614,7 @@ exit 0 %dir %{_sysconfdir}/clamd.d # Used by both clamd, clamdscan, and clamonacc %config(noreplace) %{_sysconfdir}/clamd.d/scan.conf +%{_sysusersdir}/clamav.conf %files data @@ -666,6 +654,7 @@ exit 0 %{_sbindir}/clamd %{_unitdir}/clamd@.service %{_tmpfilesdir}/clamd.scan.conf +%{_sysusersdir}/clamd.conf %files milter @@ -679,6 +668,9 @@ exit 0 %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 1.4.1-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git copr-dist-git.spec copr-dist-git.spec index 797a8a3419..9f13d63350 100644 --- copr-dist-git.spec +++ copr-dist-git.spec @@ -2,7 +2,7 @@ Name: copr-dist-git Version: 1.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Copr services for Dist Git server License: GPL-2.0-or-later @@ -48,6 +48,7 @@ Recommends: python3-copr %{?fedora:Requires(post): policycoreutils-python-utils} %{?rhel:Requires(post): policycoreutils-python} +%{?fedora:Requires(pre): group(apache)} %description COPR is lightweight build system. It allows you to create new project in WebUI @@ -59,19 +60,20 @@ This package contains Copr services for Dist Git server. %prep %setup -q +# Create a sysusers.d config file +cat >copr-dist-git.sysusers.conf </dev/null || groupadd -r packager -getent group copr-dist-git >/dev/null || groupadd -r copr-dist-git -getent group apache >/dev/null || groupadd -r apache -getent passwd copr-dist-git >/dev/null || \ -useradd -r -m -g copr-dist-git -G packager,apache -c "copr-dist-git user" copr-dist-git -/usr/bin/passwd -l copr-dist-git >/dev/null - %install %py3_install @@ -99,6 +101,8 @@ touch %{buildroot}%{_var}/log/copr-dist-git/main.log %py_byte_compile %{__python3} %{buildroot}%{_datadir}/copr/dist_git +install -m0644 -D copr-dist-git.sysusers.conf %{buildroot}%{_sysusersdir}/copr-dist-git.conf + %check ./run_tests.sh -vv --no-cov @@ -135,8 +139,13 @@ touch %{buildroot}%{_var}/log/copr-dist-git/main.log %attr(0644, copr-dist-git, copr-dist-git) %{_var}/log/copr-dist-git/main.log %ghost %{_var}/log/copr-dist-git/*.log %{_tmpfilesdir}/copr-dist-git.conf +%{_sysusersdir}/copr-dist-git.conf %changelog +* Fri Jan 24 2025 Zbigniew Jędrzejewski-Szmek - 1.0-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically. + Option -m was ignored. It must not be used for system users. + * Thu Jan 16 2025 Fedora Release Engineering - 1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git dbus-broker.spec dbus-broker.spec index cb7ac2a0ea..968b44cf79 100644 --- dbus-broker.spec +++ dbus-broker.spec @@ -19,7 +19,6 @@ BuildRequires: glibc-devel BuildRequires: meson BuildRequires: python3-docutils Requires: dbus-common -Requires(pre): shadow-utils %description dbus-broker is an implementation of a message bus as defined by the D-Bus @@ -39,6 +38,11 @@ of the installed dbus-broker. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >dbus-broker.sysusers.conf </dev/null || groupadd -f -g %{dbus_user_id} -r dbus -if ! getent passwd dbus >/dev/null ; then - if ! getent passwd %{dbus_user_id} >/dev/null ; then - useradd -r -u %{dbus_user_id} -g %{dbus_user_id} -d '/' -s /sbin/nologin -c "System message bus" dbus - else - useradd -r -g %{dbus_user_id} -d '/' -s /sbin/nologin -c "System message bus" dbus - fi -fi -exit 0 - %post %systemd_post dbus-broker.service %systemd_user_post dbus-broker.service @@ -95,6 +89,7 @@ fi %{_mandir}/man1/dbus-broker-launch.1* %{_unitdir}/dbus-broker.service %{_userunitdir}/dbus-broker.service +%{_sysusersdir}/dbus-broker.conf %files tests %{_prefix}/lib/dbus-broker/tests/ diff --git dogtag-pki.spec dogtag-pki.spec index ad0237ee2d..695dec3f57 100644 --- dogtag-pki.spec +++ dogtag-pki.spec @@ -30,7 +30,7 @@ URL: https://www.dogtagpki.org # The entire source code is GPLv2 except for 'pki-tps' which is LGPLv2 License: GPL-2.0-only AND LGPL-2.0-only Version: %{major_version}.%{minor_version}.%{update_version} -Release: %{release_number}%{?phase:.}%{?phase}%{?timestamp:.}%{?timestamp}%{?commit_id:.}%{?commit_id}%{?dist} +Release: %{release_number}%{?phase:.}%{?phase}%{?timestamp:.}%{?timestamp}%{?commit_id:.}%{?commit_id}%{?dist}.1 # To create a tarball from a version tag: # $ git archive \ @@ -638,7 +638,6 @@ Requires: mvn(org.dogtagpki.jss:jss-tomcat) >= 5.5.0 Requires: systemd Requires(post): systemd-units Requires(postun): systemd-units -Requires(pre): shadow-utils # pki-healthcheck depends on the following library %if 0%{?rhel} @@ -1196,6 +1195,12 @@ fi %mvn_package org.dogtagpki.pki:pki-console pki-console %endif +# Create a sysusers.d config file +cat >dogtag-pki.sysusers.conf </dev/null || groupadd -f -g %{pki_gid} -r %{pki_groupname} - -# create PKI user if it doesn't exist -if ! getent passwd %{pki_username} >/dev/null ; then - useradd -r -u %{pki_uid} -g %{pki_groupname} -d %{pki_homedir} -s /sbin/nologin -c "Certificate System" %{pki_username} -fi - # create PKI home directory if it doesn't exist if [ ! -d %{pki_homedir} ] ; then cp -ar /etc/skel %{pki_homedir} @@ -1817,6 +1815,7 @@ fi %{_mandir}/man8/pki-healthcheck.8.gz %{_datadir}/pki/setup/ %{_datadir}/pki/server/ +%{_sysusersdir}/dogtag-pki.conf %if %{without maven} %{_datadir}/java/pki/pki-server.jar @@ -2008,6 +2007,9 @@ fi ################################################################################ %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 11.6.0-0.3.alpha1.1 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Adam Williamson - 11.6.0-0.3.alpha1 - Rebuild on mass rebuild tag to make that process happy diff --git freeipa.spec freeipa.spec index 24952c3596..1798b95d59 100644 --- freeipa.spec +++ freeipa.spec @@ -200,7 +200,7 @@ Name: %{package_name} Version: %{IPA_VERSION} -Release: 8%{?rc_version:.%rc_version}%{?dist} +Release: 9%{?rc_version:.%rc_version}%{?dist} Summary: The Identity, Policy and Audit system License: GPL-3.0-or-later @@ -466,7 +466,6 @@ Requires(pre): systemd-units >= %{systemd_version} Requires(post): systemd-units >= %{systemd_version} Requires(preun): systemd-units >= %{systemd_version} Requires(postun): systemd-units >= %{systemd_version} -Requires(pre): shadow-utils Requires: selinux-policy >= %{selinux_policy_version} Requires(post): selinux-policy-base >= %{selinux_policy_version} Requires: slapi-nis >= %{slapi_nis_version} @@ -576,6 +575,7 @@ Requires: systemd-units >= %{systemd_version} %if 0%{?rhel} >= 8 && ! 0%{?eln} Requires: system-logos-ipa >= 80.4 %endif +Requires: user(apache) Provides: %{alt_name}-server-common = %{version} Conflicts: %{alt_name}-server-common @@ -1023,6 +1023,13 @@ popd %autopatch -p1 +# Create a sysusers.d config file +cat >freeipa.sysusers.conf </dev/null || groupadd -f -r kdcproxy -getent passwd kdcproxy >/dev/null || useradd -r -g kdcproxy -s /sbin/nologin -d / -c "IPA KDC Proxy User" kdcproxy -# create ipaapi group and user -getent group ipaapi >/dev/null || groupadd -f -r ipaapi -getent passwd ipaapi >/dev/null || useradd -r -g ipaapi -s /sbin/nologin -d / -c "IPA Framework User" ipaapi -# add apache to ipaaapi group -id -Gn apache | grep '\bipaapi\b' >/dev/null || usermod apache -a -G ipaapi - - %post server-dns %systemd_post ipa-dnskeysyncd.service ipa-ods-exporter.socket ipa-ods-exporter.service @@ -1680,6 +1672,7 @@ fi %attr(0644,root,root) %{_usr}/share/ipa/schema.d/README %attr(0644,root,root) %{_usr}/share/ipa/gssapi.login %{_usr}/share/ipa/ipakrb5.aug +%{_sysusersdir}/freeipa.conf %files server-dns %doc README.md Contributors.txt @@ -1865,6 +1858,9 @@ fi %endif %changelog +* Wed Jan 29 2025 Zbigniew Jędrzejewski-Szmek - 4.12.2-9 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Wed Jan 15 2025 Alexander Bokovoy - 4.12.2-8 - CVE-2024-11029 - Release notes: https://www.freeipa.org/release-notes/4-12-3.html diff --git gnokii.spec gnokii.spec index a1b4a97c5e..bb26094cd2 100644 --- gnokii.spec +++ gnokii.spec @@ -3,7 +3,7 @@ Name: gnokii Version: 0.6.31 -Release: 44%{?dist} +Release: 45%{?dist} Summary: Linux/Unix tool suite for various mobile phones License: GPL-2.0-or-later @@ -53,7 +53,6 @@ BuildRequires: readline-devel BuildRequires: perl(XML::Parser) intltool BuildRequires: make BuildRequires: chrpath -Requires(pre): %{_sbindir}/groupadd %description Gnokii provides tools and a user space driver for use with mobile @@ -74,7 +73,6 @@ from/in computer and more other features. %package smsd Summary: Gnokii SMS daemon Requires: %{name}%{?_isa} = %{version}-%{release} -Requires(pre): %{_sbindir}/useradd Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -125,6 +123,14 @@ Requires: pkgconfig install -pm 644 %{SOURCE5} smsd2mail.sh install -pm 644 %{SOURCE6} README.smsd2mail +# Create sysusers.d config files +cat >gnokii.sysusers.conf <gnokii-smsd.sysusers.conf < /dev/null || %{_sbindir}/groupadd -r %{name} - -%pre smsd -getent passwd %{name} > /dev/null || %{_sbindir}/useradd -r -M -d / \ - -g %{name} -s /sbin/nologin -c "Gnokii system user" %{name} - %ldconfig_scriptlets %post smsd @@ -212,6 +214,7 @@ getent passwd %{name} > /dev/null || %{_sbindir}/useradd -r -M -d / \ %{_mandir}/man1/sendsms.1* %{_mandir}/man8/gnokiid.8* %{_mandir}/man8/mgnokiidev.8* +%{_sysusersdir}/gnokii.conf %files -n xgnokii %doc xgnokii/ChangeLog xgnokii/README.vcard @@ -229,6 +232,7 @@ getent passwd %{name} > /dev/null || %{_sbindir}/useradd -r -M -d / \ %{_mandir}/man8/gnokii-smsd.8* %dir %{_libdir}/smsd/ %{_libdir}/smsd/libsmsd_file.so +%{_sysusersdir}/gnokii-smsd.conf %files smsd-pgsql %doc smsd/sms.tables.pq.sql @@ -249,6 +253,9 @@ getent passwd %{name} > /dev/null || %{_sbindir}/useradd -r -M -d / \ %{_libdir}/pkgconfig/xgnokii.pc %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 0.6.31-45 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 0.6.31-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git groonga.spec groonga.spec index a9fca76061..9f1189c7f4 100644 --- groonga.spec +++ groonga.spec @@ -67,7 +67,6 @@ This package contains libraries and header files for Groonga. Summary: Common files for the Groonga server and the Groonga HTTP server License: LGPL-2.1-only Requires: %{name}%{?isa} = %{version}-%{release} -Requires(pre): shadow-utils %description server-common This package provides common settings for server use. @@ -76,7 +75,6 @@ This package provides common settings for server use. Summary: Groonga GQTP server License: LGPL-2.1-only Requires: %{name}-server-common%{?isa} = %{version}-%{release} -Requires(pre): shadow-utils Requires(post): systemd Requires(preun):systemd @@ -87,7 +85,6 @@ This package contains the Groonga GQTP server. Summary: Groonga HTTP server License: LGPL-2.1-only AND BSD-3-Clause Requires: %{name}-server-common%{?isa} = %{version}-%{release} -Requires(pre): shadow-utils Requires(post): systemd Requires(preun):systemd @@ -162,6 +159,11 @@ rm vendor/*.tar.gz rm vendor/*.rb rm -rf vendor/{lz4,rapidjson-1.1.0} +# Create a sysusers.d config file +cat >groonga.sysusers.conf < %{buildroot}%{_sysconfdir}/munin/plugin-conf.d/groonga env.gqtp_query_log_path %{_localstatedir}/log/groonga/query-gqtp.log EOC +install -m0644 -D groonga.sysusers.conf %{buildroot}%{_sysusersdir}/groonga.conf + %post munin-plugins %{_sbindir}/munin-node-configure --shell --remove-also | grep -e 'groonga_' | sh %systemd_postun munin-node %pre server-common -getent group groonga >/dev/null || groupadd -r groonga -getent passwd groonga >/dev/null || \ - useradd -r -g groonga -d %{_localstatedir}/lib/groonga -s /sbin/nologin \ - -c 'groonga' groonga if [ $1 = 1 ] ; then mkdir -p %{_localstatedir}/log/groonga mkdir -p %{_localstatedir}/lib/groonga/db @@ -316,6 +316,7 @@ fi %files server-common %config(noreplace) %{_sysconfdir}/tmpfiles.d/groonga.conf +%{_sysusersdir}/groonga.conf %files server-gqtp %config(noreplace) %{_sysconfdir}/groonga/ diff --git jetty.spec jetty.spec index 8a785fd843..aa09add3e1 100644 --- jetty.spec +++ jetty.spec @@ -50,7 +50,7 @@ Name: jetty Version: 9.4.40 -Release: 14%{?dist} +Release: 15%{?dist} Summary: Java Webserver and Servlet Container # Jetty is dual licensed under both ASL 2.0 and EPL 1.0, see NOTICE.txt @@ -192,7 +192,6 @@ Requires: %{name}-http2-hpack = %{version}-%{release} Requires: %{name}-http2-http-client-transport = %{version}-%{release} Requires: %{name}-http2-server = %{version}-%{release} -Requires(pre): shadow-utils %{?systemd_ordering} @@ -740,6 +739,11 @@ sed -i '/jetty.sysusers.conf </dev/null || groupadd -f -g %jtuid -r %username -if ! getent passwd %username >/dev/null ; then - if ! getent passwd %jtuid >/dev/null ; then - useradd -r -u %jtuid -g %username -d %homedir -s /sbin/nologin \ - -c "Jetty web server" %username - else - useradd -r -g %username -d %homedir -s /sbin/nologin \ - -c "Jetty web server" %username - fi -fi -exit 0 +install -m0644 -D jetty.sysusers.conf %{buildroot}%{_sysusersdir}/jetty.conf %post %systemd_post jetty.service @@ -912,6 +904,7 @@ exit 0 %files # Empty metapackage in minimal mode %endif +%{_sysusersdir}/jetty.conf %if %{without jp_minimal} %files -f .mfiles @@ -973,6 +966,9 @@ exit 0 %license LICENSE NOTICE.txt LICENSE-MIT %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 9.4.40-15 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 9.4.40-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git knot.spec knot.spec index 2b60057e47..75ed60f004 100644 --- knot.spec +++ knot.spec @@ -8,7 +8,7 @@ Summary: High-performance authoritative DNS server Name: knot Version: 3.4.4 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL-3.0-or-later URL: https://www.knot-dns.cz Source0: https://secure.nic.cz/files/knot-dns/%{name}-%{version}.tar.xz @@ -148,6 +148,11 @@ gpg2 --verify %{SOURCE1} %{SOURCE0} %endif %autosetup -p1 +# Create a sysusers.d config file +cat >knot.sysusers.conf </dev/null || groupadd -r knot -getent passwd knot >/dev/null || \ - useradd -r -g knot -d %{_sharedstatedir}/knot -s /sbin/nologin \ - -c "Knot DNS server" knot %if 0%{?suse_version} %service_add_pre knot.service %endif @@ -273,6 +276,7 @@ getent passwd knot >/dev/null || \ %{_mandir}/man8/knotc.* %{_mandir}/man8/knotd.* %ghost %attr(770,root,knot) %dir %{_rundir}/knot +%{_sysusersdir}/knot.conf %files utils %{_bindir}/kdig @@ -324,6 +328,9 @@ getent passwd knot >/dev/null || \ %doc %{_pkgdocdir}/html %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 3.4.4-2 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 23 2025 Jakub Ružička - 3.4.4-1 - Update to 3.4.4 diff --git nfs-utils.spec nfs-utils.spec index 26da106b24..b8b6323bdc 100644 --- nfs-utils.spec +++ nfs-utils.spec @@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser Name: nfs-utils URL: http://linux-nfs.org/ Version: 2.8.2 -Release: 0.rc3%{?dist}.5 +Release: 0.rc3%{?dist}.6 Epoch: 1 # group all 32bit related archs @@ -23,6 +23,11 @@ Patch104: nfs-utils-2.3.3-man-tcpwrappers.patch Patch105: nfs-utils-2.3.3-nfsconf-usegssproxy.patch Patch106: nfs-utils-2.4.2-systemd-svcgssd.patch +%global rpcuser_uid 29 + +# Using the 16-bit value of -2 for the nfsnobody uid and gid +%global nfsnobody_uid 65534 + Provides: exportfs = %{epoch}:%{version}-%{release} Provides: nfsstat = %{epoch}:%{version}-%{release} Provides: showmount = %{epoch}:%{version}-%{release} @@ -165,6 +170,11 @@ find . -name "*.orig" | xargs rm -f # Change shebangs find -name \*.py -exec sed -r -i '1s|^#!\s*/usr/bin.*python.*|#!%{__python3}|' {} \; +# Create a sysusers.d config file +cat >nfs-utils.sysusers.conf </dev/null -if [ "$?" -eq 1 ]; then - /usr/sbin/groupadd -g %{rpcuser_uid} rpcuser >/dev/null 2>&1 || : -fi - -# Create rpcuser uid as long as it does not already exist. -cat /etc/passwd | cut -d':' -f 1 | grep --quiet rpcuser 2>/dev/null -if [ "$?" -eq 1 ]; then - /usr/sbin/useradd -l -c "RPC Service User" -r -g %{rpcuser_uid} \ - -s /sbin/nologin -u %{rpcuser_uid} -d /var/lib/nfs rpcuser >/dev/null 2>&1 || : -else - /usr/sbin/usermod -u %{rpcuser_uid} -g %{rpcuser_uid} rpcuser >/dev/null 2>&1 || : -fi - -# Using the 16-bit value of -2 for the nfsnobody uid and gid -%global nfsnobody_uid 65534 - # Nowadays 'nobody/65534' user/group are included in setup rpm. But on # systems installed previously, nobody/99 might be present, with user # 65534 missing. Let's create nfsnobody/65534 in that case. @@ -347,6 +340,7 @@ rm -rf /etc/systemd/system/rpc-*.requires %{_sbindir}/mount.nfs4 %{_sbindir}/umount.nfs %{_sbindir}/umount.nfs4 +%{_sysusersdir}/nfs-utils.conf %files -n libnfsidmap %doc support/nfsidmap/AUTHORS support/nfsidmap/README support/nfsidmap/COPYING @@ -446,6 +440,9 @@ rm -rf /etc/systemd/system/rpc-*.requires %{_mandir}/*/nfsiostat.8.gz %changelog +* Wed Jan 29 2025 Zbigniew Jędrzejewski-Szmek +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Steve Dickson 2.8.2-0.rc3.5 - Updated to the latest RC release: nfs-utils-2-8-3-rc3 diff --git openarc.spec openarc.spec index 7869aebb2e..b0078b251a 100644 --- openarc.spec +++ openarc.spec @@ -4,7 +4,7 @@ %global systemd_runtimedir (0%{?fedora} >= 21) || (0%{?rhel} >= 8) %global tmpfiles ((0%{?fedora} >= 15) || (0%{?rhel} == 7)) && !%{systemd_runtimedir} -%global baserelease 21 +%global baserelease 22 %global pre_rel Beta3 Summary: An open source library and milter for providing ARC service @@ -39,7 +39,6 @@ BuildRequires: automake Requires: lib%{name}%{?_isa} = %{version}-%{release} Requires: libopenarc = %{version}-%{release} -Requires(pre): shadow-utils %if %systemd # Required for systemd %{?systemd_requires} @@ -49,6 +48,7 @@ BuildRequires: systemd Requires(post): chkconfig Requires(preun): chkconfig, initscripts %endif +Requires: group(mail) %description @@ -74,6 +74,13 @@ required for developing applications against libopenarc. %prep %autosetup -n OpenARC-rel-openarc-1-0-0-Beta3 -p1 +# Previously, a non-system group was created :(, sysusers does not support this +# Create a sysusers.d config file +cat >openarc.sysusers.conf </dev/null 2>&1; then - %{_sbindir}/useradd -M -d %{_localstatedir}/lib/%{name} -r -s /sbin/nologin %{name} - if ! getent group %{name} >/dev/null; then - %{_sbindir}/groupadd %{name} - %{_sbindir}/usermod -g %{name} %{name} - fi - if getent group mail >/dev/null; then - %{_sbindir}/usermod -G mail %{name} - fi -fi -exit 0 - +install -m0644 -D openarc.sysusers.conf %{buildroot}%{_sysusersdir}/openarc.conf %post @@ -219,6 +214,7 @@ exit 0 %endif %{_mandir}/*/* %{_sbindir}/* +%{_sysusersdir}/openarc.conf %files -n libopenarc @@ -232,6 +228,9 @@ exit 0 %{_libdir}/pkgconfig/*.pc %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 1.0.0-0.22.Beta3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 1.0.0-0.21.Beta3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git pcp.spec pcp.spec index 11053234d9..4c18f5e662 100644 --- pcp.spec +++ pcp.spec @@ -1,6 +1,6 @@ Name: pcp Version: 6.3.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: System-level performance monitoring and performance management License: GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0 URL: https://pcp.io @@ -2481,6 +2481,11 @@ updated policy package. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >pcp.sysusers.conf <= 32 || 0%{?rhel} >= 9 +%if ( 0%{?fedora} && 0%{fedora} < 42 ) || 0%{?rhel} >= 9 echo u pcpqa - \"PCP Quality Assurance\" %{_testsdir} /bin/bash | \ systemd-sysusers --replace=/usr/lib/sysusers.d/pcp-testsuite.conf - %else @@ -3330,6 +3337,7 @@ fi %endif %files testsuite -f pcp-testsuite-files.rpm +%{_sysusersdir}/pcp.conf %if !%{disable_infiniband} %files pmda-infiniband -f pcp-pmda-infiniband-files.rpm @@ -3605,6 +3613,9 @@ fi %files zeroconf -f pcp-zeroconf-files.rpm %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 6.3.2-5 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 6.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git pulseaudio.spec pulseaudio.spec index 489cec30e5..a41640572b 100644 --- pulseaudio.spec +++ pulseaudio.spec @@ -34,7 +34,7 @@ Name: pulseaudio Summary: Improved Linux Sound Server Version: %{pa_major}%{?pa_minor:.%{pa_minor}} -Release: 5%{?snap:.%{snap}git%{shortcommit}}%{?dist} +Release: 6%{?snap:.%{snap}git%{shortcommit}}%{?dist} License: LGPL-2.1-or-later URL: http://www.freedesktop.org/wiki/Software/PulseAudio %if 0%{?gitrel} @@ -126,7 +126,6 @@ BuildRequires: pkgconfig(gstreamer-rtp-1.0) >= 1.16.0 # retired along with -libs-zeroconf, add Obsoletes here for lack of anything better Obsoletes: padevchooser < 1.0 -Requires(pre): shadow-utils Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: rtkit @@ -278,6 +277,13 @@ sed -i.PACKAGE_VERSION -e "s|^PACKAGE_VERSION=.*|PACKAGE_VERSION=\'%{version}\'| #endif %endif +# Create a sysusers.d config file +cat >pulseaudio.sysusers.conf </dev/null || groupadd -r pulse-access -getent group pulse-rt >/dev/null || groupadd -r pulse-rt -getent group pulse >/dev/null || groupadd -f -g 171 -r pulse -if ! getent passwd pulse >/dev/null ; then - if ! getent passwd 171 >/dev/null ; then - useradd -r -u 171 -g pulse -d %{_localstatedir}/run/pulse -s /sbin/nologin -c "PulseAudio System Daemon" pulse - else - useradd -r -g pulse -d %{_localstatedir}/run/pulse -s /sbin/nologin -c "PulseAudio System Daemon" pulse - fi -fi -exit 0 - %posttrans # handle renamed module-cork-music-on-phone => module-role-cork (grep '^load-module module-cork-music-on-phone$' %{_sysconfdir}/pulse/default.pa > /dev/null && \ @@ -529,6 +524,7 @@ systemctl --no-reload preset --global pulseaudio.socket >/dev/null 2>&1 || : %dir %{_datadir}/zsh/ %dir %{_datadir}/zsh/site-functions/ %{_datadir}/zsh/site-functions/_pulseaudio +%{_sysusersdir}/pulseaudio.conf %files qpaeq %{_bindir}/qpaeq @@ -668,6 +664,9 @@ systemctl --no-reload preset --global pulseaudio.socket >/dev/null 2>&1 || : %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 17.0-6 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sat Jan 18 2025 Fedora Release Engineering - 17.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git puppet.spec puppet.spec index fa29cbacb2..23d05952e0 100644 --- puppet.spec +++ puppet.spec @@ -4,7 +4,7 @@ Name: puppet Version: 8.6.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Network tool for managing many disparate systems License: Apache-2.0 URL: https://puppet.com @@ -83,6 +83,11 @@ find -type f -exec \ -e 's|/var/log/puppetlabs/puppet|%{_localstatedir}/log/%{name}|' \ '{}' + +# Create a sysusers.d config file +cat >puppet.sysusers.conf </dev/null || groupadd -r puppet -g 52 &>/dev/null -getent passwd puppet &>/dev/null || \ -useradd -r -u 52 -g puppet -s /sbin/nologin \ - -c "Puppet" puppet &>/dev/null %post %systemd_post %{name}.service @@ -210,6 +212,9 @@ useradd -r -u 52 -g puppet -s /sbin/nologin \ %systemd_postun_with_restart %{name}.service %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 8.6.0-4 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sat Jan 18 2025 Fedora Release Engineering - 8.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git resalloc.spec resalloc.spec index fe9bf5c1e4..eaf9e5366e 100644 --- resalloc.spec +++ resalloc.spec @@ -7,13 +7,6 @@ %global agent_user resalloc-agent-spawner %global agent_group %agent_user -%global create_user_group() \ -getent group "%1" >/dev/null || groupadd -r "%1" \ -getent passwd "%1" >/dev/null || \\\ -useradd -r -g "%2" -G "%2" -s "%3" \\\ - -c "%1 service user" "%1" \\\ - -d "%4" - %global _logdir %_var/log/%{name}server %global sum Resource allocator for expensive resources @@ -39,7 +32,7 @@ the purposes of CI/CD tasks. Name: %srcname Summary: %sum - client tooling Version: 5.9 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL-2.0-or-later URL: https://github.com/praiskup/resalloc BuildArch: noarch @@ -116,7 +109,6 @@ Requires: python-sqlalchemy Requires: python-yaml %endif -Requires(pre): /usr/sbin/useradd %description server %desc @@ -156,7 +148,6 @@ it shows page with information about resalloc resources. %package agent-spawner Summary: %sum - daemon starting agent-like resources -Requires(pre): /usr/sbin/useradd Requires: python3-copr-common >= 0.23 Requires: python3-daemon Requires: python3-redis @@ -219,6 +210,16 @@ restorecon -R %_var/www/cgi-%{name} || : rm -r resalloc_agent_spawner %endif +# Create sysusers.d config files +cat >resalloc.sysusers.conf <resalloc-agent-spawner.sysusers.conf < - 5.9-2 +- Add sysusers.d config files to allow rpm to create users/groups automatically + * Sat Jan 18 2025 Pavel Raiskup - 5.9-1 - New upstream release https://github.com/praiskup/resalloc/releases/tag/v5.9 diff --git rpcbind.spec rpcbind.spec index b5b2c6ea0d..f3ac1bfcf5 100644 --- rpcbind.spec +++ rpcbind.spec @@ -4,7 +4,7 @@ Name: rpcbind Version: 1.2.7 -Release: 1.rc1%{?dist}.3 +Release: 1.rc1%{?dist}.4 Summary: Universal Addresses to RPC Program Number Mapper License: BSD-3-Clause URL: http://nfsv4.bullopensource.org @@ -18,12 +18,10 @@ Conflicts: man-pages < 2.43-12 BuildRequires: make BuildRequires: automake, autoconf, libtool, systemd, systemd-devel BuildRequires: libtirpc-devel, quota-devel -Requires(pre): coreutils shadow-utils +Requires(pre): coreutils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd coreutils -Provides: user(rpc) -Provides: group(rpc) Patch001: rpcbind-1.2.8-rc1.patch @@ -49,6 +47,11 @@ RPC calls on a server on that machine. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >rpcbind.sysusers.conf </dev/null || groupadd -f -g 32 -r rpc -if ! getent passwd rpc >/dev/null ; then - if ! getent passwd 32 >/dev/null ; then - useradd -l -c "Rpcbind Daemon" -d /var/lib/rpcbind \ - -g rpc -M -s /sbin/nologin -o -u 32 rpc > /dev/null 2>&1 - else - useradd -l -c "Rpcbind Daemon" -d /var/lib/rpcbind \ - -g rpc -M -s /sbin/nologin rpc > /dev/null 2>&1 - fi -fi +install -m0644 -D rpcbind.sysusers.conf %{buildroot}%{_sysusersdir}/rpcbind.conf %post %systemd_post rpcbind.service rpcbind.socket @@ -125,8 +116,12 @@ fi %{_unitdir}/%{name}.socket %{_tmpfilesdir}/%{name}.conf %attr(0700, %{rpcbind_user_group}, %{rpcbind_user_group}) %dir %{rpcbind_state_dir} +%{_sysusersdir}/rpcbind.conf %changelog +* Wed Jan 29 2025 Zbigniew Jędrzejewski-Szmek - 1.2.7-1.rc1.4 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sat Jan 18 2025 Fedora Release Engineering - 1.2.7-1.rc1.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git sblim-sfcb.spec sblim-sfcb.spec index fe9509ede3..40a5605849 100644 --- sblim-sfcb.spec +++ sblim-sfcb.spec @@ -8,7 +8,7 @@ Name: sblim-sfcb Summary: Small Footprint CIM Broker URL: http://sblim.wiki.sourceforge.net/ Version: 1.4.9 -Release: 33%{?dist} +Release: 34%{?dist} License: EPL-1.0 Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2 Source1: sfcb.service @@ -83,6 +83,12 @@ Programming Interface (CMPI). %patch -P9 -p1 -b .fix-ppc-optimization-level %patch -P10 -p1 -b .docdir-license +# Create a sysusers.d config file +cat >sblim-sfcb.sysusers.conf <> _pkg_list cat _pkg_list -%pre -/usr/bin/getent group sfcb >/dev/null || /usr/sbin/groupadd -r sfcb -/usr/sbin/usermod -a -G sfcb root > /dev/null 2>&1 || : +install -m0644 -D sblim-sfcb.sysusers.conf %{buildroot}%{_sysusersdir}/sblim-sfcb.conf %post %{_datadir}/sfcb/genSslCert.sh %{_sysconfdir}/sfcb &>/dev/null || : @@ -133,13 +137,14 @@ cat _pkg_list %postun /sbin/ldconfig %systemd_postun_with_restart sblim-sfcb.service -if [ $1 -eq 0 ]; then - /usr/sbin/groupdel sfcb > /dev/null 2>&1 || :; -fi; %files -f _pkg_list +%{_sysusersdir}/sblim-sfcb.conf %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 1.4.9-34 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sun Jan 19 2025 Fedora Release Engineering - 1.4.9-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git teeworlds.spec teeworlds.spec index c3e09a1365..fc61da42b4 100644 --- teeworlds.spec +++ teeworlds.spec @@ -1,6 +1,6 @@ Name: teeworlds Version: 0.7.5 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Online multi-player platform 2D shooter # zlib: src/engine/externals/md5/* @@ -47,7 +47,6 @@ The controls are heavily inspired by the FPS genre of computer games. Summary: Server for %{name} Requires: %{name}-data = %{version} Provides: bundled(md5) -Requires(pre): shadow-utils %{?systemd_requires} BuildRequires: systemd @@ -75,6 +74,11 @@ sed -i -e "/_mm_pause/d" src/engine/client/client.cpp %endif sed -i "s/\/usr/\%{_prefix}/g" src/engine/shared/storage.cpp +# Create a sysusers.d config file +cat >teeworlds.sysusers.conf </dev/null || groupadd -f -r teeworlds -if ! getent passwd teeworlds >/dev/null ; then - useradd -r -g teeworlds -d %{_sysconfdir}/%{name} -s /sbin/nologin \ - -c "%{name} server daemon account" teeworlds -fi -exit 0 +install -m0644 -D teeworlds.sysusers.conf %{buildroot}%{_sysusersdir}/teeworlds.conf %post server %systemd_post %{name}-server@dm.service @@ -137,8 +135,12 @@ exit 0 %{_bindir}/%{name}-srv %{_unitdir}/%{name}-server@.service %attr(-,teeworlds,teeworlds)%{_sysconfdir}/%{name}/ +%{_sysusersdir}/teeworlds.conf %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 0.7.5-17 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sun Jan 19 2025 Fedora Release Engineering - 0.7.5-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git tomcat.spec tomcat.spec index 2d36335d02..8689ef0cd1 100644 --- tomcat.spec +++ tomcat.spec @@ -102,7 +102,6 @@ Requires: %{name}-lib = %{epoch}:%{version}-%{release} %if 0%{?fedora} || 0%{?rhel} > 7 Recommends: tomcat-native >= %{native_version} %endif -Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -203,6 +202,11 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name " %mvn_alias "org.apache.tomcat:tomcat-jsp-api" "jakarta.servlet:jakarta.servlet.jsp" %mvn_package ":tomcat-servlet-api" tomcat-servlet-api +# Create a sysusers.d config file +cat >tomcat.sysusers.conf </dev/null || %{_sbindir}/groupadd -f -g %{tcuid} -r tomcat -if ! getent passwd tomcat >/dev/null ; then - if ! getent passwd %{tcuid} >/dev/null ; then - %{_sbindir}/useradd -r -u %{tcuid} -g tomcat -d %{homedir} -s /sbin/nologin -c "Apache Tomcat" tomcat - # Tomcat uses a reserved ID, so there should never be an else - fi -fi -exit 0 +install -m0644 -D tomcat.sysusers.conf %{buildroot}%{_sysusersdir}/tomcat.conf %post # install but don't activate @@ -476,6 +471,7 @@ exit 0 %{homedir}/work %{homedir}/logs %{homedir}/conf +%{_sysusersdir}/tomcat.conf %files admin-webapps %defattr(0664,root,tomcat,0755) diff --git totpcgi.spec totpcgi.spec index cc6e25d383..901420ae1f 100644 --- totpcgi.spec +++ totpcgi.spec @@ -10,7 +10,7 @@ Name: totpcgi Version: 0.6.0 -Release: 0.22.20190713git%{?dist} +Release: 0.23.20190713git%{?dist} Summary: A centralized totp solution based on google-authenticator # Automatically converted from old format: GPLv2+ - review is highly recommended. @@ -66,6 +66,12 @@ This package includes SELinux policy for totpcgi and totpcgi-provisioning. %prep %autosetup -n totp-cgi-%{commit} -p1 +# Create a sysusers.d config file +cat >totpcgi.sysusers.conf < /dev/null || : -/usr/sbin/useradd -c "Totpcgi provisioning user" \ - -M -s /sbin/nologin -d /etc/totpcgi %{totpcgiprovuser} 2> /dev/null || : - # For some reason the labeling doesn't always happen correctly # force it if fixfiles exists %post @@ -195,6 +197,7 @@ fi %config(noreplace) %attr(-, -, %{totpcgiprovuser}) %{_sysconfdir}/totpcgi/provisioning.conf %{_bindir}/* %{_mandir}/*/* +%{_sysusersdir}/totpcgi.conf %files provisioning %dir %attr(-, %{totpcgiprovuser}, %{totpcgiprovuser}) %{_localstatedir}/www/totpcgi-provisioning @@ -210,6 +213,9 @@ fi %changelog +* Sat Jan 25 2025 Zbigniew Jędrzejewski-Szmek - 0.6.0-0.23.20190713git +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sun Jan 19 2025 Fedora Release Engineering - 0.6.0-0.22.20190713git - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git trousers.spec trousers.spec index 0e0d206c5c..af678a2361 100644 --- trousers.spec +++ trousers.spec @@ -1,7 +1,7 @@ Name: trousers Summary: TCG's Software Stack v1.2 Version: 0.3.15 -Release: 13%{?dist} +Release: 14%{?dist} # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD Url: http://trousers.sourceforge.net @@ -17,7 +17,6 @@ Patch4: trousers-0.3.14-fix-indent-tspi_key.patch BuildRequires: make BuildRequires: libtool openssl-devel gettext-devel autoconf automake BuildRequires: systemd -Requires(pre): shadow-utils # remove systemd dependency for flatpak builds %if ! 0%{?flatpak} Requires(post): systemd-units @@ -64,6 +63,11 @@ applications. # fix man page paths sed -i -e 's|/var/tpm|/var/lib/tpm|g' -e 's|/usr/local/var|/var|g' man/man5/tcsd.conf.5.in man/man8/tcsd.8.in +# Create a sysusers.d config file +cat >trousers.sysusers.conf </dev/null || groupadd -f -g 59 -r tss -if ! getent passwd tss >/dev/null ; then - if ! getent passwd 59 >/dev/null ; then - useradd -r -u 59 -g tss -d /dev/null -s /sbin/nologin -c "Account used for TPM access" tss - else - useradd -r -g tss -d /dev/null -s /sbin/nologin -c "Account used for TPM access" tss - fi -fi -exit 0 +install -m0644 -D trousers.sysusers.conf %{buildroot}%{_sysusersdir}/trousers.conf %post %systemd_post tcsd.service @@ -105,6 +100,7 @@ exit 0 %{_mandir}/man8/* %attr(644,root,root) %{_unitdir}/tcsd.service %attr(0700, tss, tss) %{_localstatedir}/lib/tpm/ +%{_sysusersdir}/trousers.conf %files lib %license LICENSE @@ -123,6 +119,9 @@ exit 0 %{_libdir}/libtddl.a %changelog +* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek - 0.3.15-14 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sun Jan 19 2025 Fedora Release Engineering - 0.3.15-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git uucp.spec uucp.spec index bd16b90de9..3ef5eab838 100644 --- uucp.spec +++ uucp.spec @@ -63,7 +63,6 @@ Requires(preun): /sbin/install-info Requires(post): /sbin/install-info %endif Requires: lockdev >= 1.0.0-14 -Requires(pre): shadow-utils Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units @@ -96,6 +95,12 @@ because it can be useful even if you do not do uucp. %patch -P12 -p1 -b .configure-c99 %patch -P13 -p1 -b .fix-types +# Create a sysusers.d config file +cat >uucp.sysusers.conf <= 16 || 0%{?rhel} >= 7 @@ -171,18 +176,7 @@ EOF find "${RPM_BUILD_ROOT}%_datadir/uucp/contrib" -type f -exec chmod a-x {} + - -%pre -getent group uucp >/dev/null || groupadd -g 14 -r uucp -if ! getent passwd uucp >/dev/null ; then - if ! getent passwd 10 >/dev/null ; then - useradd -r -u 10 -g uucp -d /var/spool/uucp -c "Uucp user" uucp - else - useradd -r -g uucp -d /var/spool/uucp -c "Uucp user" uucp - fi -fi -exit 0 - +install -m0644 -D uucp.sysusers.conf %{buildroot}%{_sysusersdir}/uucp.conf %post %if %{with systemd_macros} @@ -296,6 +290,7 @@ fi %config(noreplace) %{_newconfigdir}/port %config(noreplace) %{_newconfigdir}/sys %attr(755,uucp,uucp) /var/spool/uucp +%{_sysusersdir}/uucp.conf %files -n cu %doc README COPYING ChangeLog NEWS TODO diff --git virtualbox-guest-additions.spec virtualbox-guest-additions.spec index 5724538c71..2a591b5201 100644 --- virtualbox-guest-additions.spec +++ virtualbox-guest-additions.spec @@ -1,6 +1,6 @@ Name: virtualbox-guest-additions Version: 7.1.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: VirtualBox Guest Additions License: GPL-3.0-only AND (GPL-3.0-only OR CDDL-1.0) URL: https://www.virtualbox.org/wiki/VirtualBox @@ -85,6 +85,15 @@ rm -r src/libs/libvorbis-1.3.*/ rm -r src/libs/libogg-1.3.*/ rm -r src/libs/libtpms-0.9.*/ +# Create a sysusers.d config file +cat >virtualbox-guest-additions.sysusers.conf </dev/null || groupadd -r vboxsf 2>&1 -getent passwd vboxadd >/dev/null || \ - useradd -r -g 1 -d /var/run/vboxadd -s /sbin/nologin vboxadd 2>&1 %post %systemd_post vboxclient.service @@ -186,9 +190,13 @@ getent passwd vboxadd >/dev/null || \ %{_unitdir}/vboxclient.service %{_unitdir}/vboxservice.service %{_udevrulesdir}/60-vboxguest.rules +%{_sysusersdir}/virtualbox-guest-additions.conf %changelog +* Wed Jan 29 2025 Zbigniew Jędrzejewski-Szmek - 7.1.4-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sun Jan 19 2025 Fedora Release Engineering - 7.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git wesnoth.spec wesnoth.spec index 38a9d393d5..f1c45648a5 100644 --- wesnoth.spec +++ wesnoth.spec @@ -1,6 +1,6 @@ Name: wesnoth Version: 1.19.7 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Turn-based strategy game with a fantasy theme License: GPL-2.0-or-later @@ -57,7 +57,6 @@ friends--or strangers--and fight multi-player epic fantasy battles. %package server Summary: %{summary} Requires: %{name} = %{version}-%{release} -Requires(pre): /usr/sbin/useradd %description server This package contains the binaries for running a Wesnoth server @@ -86,6 +85,12 @@ This package contains the data files for Wesnoth. %prep %autosetup -p0 +# Create a sysusers.d config file. +# Upstream provides a file that we don't like. +cat >wesnothd.sysusers.conf < /dev/null || : +install -m0644 -D wesnoth.sysusers.conf %{buildroot}%{_sysusersdir}/wesnoth.conf + %post server @@ -178,6 +182,7 @@ done %{_unitdir}/wesnothd.service %{_tmpfilesdir}/wesnothd.tmpfiles.conf %exclude %{_prefix}/lib/sysusers.d/wesnothd.sysusers.conf +%{_sysusersdir}/wesnothd.conf %files data -f LANGFILES %{_datadir}/applications/org.wesnoth.Wesnoth.desktop @@ -189,6 +194,9 @@ done %{_mandir}/*/man6/wesnoth*.6* %changelog +* Fri Jan 24 2025 Zbigniew Jędrzejewski-Szmek - 1.19.7-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sun Jan 19 2025 Fedora Release Engineering - 1.19.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git 389-ds-base.spec 389-ds-base.spec index 2205ae3ecb..bd9e674824 100644 --- 389-ds-base.spec +++ 389-ds-base.spec @@ -848,11 +848,6 @@ fi # reload to pick up any changes to systemd files /bin/systemctl daemon-reload >$output 2>&1 || : -# https://fedoraproject.org/wiki/Packaging:UsersAndGroups#Soft_static_allocation -# Soft static allocation for UID and GID -# sysusers.d format https://fedoraproject.org/wiki/Changes/Adopting_sysusers.d_format -%sysusers_create_compat %{SOURCE4} - # Reload our sysctl before we restart (if we can) sysctl --system &> $output; true diff --git clevis.spec clevis.spec index cecdb73389..0f5720e0ae 100644 --- clevis.spec +++ clevis.spec @@ -48,7 +48,6 @@ Requires: coreutils Requires: jose >= 8 Requires: curl Requires: jq -Requires(pre): shadow-utils Requires(post): systemd Requires: clevis-pin-tpm2 @@ -139,14 +138,6 @@ desktop-file-validate \ %{buildroot}/%{_sysconfdir}/xdg/autostart/%{name}-luks-udisks2.desktop %meson_test -%pre -%sysusers_create_compat %{SOURCE1} -# Add clevis user to tss group. -if getent group tss >/dev/null && ! groups %{name} | grep -q "\btss\b"; then - usermod -a -G tss %{name} &>/dev/null -fi -exit 0 - %files %license COPYING %{_datadir}/bash-completion/ diff --git clevis.sysusers clevis.sysusers index daad762fb3..0b483e6ae8 100644 --- clevis.sysusers +++ clevis.sysusers @@ -1 +1,2 @@ u clevis - "Clevis Decryption Framework unprivileged user" /var/cache/clevis - +m clevis tss diff --git dnsconfd.spec dnsconfd.spec index 4d67efc6fa..d373c916ae 100644 --- dnsconfd.spec +++ dnsconfd.spec @@ -19,7 +19,6 @@ BuildRequires: python3-rpm-macros BuildRequires: python3-pip BuildRequires: systemd BuildRequires: systemd-rpm-macros -%{?sysusers_requires_compat} Requires: (%{name}-selinux if selinux-policy-%{selinuxtype}) Requires: python3-gobject-base @@ -27,6 +26,7 @@ Requires: python3-pyyaml Requires: dbus-common Requires: %{name}-cache Suggests: %{name}-unbound +Requires: (%{name}-unbound = %{version}-%{release} if %{name}-unbound) %?python_enable_dependency_generator @@ -127,12 +127,6 @@ fi %posttrans selinux %selinux_relabel_post -s %{selinuxtype} -%pre -%sysusers_create_compat %{SOURCE1} - -%pre unbound -%sysusers_create_compat %{SOURCE1} - %post %systemd_post %{name}.service @@ -153,11 +147,11 @@ fi %{_unitdir}/dnsconfd.service %{_mandir}/man8/dnsconfd*.8* %{_mandir}/man5/dnsconfd.conf.5* -%ghost %{_sysusersdir}/dnsconfd.conf +%{_sysusersdir}/dnsconfd.conf +%{_tmpfilesdir}/dnsconfd.conf %doc README.md docs/com.redhat.dnsconfd.md %{_datadir}/polkit-1/rules.d/dnsconfd.rules %dir %attr(755,dnsconfd,dnsconfd) %{_rundir}/dnsconfd -%{_tmpfilesdir}/%{name}.conf %files selinux %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.* @@ -168,6 +162,7 @@ fi %{_unitdir}/unbound-anchor.service.d/dnsconfd.conf %config(noreplace) %attr(644,unbound,unbound) %{_sysconfdir}/unbound/conf.d/unbound.conf %attr(644,dnsconfd,dnsconfd) %{_rundir}/dnsconfd/unbound.conf +%{_sysusersdir}/dnsconfd.conf %{_tmpfilesdir}/dnsconfd-unbound.conf %changelog diff --git ec2-instance-connect.spec ec2-instance-connect.spec index 18065c4d38..9381d4cd54 100644 --- ec2-instance-connect.spec +++ ec2-instance-connect.spec @@ -5,7 +5,7 @@ Name: ec2-instance-connect Summary: EC2 Instance Connect scripts Version: 1.1.17 -Release: 3%{?dist} +Release: 4%{?dist} License: Apache-2.0 URL: https://github.com/aws/%{project} @@ -25,7 +25,6 @@ Patch1: 0001-Update-curl-command-to-not-fail-silently-on-HTTP-ser.patch BuildArch: noarch BuildRequires: systemd-rpm-macros -%{?sysusers_requires_compat} Requires: openssh >= 6.9.0 Requires: coreutils @@ -145,12 +144,10 @@ fi %{_sysusersdir}/%{modulename}.conf - -%pre -%sysusers_create_compat %{SOURCE4} - - %changelog +* Sat Jan 25 2025 Zbigniew Jędrzejewski-Szmek - 1.1.17-4 +- Drop calls to %sysusers_create_compat + * Thu Jan 16 2025 Fedora Release Engineering - 1.1.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git pacemaker.spec pacemaker.spec index 93868c0e7f..03026b5a41 100644 --- pacemaker.spec +++ pacemaker.spec @@ -261,7 +261,6 @@ BuildRequires: %{python_name}-sphinx # Creation of Users / Groups BuildRequires: systemd-rpm-macros -%{?sysusers_requires_compat} # Booth requires this Provides: pacemaker-ticket-support = 2.0 @@ -576,10 +575,6 @@ fi %postun cli %systemd_postun_with_restart crm_mon.service -%pre -n %{pkgname_pcmk_libs} -%sysusers_create_compat %{SOURCE1} -exit 0 - %ldconfig_scriptlets -n %{pkgname_pcmk_libs} %ldconfig_scriptlets cluster-libs diff --git tog-pegasus.spec tog-pegasus.spec index 5464f63db5..716bb1c3d1 100644 --- tog-pegasus.spec +++ tog-pegasus.spec @@ -524,15 +524,6 @@ if [ $1 -eq 0 ] ; then fi :; -%pre libs -if [ $1 -eq 1 ]; then -# first install: create the 'pegasus' user and group: - { - %sysusers_create_compat %{SOURCE13} - } >/dev/null 2>&1 || :; -fi -:; - %post libs if [ $1 -eq 1 ]; then # Create Symbolic Links for SDK Libraries diff --git addrwatch/addrwatch.spec addrwatch/addrwatch.spec.tmp index 93499f7835..2d52fd5720 100644 --- addrwatch/addrwatch.spec +++ addrwatch/addrwatch.spec.tmp @@ -1,26 +1,25 @@ %global _hardened_build 1 Name: addrwatch Version: 1.0.2 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Monitoring IPv4/IPv6 and Ethernet address pairings License: GPL-3.0-only URL: https://github.com/fln/addrwatch Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}.service Source2: %{name}.sysconfig %{?systemd_requires} BuildRequires: libpcap-devel, libevent-devel, systemd, mariadb-connector-c-devel, sqlite-devel, gcc BuildRequires: autoconf automake BuildRequires: make -Requires(pre): shadow-utils %description It main purpose is to monitor network and log discovered Ethernet/IP pairings. Main features of addrwatch: * IPv4 and IPv6 address monitoring @@ -31,57 +30,62 @@ Main features of addrwatch: Addrwatch is extremely useful in networks with IPv6 auto configuration (RFC4862) enabled. It allows to track IPv6 addresses of hosts using IPv6 privacy extensions (RFC4941). %prep %autosetup -p1 +# Create a sysusers.d config file +cat >addrwatch.sysusers.conf </dev/null || groupadd -r %{name} -getent passwd %{name} >/dev/null || \ - useradd -r -g %{name} -d /var/lib/%{name} -s /sbin/nologin \ - -c "network neighborhoud watch" %{name} -exit 0 %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.0.2-13 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.0.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 1.0.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild RPMAutoSpec usage detected, not changing the spec file. diff --git akmods/akmods.spec akmods/akmods.spec.tmp index e3de8229dc..6ed6a9acd8 100644 --- akmods/akmods.spec +++ akmods/akmods.spec.tmp @@ -63,17 +63,16 @@ Requires: (kernel-debug-devel-matched if kernel-debug-core) Requires: (kernel-devel-matched if kernel-core) %else Suggests: (kernel-debug-devel if kernel-debug-core) Suggests: (kernel-devel if kernel-core) %endif Suggests: (kernel-rt-devel if kernel-rt) # we create a special user that used by akmods to build kmod packages -Requires(pre): shadow-utils # systemd unit requirements. BuildRequires: systemd Requires(post): systemd Requires(preun): systemd Requires(postun): systemd # Optional but good to have on recent kernel Requires: pkgconfig(libelf) @@ -89,16 +88,21 @@ Akmods startup script will rebuild akmod packages during system boot, while its background daemon will build them for kernels right after they were installed. %prep %setup -q -c -T cp -p %{SOURCE9} %{SOURCE10} %{SOURCE15} . +# Create a sysusers.d config file +cat >akmods.sysusers.conf </dev/null || groupadd -r akmods -getent passwd akmods >/dev/null || \ -useradd -r -g akmods -d /var/cache/akmods/ -s /sbin/nologin \ - -c "User is used by akmods to build akmod packages" akmods %post %systemd_post akmods.service %systemd_post akmods@.service %systemd_post akmods-shutdown.service %preun %systemd_preun akmods.service @@ -192,12 +192,13 @@ useradd -r -g akmods -d /var/cache/akmods/ -s /sbin/nologin \ %{_presetdir}/95-akmods.preset %else %exclude %{_presetdir}/95-akmods.preset %endif %{_usrsrc}/akmods %dir %attr(-,akmods,akmods) %{_localstatedir}/cache/akmods %dir %attr(0775,root,akmods) %{_localstatedir}/log/%{name} %{_mandir}/man1/* +%{_sysusersdir}/akmods.conf %changelog %autochangelog RPMAutoSpec usage detected, not changing the spec file. diff --git amanda/amanda.spec amanda/amanda.spec.tmp index 1fa5b50956..8ce1eda249 100644 --- amanda/amanda.spec +++ amanda/amanda.spec.tmp @@ -123,16 +123,22 @@ The amanda-server package should be installed on the AMANDA server, the machine attached to the device(s) (such as a tape drive) where backups will be written. You will also need to install the amanda package on the AMANDA server machine. And, if the server is also to be backed up, the server also needs to have the amanda-client package installed. %prep %autosetup -p1 -n %{name}-tag-community-%{version} +# Create a sysusers.d config file +cat >amanda.sysusers.conf </dev/null 2>&1 || : -/usr/bin/gpasswd -a %amanda_user tape >/dev/null 2>&1 || : %post %{?ldconfig} %systemd_post amanda.socket amanda-udp.socket kamanda.socket %preun %systemd_preun amanda.socket amanda-udp.socket kamanda.socket @@ -289,16 +293,17 @@ make check %dir %{_sysconfdir}/amanda/ %dir %{_sysconfdir}/amanda/%defconfig %attr(-,%amanda_user,%amanda_group) %dir %{_localstatedir}/lib/amanda/ %attr(600,%amanda_user,%amanda_group) %config(noreplace) %{_localstatedir}/lib/amanda/.amandahosts %attr(02770,%amanda_user,%amanda_group) %dir /var/log/amanda %attr(02770,%amanda_user,%amanda_group) %dir /var/log/amanda/amandad +%{_sysusersdir}/amanda.conf %files libs %{_libdir}/libamdevice*.so %{_libdir}/libamserver*.so %{_libdir}/libamclient*.so %{_libdir}/libamanda-*.so %{_libdir}/libamanda.so %{_libdir}/libamandad*.so diff --git anyterm/anyterm.spec anyterm/anyterm.spec.tmp index cd28759bfa..3956c8d322 100644 --- anyterm/anyterm.spec +++ anyterm/anyterm.spec.tmp @@ -1,11 +1,11 @@ Name: anyterm Version: 1.2.3 -Release: 22%{?dist} +Release: 23%{?dist} Summary: A web-based terminal emulator # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: http://anyterm.org # The source for this package was pulled from upstream's vcs. Use the # following commands to generate the tarball: @@ -45,16 +45,21 @@ and from any javascript-enabled web browser in real time. %description httpd The httpd configuration necessary to proxy anyterm. %prep %setup -q %patch -P0 -p0 +# Create a sysusers.d config file +cat >anyterm.sysusers.conf < %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf d %{_localstatedir}/run/%{name} 0755 root %{name} EOF +install -m0644 -D anyterm.sysusers.conf %{buildroot}%{_sysusersdir}/anyterm.conf + %pre -# create anyterm group / user -getent group %{name} >/dev/null 2>&1 || \ - groupadd -r %{name} -getent passwd %{name} >/dev/null 2>&1 || \ - useradd -r -l -g %{name} -s /sbin/nologin \ - -d %{_localstatedir}/run/%{name} -c "Anyterm service" %{name} if [[ ! -d %{_localstatedir}/run/%{name} ]]; then mkdir -m755 %{_localstatedir}/run/%{name} chown %{name}:%{name} %{_localstatedir}/run/%{name} fi if [[ $(getent passwd %{name} | cut -d: -f6) == /dev/null ]]; then usermod -d %{_localstatedir}/run/%{name} %{name} fi exit 0 @@ -105,21 +106,25 @@ exit 0 %{_sbindir}/anytermd %{_libexecdir}/anyterm/ %{_mandir}/man1/anytermd.1.gz %{_datadir}/anyterm/ %{_unitdir}/anyterm.service %ghost %attr(0755,%{name},%{name}) %dir %{_localstatedir}/run/%{name} %{_sysconfdir}/tmpfiles.d/%{name}.conf %doc LICENSE +%{_sysusersdir}/anyterm.conf %files httpd %config(noreplace) %{_sysconfdir}/httpd/conf.d/anyterm.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.2.3-23 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.2.3-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 25 2024 Miroslav Suchý - 1.2.3-21 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 1.2.3-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git apt/apt.spec apt/apt.spec.tmp index ce185bed0e..dcb29bf99f 100644 --- apt/apt.spec +++ apt/apt.spec.tmp @@ -9,17 +9,17 @@ # Disable integration tests by default, # as there is a bunch of failures on non-Debian systems currently. # Additionally, these tests take a long time to run. %bcond_with check_integration Name: apt Version: 2.9.8 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Command-line package manager for Debian packages License: GPL-2.0-or-later URL: https://tracker.debian.org/pkg/apt Source0: https://salsa.debian.org/apt-team/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz Patch1: apt_include_cstdint.patch BuildRequires: gcc @@ -64,17 +64,16 @@ BuildRequires: gnupg, gnupg2 BuildRequires: perl(File::FcntlLock) BuildRequires: perl(Digest::SHA) BuildRequires: debhelper >= 9 # Unbreak running tests in non-interactive terminals BuildRequires: expect %endif # For ensuring the user is created -Requires(pre): shadow-utils # Apt is essentially broken without dpkg Requires: dpkg >= 1.17.14 # To ensure matching apt libs are installed Requires: %{name}-libs%{?_isa} = %{version}-%{release} # These is one optional script in apt that still requires perl, so let's make @@ -167,16 +166,21 @@ to package management with APT. questions before installation. * apt-ftparchive is used to create Packages and other index files needed to publish an archive of Debian packages * apt-sortpkgs is a Packages/Sources file normalizer. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >apt.sysusers.conf < %{buildroot}%{_sysconfdir}/logrotate.d/apt </dev/null || groupadd -r _apt -getent passwd _apt >/dev/null || \ - useradd -r -g _apt -d %{_sharedstatedir}/apt -s /sbin/nologin \ - -c "APT account for owning persistent & cache data" _apt -exit 0 %ldconfig_scriptlets libs %files -f %{name}.lang %license COPYING* %doc README.* AUTHORS %{_bindir}/apt %{_bindir}/apt-cache @@ -278,16 +278,17 @@ exit 0 %{_mandir}/*/apt-secure.* %{_mandir}/*/apt-transport-http.* %{_mandir}/*/apt-transport-https.* %{_mandir}/*/apt-transport-mirror.* %{_mandir}/*/apt_auth.* %{_mandir}/*/apt_preferences.* %{_mandir}/*/sources.list.* %doc %{_docdir}/%{name}/* +%{_sysusersdir}/apt.conf %files libs -f %{name}-libs.lang %license COPYING* %{_libdir}/libapt-pkg.so.%{libsomajor}{,.*} %{_libdir}/libapt-private.so.%{libprivsomajor}{,.*} %files doc %doc %{_docdir}/%{name}-doc @@ -310,16 +311,19 @@ exit 0 %{_mandir}/*/*/apt-ftparchive.* %{_mandir}/*/*/apt-sortpkgs.* %{_mandir}/*/apt-extracttemplates.* %{_mandir}/*/apt-ftparchive.* %{_mandir}/*/apt-sortpkgs.* %doc %{_docdir}/%{name}-utils %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.9.8-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.9.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Sep 09 2024 Packit - 2.9.8-1 - Update to version 2.9.8 - Resolves: rhbz#2283193 * Wed Jul 17 2024 Fedora Release Engineering - 2.9.2-2 diff --git asterisk/asterisk.spec asterisk/asterisk.spec.tmp index fdb91abd59..2db269d6b6 100644 --- asterisk/asterisk.spec +++ asterisk/asterisk.spec.tmp @@ -46,17 +46,17 @@ %global meetme 0 %global ooh323 0 %global makeargs DEBUG= OPTIMIZE= DESTDIR=%{buildroot} ASTVARRUNDIR=%{astvarrundir} ASTDATADIR=%{_datadir}/asterisk ASTVARLIBDIR=%{_datadir}/asterisk ASTDBDIR=%{_localstatedir}/spool/asterisk NOISY_BUILD=1 Summary: The Open Source PBX Name: asterisk Version: 18.12.1 -Release: %{?_rc||?_beta:0.}1%{?_rc:.rc%{_rc}}%{?_beta:.beta%{_beta}}%{?dist}.12 +Release: %{?_rc||?_beta:0.}1%{?_rc:.rc%{_rc}}%{?_beta:.beta%{_beta}}%{?dist}.13 # Automatically converted from old format: GPLv2 - review is highly recommended. License: GPL-2.0-only URL: http://www.asterisk.org/ Source0: http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}.tar.gz Source1: http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-%{version}%{?_rc:-rc%{_rc}}%{?_beta:-beta%{_beta}}.tar.gz.asc Source2: asterisk-logrotate Source3: menuselect.makedeps @@ -253,18 +253,16 @@ BuildRequires: jansson-devel %else Provides: bundled(jansson) = 2.11 %endif # for gpg to be able to verify the signature BuildRequires: libgcrypt BuildRequires: make -Requires(pre): %{_sbindir}/useradd -Requires(pre): %{_sbindir}/groupadd Requires(post): systemd-units Requires(post): systemd-sysv Requires(preun): systemd-units Requires(postun): systemd-units # chan_phone headers no longer in kernel headers @@ -740,16 +738,21 @@ chmod -x contrib/scripts/dbsep.cgi %if ! 0%{ooh323} %{__perl} -pi -e 's/^MENUSELECT_ADDONS=(.*)$/MENUSELECT_ADDONS=\1 chan_ooh323/g' menuselect.makeopts %endif %if ! 0%{imap} %{__perl} -pi -e 's/^MENUSELECT_APPS=(.*)$/MENUSELECT_APPS=\1 app_voicemail_imap/g' menuselect.makeopts %endif +# Create a sysusers.d config file +cat >asterisk.sysusers.conf </dev/null || : -%{_sbindir}/useradd -r -s /sbin/nologin -d /var/lib/asterisk -M \ - -c 'Asterisk User' -g asterisk asterisk &>/dev/null || : +install -m0644 -D asterisk.sysusers.conf %{buildroot}%{_sysusersdir}/asterisk.conf + %post if [ $1 -eq 1 ] ; then /bin/systemctl daemon-reload >/dev/null 2>&1 || : fi %preun @@ -1368,16 +1369,17 @@ fi %attr(0750,asterisk,asterisk) %dir %{_localstatedir}/spool/asterisk/voicemail %if %{tmpfilesd} %attr(0644,root,root) /usr/lib/tmpfiles.d/asterisk.conf %endif %attr(0755,asterisk,asterisk) %dir %{astvarrundir} %{_datarootdir}/asterisk/scripts/ +%{_sysusersdir}/asterisk.conf %files ael %attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/asterisk/extensions.ael %{_sbindir}/aelparse #%%{_sbindir}/conf2ael %{_libdir}/asterisk/modules/pbx_ael.so %{_libdir}/asterisk/modules/res_ael_share.so @@ -1690,16 +1692,19 @@ fi %files xmpp %attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/asterisk/motif.conf %attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/asterisk/xmpp.conf %{_libdir}/asterisk/modules/chan_motif.so %{_libdir}/asterisk/modules/res_xmpp.so %endif %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 18.12.1-1.13 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 18.12.1-1.12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Nov 24 2024 Zhengyu He - 18.12.1-1.11 - Do not use -m32/-m64 on riscv64 - Fix pjproject build failure on RISC-V * Tue Oct 22 2024 Richard W.M. Jones - 18.12.1-1.10 diff --git autossh/autossh.spec autossh/autossh.spec.tmp index 28f8096dd5..95f590ee82 100644 --- autossh/autossh.spec +++ autossh/autossh.spec.tmp @@ -1,36 +1,40 @@ Summary: Utility to autorestart SSH tunnels Name: autossh Version: 1.4g -Release: 17%{?dist} +Release: 18%{?dist} # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: https://www.harding.motd.ca/autossh/ Source0: https://www.harding.motd.ca/autossh/autossh-1.4g.tgz Source1: autossh@.service Source2: README.service Patch0: autossh-configure-c99.patch BuildRequires: gcc BuildRequires: /usr/bin/ssh BuildRequires: systemd BuildRequires: make %{?systemd_requires} -Requires(pre): shadow-utils Requires: /usr/bin/ssh %description autossh is a utility to start and monitor an ssh tunnel. If the tunnel dies or stops passing traffic, autossh will automatically restart it. %prep %setup -q %patch -P0 -p1 cp -p %{SOURCE2} . +# Create a sysusers.d config file +cat >autossh.sysusers.conf </dev/null || groupadd -r autossh -getent passwd autossh >/dev/null || \ - useradd -r -g autossh -d %{_sysconfdir}/autossh -s %{_sbindir}/nologin \ - -c "autossh service account" autossh -exit 0 +install -m0644 -D autossh.sysusers.conf %{buildroot}%{_sysusersdir}/autossh.conf + %post %systemd_post autossh@.service %preun # https://bugzilla.redhat.com/1996234 if [ $1 -eq 0 ] && [ -x /usr/bin/systemctl ]; then # Package removal, not upgrade @@ -75,18 +75,22 @@ fi %files %doc CHANGES README README.service %doc examples %{_bindir}/* %attr(750,autossh,autossh) %dir %{_sysconfdir}/autossh/ %{_mandir}/man1/* %{_unitdir}/* +%{_sysusersdir}/autossh.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.4g-18 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.4g-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 28 2024 Miroslav Suchý - 1.4g-16 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 1.4g-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git BackupPC/BackupPC.spec BackupPC/BackupPC.spec.tmp index f8d5846117..260027fa28 100644 --- BackupPC/BackupPC.spec +++ BackupPC/BackupPC.spec.tmp @@ -5,17 +5,17 @@ %global _with_tmpfilesd 1 %global _with_systemd 1 %endif %global _updatedb_conf /etc/updatedb.conf Name: BackupPC Version: 4.4.0 -Release: 18%{?dist} +Release: 19%{?dist} Summary: High-performance backup system # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: http://backuppc.github.io/backuppc/index.html Source0: https://github.com/backuppc/backuppc/releases/download/%{version}/%{name}-%{version}.tar.gz Source1: BackupPC.htaccess Source2: BackupPC.logrotate @@ -74,17 +74,16 @@ Requires: par2cmdline %endif Requires: rrdtool Requires: rsync-bpc >= 3.0.9.6 Requires: perl(BackupPC::XS) >= 0.53 Requires: perl-Time-modules Requires: samba-client Requires: %{_sbindir}/sendmail -Requires(pre): shadow-utils %if 0%{?_with_systemd} Requires(post): shadow-utils %{?systemd_requires} %else Requires(preun): initscripts chkconfig Requires(post): initscripts chkconfig shadow-utils Requires(postun): initscripts %endif @@ -155,16 +154,21 @@ EOF popd # attempt to unbundle as much as possible for m in Net/FTP; do rm -rf lib/$m sed -i "\@lib/$m@d" configure.pl done +# Create a sysusers.d config file +cat >backuppc.sysusers.conf < /dev/null || : %preun %if 0%{?_with_systemd} %systemd_preun backuppc.service %else if [ $1 = 0 ]; then # Package removal, not upgrade service backuppc stop > /dev/null 2>&1 || : @@ -324,19 +328,23 @@ fi %{_unitdir}/backuppc.service %else %attr(0755,root,root) %{_initrddir}/backuppc %endif %attr(4750,backuppc,apache) %{_libexecdir}/%{name}/BackupPC_Admin %attr(-,backuppc,root) %{_localstatedir}/lib/%{name}/ %{_datadir}/selinux/packages/%{name}/%{name}.pp +%{_sysusersdir}/backuppc.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 4.4.0-19 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Mon Jan 20 2025 Fedora Release Engineering - 4.4.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jan 16 2025 Fedora Release Engineering - 4.4.0-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 25 2024 Miroslav Suchý - 4.4.0-16 - convert license to SPDX diff --git bacula/bacula.spec bacula/bacula.spec.tmp index 04d430c457..dc57761060 100644 --- bacula/bacula.spec +++ bacula/bacula.spec.tmp @@ -8,17 +8,17 @@ # RHEL 10 has only Qt 6. EPEL 10 will have Qt 5 to start, but not # necessarily for its entire lifetime. %if !(0%{?rhel} >= 10 || 0%{?epel} >= 11) %bcond_without qt %endif Name: bacula Version: 15.0.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Cross platform network backup for Linux, Unix, Mac and Windows # See LICENSE for details # See https://gitlab.com/fedora/legal/fedora-license-data/-/issues/277 License: LicenseRef-Bacula URL: http://www.bacula.org # AGPL-3.0-only with exceptions Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz @@ -129,17 +129,16 @@ This package contains the SQL Bacula libraries, which are used by Director and Storage daemons. You have to select your preferred catalog library through the alternatives system. %package common Summary: Common Bacula files Provides: group(%username) = %uid Provides: user(%username) = %uid Requires: bacula-libs%{?_isa} = %{version}-%{release} -Requires(pre): shadow-utils Requires(postun): shadow-utils %description common Bacula is a set of programs that allow you to manage the backup, recovery, and verification of computer data across a network of different computers. It is based on a client/server architecture. This package contains files common to all Bacula daemons. @@ -286,16 +285,21 @@ cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} . pushd autoconf aclocal -I bacula-macros/ -I gettext-macros/ -I libtool/ popd autoconf -I autoconf/ -o configure autoconf/configure.in # Remove execution permissions from files we're packaging as docs later on find updatedb -type f | xargs chmod -x +# Create a sysusers.d config file +cat >bacula.sysusers.conf </dev/null || groupadd -g %uid -r %username &>/dev/null || : -getent passwd %username >/dev/null || useradd -u %uid -r -s /sbin/nologin \ - -d /var/spool/bacula -M -c 'Bacula Backup System' -g %username %username &>/dev/null || : -exit 0 %post common %firewalld_reload %post client %systemd_post %{name}-fd.service %preun client @@ -529,16 +530,17 @@ exit 0 %{_libexecdir}/%{name}/btraceback.dbx %{_libexecdir}/%{name}/btraceback.gdb %{_libexecdir}/%{name}/bacula_config %{_libexecdir}/%{name}/btraceback.mdb %{_mandir}/man8/btraceback.8* %{_prefix}/lib/firewalld/services/bacula-director.xml %{_prefix}/lib/firewalld/services/bacula-storage.xml %{_sbindir}/btraceback +%{_sysusersdir}/bacula.conf %files director %doc updatedb examples/sample-query.sql %config(noreplace) %{_sysconfdir}/bacula/bacula-dir.conf %attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/query.sql %attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir %{_libdir}/%{name}/ldap-dir.so %{_libexecdir}/%{name}/create_bacula_database @@ -671,16 +673,19 @@ exit 0 %{_libdir}/libbacfind.so %{_libdir}/libbacsd.so %{_libdir}/libbacsql.so %files -n nagios-plugins-bacula %{_libdir}/nagios/plugins/check_bacula %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 15.0.2-4 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 15.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 15.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 02 2024 Simone Caronni - 15.0.2-1 - Update to 15.0.2. diff --git barman/barman.spec barman/barman.spec.tmp index db4e1e3c2f..2f84c95128 100644 --- barman/barman.spec +++ barman/barman.spec.tmp @@ -1,27 +1,26 @@ Name: barman Version: 3.12.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Backup and Recovery Manager for PostgreSQL License: GPL-3.0-only URL: http://www.pgbarman.org/ BuildArch: noarch Source0: https://files.pythonhosted.org/packages/source/b/%{name}/%{name}-%{version}.tar.gz Source1: %{name}.cron Source2: %{name}.logrotate BuildRequires: python3-devel BuildRequires: python3-setuptools # https://docs.fedoraproject.org/en-US/packaging-guidelines/CronFiles/#_cron_job_files_packaging: Requires: cronie Requires: logrotate -Requires(pre): shadow-utils Requires: rsync >= 3.0.4 Requires: %{py3_dist argcomplete} Requires: %{py3_dist barman} %description Barman (Backup and Recovery Manager) is an open-source administration tool for disaster recovery of PostgreSQL servers written in Python. @@ -47,16 +46,21 @@ Python libraries used by Barman. %autosetup # Change shebang in all relevant executable files in this directory and all subdirectories find -type f -executable -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' {} + %generate_buildrequires %pyproject_buildrequires +# Create a sysusers.d config file +cat >barman.sysusers.conf </dev/null || groupadd -r %{name} -getent passwd %{name} >/dev/null || \ - useradd -r -g %{name} -d %{_sharedstatedir}/%{name} -s /bin/bash \ - -c "Backup and Recovery Manager for PostgreSQL" %{name} -exit 0 %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 3.12.1-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 3.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Dec 27 2024 Simone Caronni - 3.12.1-1 - Update to 3.12.1. - Switch to Python packaging guidelines. - Trim changelog. diff --git beanstalkd/beanstalkd.spec beanstalkd/beanstalkd.spec.tmp index b2bec7eb2a..5d00b14194 100644 --- beanstalkd/beanstalkd.spec +++ beanstalkd/beanstalkd.spec.tmp @@ -2,46 +2,51 @@ %define beanstalkd_user beanstalkd %define beanstalkd_group %{beanstalkd_user} %define beanstalkd_home %{_localstatedir}/lib/beanstalkd %define beanstalkd_binlogdir %{beanstalkd_home}/binlog Name: beanstalkd Version: 1.10 -Release: 24%{?dist} +Release: 25%{?dist} Summary: A simple, fast work-queue service License: MIT URL: http://kr.github.io/%{name}/ Source0: https://github.com/kr/%{name}/archive/v%{version}.tar.gz Source1: %{name}.service Source2: %{name}.sysconfig Patch1: beanstalkd-1.10-warnings.patch Patch2: beanstalkd-1.10-mkdtemp.patch BuildRequires: systemd gcc gcc-c++ BuildRequires: make -Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description beanstalkd is a simple, fast work-queue service. Its interface is generic, but was originally designed for reducing the latency of page views in high-volume web applications by running most time-consuming tasks asynchronously. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >beanstalkd.sysusers.conf </dev/null || groupadd -r %{beanstalkd_group} -getent passwd %{beanstalkd_user} >/dev/null || \ - useradd -r -g %{beanstalkd_user} -d %{beanstalkd_home} -s /sbin/nologin \ - -c "beanstalkd user" %{beanstalkd_user} -exit 0 %post # make the binlog dir after installation, this is so SELinux does not complain # about the init script creating the binlog directory # See RhBug 558310 if [ -d %{beanstalkd_home} ]; then %{__install} -d %{beanstalkd_binlogdir} -m 0755 \ @@ -88,19 +89,23 @@ fi %doc README doc/protocol.txt %license LICENSE %{_unitdir}/%{name}.service %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %attr(0755,%{beanstalkd_user},%{beanstalkd_group}) %dir %{beanstalkd_home} %ghost %attr(0755,%{beanstalkd_user},%{beanstalkd_group}) %dir %{beanstalkd_binlogdir} +%{_sysusersdir}/beanstalkd.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.10-25 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.10-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 1.10-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jan 23 2024 Fedora Release Engineering - 1.10-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild RPMAutoSpec usage detected, not changing the spec file. diff --git beep/beep.spec beep/beep.spec.tmp index 8c040d1bcc..84ce4914f5 100644 --- beep/beep.spec +++ beep/beep.spec.tmp @@ -56,17 +56,16 @@ BuildRequires: make # While the kernel supports more speaker drivers, the only hardware # platforms with a speaker driver supported by Fedora use pcspkr.ko # (PCSPKR_PLATFORM in the kernel config). # # Recommends: kmod(pcspkr.ko) # Recommends: (kernel-modules-extras if kernel-modules) # Recommends: (kernel-debug-modules-extras if kernel-debug-modules) -Requires(pre): shadow-utils # /etc/modprobe.d/ Requires: kmod # /etc/udev/rules.d/ and /usr/lib/udev/rules.d/ %{?el7:Requires: systemd} %{!?el7:Requires: systemd-udev} @@ -79,16 +78,21 @@ of use is within scripts, notifying the user when something interesting occurs. Of course, it has no notion of what is interesting, but it is really good at the notifying part. %prep %setup -q sed -i 's|^\.\\" \(\.BR .*\)README.Distro\(.*\)|\1README.fedora\2|' beep.1.in && : #" +# Create a sysusers.d config file +cat >beep.sysusers.conf <local.mk</dev/null || groupadd -r beep -exit 0 %files %license %{_pkgdocdir}/COPYING %doc %{_pkgdocdir}/CREDITS.md %doc %{_pkgdocdir}/NEWS.md %doc %{_pkgdocdir}/PERMISSIONS.md %doc %{_pkgdocdir}/README.fedora @@ -141,12 +144,13 @@ exit 0 %doc %{_pkgdocdir}/contrib/morse2beep.pl %doc %{_pkgdocdir}/contrib/morse2beep.sed %doc %{_pkgdocdir}/contrib/success-beeps %{_bindir}/beep %{_mandir}/man1/beep.1* %config(noreplace) %{_sysconfdir}/modprobe.d/beep.conf %{_udevrulesdir}/70-pcspkr-beep.rules %{_udevrulesdir}/90-pcspkr-beep.rules +%{_sysusersdir}/beep.conf %changelog %autochangelog diff --git bitcoin-core/bitcoin-core.spec bitcoin-core/bitcoin-core.spec.tmp index 112cc02d2b..311ab6a727 100644 --- bitcoin-core/bitcoin-core.spec +++ bitcoin-core/bitcoin-core.spec.tmp @@ -1,17 +1,17 @@ %define _hardened_build 1 %global _compldir %{_datadir}/bash-completion/completions %global project_name bitcoin %bcond_with extended_tests Name: bitcoin-core Version: 28.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Peer to Peer Cryptographic Currency License: MIT URL: https://bitcoincore.org/ # In .gitignore, so no chance to commit to SCM: Source0: https://bitcoincore.org/bin/bitcoin-core-%{version}/%{project_name}-%{version}.tar.gz Source1: https://bitcoincore.org/bin/bitcoin-core-%{version}/SHA256SUMS.asc Source2: https://bitcoincore.org/bin/bitcoin-core-%{version}/SHA256SUMS @@ -120,17 +120,16 @@ out collectively by the network. This package provides bitcoin-cli, a utility to communicate with and control a Bitcoin server via its RPC protocol, and bitcoin-tx, a utility to create custom Bitcoin transactions. %package server Summary: Peer-to-peer digital currency Conflicts: bitcoin-server -Requires(pre): shadow-utils Requires: (%{name}-selinux if selinux-policy) Provides: bundled(leveldb) = 1.22.0 Provides: bundled(libdb) = 4.8.30.NC Provides: bundled(secp256k1) = 0.1 Provides: bundled(univalue) = 1.1.3 %description server This package provides a stand-alone bitcoin-core daemon. For most users, this @@ -164,16 +163,21 @@ patch -d db4 -p1 -i %{SOURCE16} patch -d db4 -p1 -i %{SOURCE17} # Avoid any modification timestamp based regeneration of the configure # script due to patching above: touch -r db4/dist/configure db4/dist/configure.ac db4/dist/aclocal/*.m4 # Documentation (sources can not be directly reference with doc) cp -p %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} . +# Create a sysusers.d config file +cat >bitcoin-core.sysusers.conf </dev/null || groupadd -r %{project_name} -getent passwd %{project_name} >/dev/null || - useradd -r -g %{project_name} -d /var/lib/%{project_name} -s /sbin/nologin \ - -c "Bitcoin wallet server" %{project_name} -exit 0 %post server %systemd_post %{project_name}.service %preun server %systemd_preun %{project_name}.service %postun server @@ -315,18 +315,22 @@ exit 0 %ghost %{_rundir}/%{project_name}.pid %config(noreplace) %attr(644,root,root) %{_sysconfdir}/sysconfig/%{project_name} %{_compldir}/%{project_name}d %{_mandir}/man1/%{project_name}d.1* %{_sbindir}/%{project_name}d %{_tmpfilesdir}/%{project_name}.conf %{_unitdir}/%{project_name}.service %{_userunitdir}/%{project_name}.service +%{_sysusersdir}/bitcoin-core.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 28.1-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 28.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Jan 11 2025 Simone Caronni - 28.1-1 - Update to 28.1. * Sat Jan 11 2025 Simone Caronni - 28.0-4 - Enable Statically Defined Tracing (USDT). diff --git boinc-client/boinc-client.spec boinc-client/boinc-client.spec.tmp index d76ee881ff..a64667b680 100644 --- boinc-client/boinc-client.spec +++ boinc-client/boinc-client.spec.tmp @@ -13,17 +13,17 @@ # # Do not move the %%global foo block of code in the upper part of the spec # file, otherwise it will not work because it will try to read macros not # yet defined like %%{version} Summary: The BOINC client Name: boinc-client Version: 8.0.2 -Release: 2%{?dist} +Release: 3%{?dist} # Automatically converted from old format: LGPLv2+ - review is highly recommended. License: LicenseRef-Callaway-LGPLv2+ URL: http://boinc.berkeley.edu/ %global major_version %(v=%{version}; echo ${v:0:3}) %global commit c0b8b6fd37687aa1b93102129a054837b84cc032 %global gittag client_release/%{major_version}/%{version} # gittag_custom is needed in %%setup process because tar.gz unpacks a folder @@ -54,17 +54,16 @@ Patch1: disable_idle_time_detection.patch # and unmerged later #Patch4: manager_exit_menu_entry_removal.patch Requires: logrotate Requires(post): systemd Requires(preun): systemd Requires(postun): systemd -Requires(pre): shadow-utils BuildRequires: curl-devel %if 0%{?el7} BuildRequires: devtoolset-7-toolchain BuildRequires: devtoolset-7-libatomic-devel %endif BuildRequires: freeglut-devel BuildRequires: gcc-c++ @@ -170,16 +169,21 @@ for file in $(ls | grep checkin_notes_20); do mv ${file}.utf8 ${file} done # Fix file permissions for file in $(ls clientgui | grep .cpp$ ) $(ls clientgui | grep .h$ ); do chmod 644 clientgui/${file} done +# Create a sysusers.d config file +cat >boinc-client.sysusers.conf </dev/null || groupadd -r boinc -getent passwd boinc >/dev/null || \ -useradd -r -g boinc -d %{_localstatedir}/lib/boinc -s /sbin/nologin \ - -c "BOINC client account." boinc -exit 0 %post %{?ldconfig} %systemd_post boinc-client.service %preun %systemd_preun boinc-client.service @@ -305,16 +303,17 @@ fi %{_mandir}/man1/boinccmd.1.gz %{_mandir}/man1/boinc.1.gz %{_libdir}/*.so.* %config(noreplace) %{_sysconfdir}/logrotate.d/boinc-client %config(noreplace) %{_sysconfdir}/bash_completion.d/boinc-client %attr(-,boinc,boinc) %{_localstatedir}/lib/boinc/ %{_sysconfdir}/X11/Xsession.d/36x11-common_xhost-boinc %{_sysconfdir}/boinc-client/config.properties +%{_sysusersdir}/boinc-client.conf %files doc %doc checkin_notes checkin_notes_* %files -n boinc-manager -f BOINC-Manager.lang %{_bindir}/boincmgr %{_bindir}/boincscr @@ -340,16 +339,19 @@ fi %{_includedir}/boinc %{_libdir}/pkgconfig/libboinc.pc %{_libdir}/pkgconfig/libboinc_api.pc %{_libdir}/pkgconfig/libboinc_crypt.pc %{_libdir}/pkgconfig/libboinc_graphics2.pc %{_libdir}/pkgconfig/libboinc_opencl.pc %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 8.0.2-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 8.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jan 10 2025 Germano Massullo - 8.0.2-1 - 8.0.2 release - Erased obsolete patches * Sun Jan 05 2025 Benjamin A. Beasley - 7.20.2-12 diff --git buildbot/buildbot.spec buildbot/buildbot.spec.tmp index c3bfff4f8e..dd93326122 100644 --- buildbot/buildbot.spec +++ buildbot/buildbot.spec.tmp @@ -16,17 +16,17 @@ # Required client packages don't exist in RHEL or EPEL %bcond_with openstack %else %bcond_without openstack %endif Name: buildbot Version: 4.2.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Build/test automation system License: GPL-2.0-only URL: https://buildbot.net Source0: %{pypi_source buildbot} Source1: %{pypi_source buildbot_worker} Source2: %{pypi_source buildbot_www} Source3: %{pypi_source buildbot_waterfall_view} @@ -117,38 +117,31 @@ inconvenienced by the failure. %files # Empty because metapackage # --------------------------------------------------------------------- %package master Summary: Build/test automation system master -Requires(pre): shadow-utils Recommends: %{name}-www = %{version}-%{release} %if ! %{with docs} Obsoletes: %{name}-doc < %{version}-%{release} %endif %description master The BuildBot is a system to automate the compile/test cycle required by most software projects to validate code changes. By automatically rebuilding and testing the tree each time something has changed, build problems are pinpointed quickly, before other developers are inconvenienced by the failure. This package contains only the buildmaster implementation. The buildbot-worker package contains the buildworker. -%pre master -getent group buildbot-master >/dev/null || groupadd -r buildbot-master -getent passwd buildbot-master >/dev/null || \ - useradd -r -g buildbot-master -d %{_sharedstatedir}/buildbot/master -s /sbin/nologin \ - -c "Service account for the Buildbot master" buildbot-master -exit 0 %post master for master in $(systemctl list-units 'buildbot-master@*.service' --all --plain --no-legend | cut -d '@' -f 2 | cut -d '.' -f 1); do systemctl stop buildbot-master@"$master".service su - buildbot-master -s /bin/bash -c "buildbot upgrade-master /var/lib/buildbot/master/$master" systemctl start buildbot-master@"$master".service done @@ -159,16 +152,17 @@ done %{_mandir}/man1/buildbot.1* %{python3_sitelib}/buildbot/ %{python3_sitelib}/buildbot-*egg-info/ %dir %{_sharedstatedir}/buildbot %dir %attr(-, buildbot-master, buildbot-master) %{_sharedstatedir}/buildbot/master %{_unitdir}/buildbot-master@.service # --------------------------------------------------------------------- +%{_sysusersdir}/buildbot.conf %if %{with ec2} %package master-ec2 Summary: Build/test automation system master -- AWS EC2 support Requires: %{name}-master = %{version}-%{release} Requires: python%{python3_version}dist(boto3) %description master-ec2 @@ -250,17 +244,16 @@ worker support. %files master-openstack # Empty because metapackage %endif # --------------------------------------------------------------------- %package worker Summary: Build/test automation system worker -Requires(pre): shadow-utils %if ! %{with docs} Obsoletes: %{name}-doc < %{version}-%{release} %endif %description worker This package contains only the buildworker implementation. The buildbot-master package contains the buildmaster. @@ -326,16 +319,21 @@ Summary: Buildbot documentation # --------------------------------------------------------------------- %prep %setup -q -b0 -b1 -b2 -b3 -b4 -b5 -b6 -b7 -b8 cd .. cd buildbot_worker-%{version} +# Create a sysusers.d config file +cat >buildbot.sysusers.conf < - 4.2.1-4 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 4.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jan 15 2025 Zbigniew Jędrzejewski-Szmek - 4.2.1-2 - Rebuilt to drop hard requires on groups (rhbz#2338295) * Mon Jan 13 2025 Gwyn Ciesla - 4.2.1-1 - 4.2.1 diff --git calypso/calypso.spec calypso/calypso.spec.tmp index 18106bfc7a..aea70b64d9 100644 --- calypso/calypso.spec +++ calypso/calypso.spec.tmp @@ -1,17 +1,17 @@ %global commit 7317d88263fb9658cd7f1174c6bbcfb0a7ae856a %global shortcommit %%(c=%{commit}; echo ${c:0:7}) %global date 20190429 %bcond_without check Name: calypso Version: 2.0 -Release: 0.18.%{date}git%{shortcommit}%{?dist} +Release: 0.19.%{date}git%{shortcommit}%{?dist} Summary: Free and open-source CalDAV calendar server # Automatically converted from old format: GPLv3+ - review is highly recommended. License: GPL-3.0-or-later URL: https://keithp.com/blogs/calypso/ Source0: %{name}-%{commit}.tar.xz Source1: %{name}-mktarball.sh Source2: %{name}.config Source3: %{name}.pam @@ -23,17 +23,16 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-iniparse BuildRequires: python3-vobject BuildRequires: systemd-rpm-macros %if %{with check} BuildRequires: git-core BuildRequires: python3-pytest %endif -Requires(pre): shadow-utils Requires(post): git-core Requires: git-core Requires: python3-lockfile Recommends: python3-kerberos Recommends: python3-PyPAM BuildArch: noarch %description @@ -43,38 +42,39 @@ patches to Radicale but was eventually split off as a separate project. * Uses vObject for parsing and generating the data files * Stores one event/contact per file * Uses git to retain a history of the database %prep %setup -q -n %{name}-%{commit} %patch -P0 -p1 -b .daemon +# Create a sysusers.d config file +cat >calypso.sysusers.conf </dev/null || groupadd -r calypso -getent passwd calypso >/dev/null || \ - useradd -r -g calypso -d %{_sharedstatedir}/calypso -s /sbin/nologin \ - -c "CalDAV/CardDAV server with git storage" calypso -exit 0 %preun %systemd_preun calypso.service %post %systemd_post calypso.service if [ $1 -eq 1 ] && ! [ -d %{_sharedstatedir}/calypso/default ]; then mkdir -p %{_sharedstatedir}/calypso/default @@ -98,18 +98,22 @@ fi %config(noreplace) %{_sysconfdir}/calypso/config %config(noreplace) %{_sysconfdir}/pam.d/calypso %{_bindir}/calypso %{_mandir}/man1/calypso.1* %{_unitdir}/calypso.service %{python3_sitelib}/calypso-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/calypso %dir %attr(0750,calypso,calypso) %{_sharedstatedir}/calypso +%{_sysusersdir}/calypso.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.0-0.19.20190429git7317d88 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.0-0.18.20190429git7317d88 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 25 2024 Miroslav Suchý - 2.0-0.17.20190429git7317d88 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 2.0-0.16.20190429git7317d88 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git ccache/ccache.spec ccache/ccache.spec.tmp index 32d2ac781b..96188cefee 100644 --- ccache/ccache.spec +++ ccache/ccache.spec.tmp @@ -8,17 +8,17 @@ %endif %endif %define abs2rel() perl -MFile::Spec -e 'print File::Spec->abs2rel(@ARGV)' %1 %2 %global relccache %(%abs2rel %{_bindir}/ccache %{_libdir}/ccache) Name: ccache Version: 4.10.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: C/C++ compiler cache # See LICENSE.adoc for licenses of bundled codes # blake3 is Apache-2.0 # span.hpp is BSL-1.0 # url.cpp/hpp is MIT License: GPL-3.0-or-later AND Apache-2.0 AND BSL-1.0 AND MIT URL: http://ccache.dev/ @@ -38,17 +38,16 @@ BuildRequires: hiredis-devel BuildRequires: libzstd-devel BuildRequires: perl perl(File::Spec) BuildRequires: xxhash-devel # clang for additional tests BuildRequires: clang clang-tools-extra # coreutils for triggerin, triggerpostun Requires: coreutils # For groupadd -Requires(pre): shadow-utils Provides: bundled(blake3) = 1.5.1 Provides: bundled(span-lite) = 0.11.0 Provides: bundled(cxxurl) %description ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching previous compiles and detecting when the same compile is being done again. The main focus is to handle the GNU C/C++ compiler @@ -60,16 +59,21 @@ being done again. The main focus is to handle the GNU C/C++ compiler %autopatch -p1 # win32-compat gets imported, but not used rm -r src/third_party/{[ad-lo-tvy-z]*,cpp-httplib} sed -e 's|@LIBDIR@|%{_libdir}|g' -e 's|@CACHEDIR@|%{_var}/cache/ccache|g' \ %{SOURCE1} > %{name}.sh sed -e 's|@LIBDIR@|%{_libdir}|g' -e 's|@CACHEDIR@|%{_var}/cache/ccache|g' \ %{SOURCE2} > %{name}.csh +# Create a sysusers.d config file +cat >ccache.sysusers.conf < %{name}-%{version}.compilers +install -m0644 -D ccache.sysusers.conf %{buildroot}%{_sysusersdir}/ccache.conf + %check %ctest %define ccache_trigger(p:) \ %triggerin -- %{-p*}\ for n in %* ; do\ @@ -212,31 +218,33 @@ done\ %ccache_trigger -p gcc-c++-sparc64-linux-gnu sparc64-linux-gnu-c++ sparc64-linux-gnu-g++ %ccache_trigger -p gcc-tile-linux-gnu tile-linux-gnu-gcc %ccache_trigger -p gcc-c++-tile-linux-gnu tile-linux-gnu-c++ tile-linux-gnu-g++ %ccache_trigger -p gcc-x86_64-linux-gnu x86_64-linux-gnu-gcc %ccache_trigger -p gcc-c++-x86_64-linux-gnu x86_64-linux-gnu-c++ x86_64-linux-gnu-g++ %ccache_trigger -p gcc-xtensa-linux-gnu xtensa-linux-gnu-gcc %ccache_trigger -p gcc-c++-xtensa-linux-gnu xtensa-linux-gnu-c++ xtensa-linux-gnu-g++ -%pre -getent group ccache >/dev/null || groupadd -r ccache || : %files -f %{name}-%{version}.compilers %license GPL-3.0.txt LICENSE.* %doc doc/AUTHORS.* doc/MANUAL.* doc/NEWS.* README.md %config(noreplace) %{_sysconfdir}/profile.d/%{name}.*sh %{_bindir}/ccache %dir %{_libdir}/ccache/ %attr(2770,root,ccache) %dir %{_var}/cache/ccache/ %{_mandir}/man1/ccache.1* +%{_sysusersdir}/ccache.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 4.10.2-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 4.10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 31 2024 Orion Poplawski - 4.10.2-1 - Update to 4.10.2 * Fri Jul 26 2024 Kefu Chai - 4.10.1-3 - Rebuilt for fmt 11 diff --git chromium/chromium.spec chromium/chromium.spec.tmp index d36dcb2c95..cd6808ad7e 100644 --- chromium/chromium.spec +++ chromium/chromium.spec.tmp @@ -272,17 +272,17 @@ %else %global default_client_id %nil %global default_client_secret %nil %global chromoting_client_id %nil %endif Name: chromium%{chromium_channel} Version: 132.0.6834.110 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A WebKit (Blink) powered web browser that Google doesn't want you to use Url: http://www.chromium.org/Home License: BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only) # Use /etc/chromium for initial_prefs Patch1: chromium-115-initial_prefs-etc-path.patch # Try to load widevine from other places @@ -938,17 +938,16 @@ Provides: chrome-remote-desktop = %{version}-%{release} Obsoletes: chrome-remote-desktop <= 81.0.4044.138 %endif %description common %{summary}. %if %{build_remoting} %package -n chrome-remote-desktop -Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Requires: xorg-x11-server-Xvfb Requires: python3-psutil Requires: chromium-common%{_isa} = %{version}-%{release} Summary: Remote desktop support for google-chrome & chromium @@ -1185,16 +1184,21 @@ cp -a %{_includedir}/libusb-1.0/libusb.h third_party/libusb/src/libusb/libusb.h # Hard code extra version sed -i 's/getenv("CHROME_VERSION_EXTRA")/"Fedora Project"/' chrome/common/channel_info_posix.cc # Fix hardcoded path in remoting code sed -i 's|/opt/google/chrome-remote-desktop|%{crd_path}|g' remoting/host/setup/daemon_controller_delegate_linux.cc # bz#2265957, add correct platform sed -i "s/Linux x86_64/Linux %{_arch}/" content/common/user_agent.cc + +# Create a sysusers.d config file +cat >chromium.sysusers.conf </dev/null || : semanage fcontext -a -t bin_t /usr/lib/%{chromium_browser_channel}/%{chromium_browser_channel}.sh &>/dev/null || : semanage fcontext -a -t chrome_sandbox_exec_t /usr/lib/chrome-sandbox &>/dev/null || : restorecon -R -v %{chromium_path}/%{chromium_browser_channel} &>/dev/null || : @@ -1753,18 +1759,16 @@ fi path = "/etc/opt/chrome/native-messaging-hosts" st = posix.stat(path) if st and st.type == "link" then os.remove(path) end %endif %if %{build_remoting} -%pre -n chrome-remote-desktop -getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-desktop %post -n chrome-remote-desktop %systemd_post chrome-remote-desktop@.service %preun -n chrome-remote-desktop %systemd_preun chrome-remote-desktop@.service %postun -n chrome-remote-desktop @@ -1904,26 +1908,30 @@ getent group chrome-remote-desktop >/dev/null || groupadd -r chrome-remote-deskt %{_sysconfdir}/chromium/native-messaging-hosts/* %{_sysconfdir}/opt/chrome/ %{crd_path}/remoting_locales/ %{crd_path}/start-host %{crd_path}/user-session %{_unitdir}/chrome-remote-desktop@.service /var/lib/chrome-remote-desktop/ %endif +%{_sysusersdir}/chromium.conf %if %{build_chromedriver} %files -n chromedriver %doc AUTHORS %license LICENSE %{_bindir}/chromedriver %{chromium_path}/chromedriver %endif %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 132.0.6834.110-2 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 23 2025 Than Ngo - 132.0.6834.110-1 - Update to 132.0.6834.110 * High CVE-2025-0611: Object corruption in V8 * High CVE-2025-0612: Out of bounds memory access in V8 * Thu Jan 16 2025 Fedora Release Engineering - 132.0.6834.83-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git c-icap/c-icap.spec c-icap/c-icap.spec.tmp index 0afae97970..2141eeb475 100644 --- c-icap/c-icap.spec +++ c-icap/c-icap.spec.tmp @@ -1,13 +1,13 @@ %global full_version C_ICAP_%{version} Name: c-icap Version: 0.6.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: An implementation of an ICAP server License: LGPL-2.1-or-later and GPL-2.0-or-later URL: http://%{name}.sourceforge.net/ Source0: https://github.com/%{name}/%{name}-server/archive/%{full_version}.tar.gz#/%{name}-%{version}.tar.gz Source1: %{name}.logrotate Source3: %{name}.tmpfiles.conf Source4: %{name}.service @@ -31,17 +31,16 @@ BuildRequires: lmdb-devel BuildRequires: make BuildRequires: openldap-devel BuildRequires: openssl-devel BuildRequires: pcre2-devel BuildRequires: systemd-rpm-macros BuildRequires: zlib-devel Requires: logrotate -Requires(pre): shadow-utils %description C-icap is an implementation of an ICAP server. It can be used with HTTP proxies that support the ICAP protocol to implement content adaptation and filtering services. Most of the commercial HTTP proxies must support the ICAP protocol, the open source Squid 3.x proxy server supports it too. %package devel @@ -62,16 +61,21 @@ utilities. %prep %autosetup -p1 -n c-icap-server-%{full_version} # See RECONF echo "master-%{full_version}" > VERSION.m4 autoreconf -vif +# Create a sysusers.d config file +cat >c-icap.sysusers.conf </dev/null || groupadd -r %{name} -getent passwd %{name} >/dev/null || - useradd -r -g %{name} -d /run/%{name} -s /sbin/nologin \ - -c "C-ICAP Service user" %{name} -exit 0 +install -m0644 -D c-icap.sysusers.conf %{buildroot}%{_sysusersdir}/c-icap.conf + %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service @@ -174,30 +174,34 @@ exit 0 %{_mandir}/man8/%{name}-client.8* # Removed as BDB support is not enabled: %exclude %{_mandir}/man8/%{name}-mkbdb.8* %{_mandir}/man8/%{name}-mklmdb.8* %{_mandir}/man8/%{name}-stretch.8* %{_tmpfilesdir}/%{name}.conf %{_unitdir}/%{name}.service %attr(750,%{name},%{name}) %dir %{_localstatedir}/log/%{name} +%{_sysusersdir}/c-icap.conf %files devel %{_bindir}/%{name}-config %{_bindir}/%{name}-libicapapi-config %{_includedir}/c_icap %{_libdir}/libicapapi.so %{_mandir}/man8/%{name}-config.8* %{_mandir}/man8/%{name}-libicapapi-config.8* %files libs %license COPYING %{_libdir}/libicapapi.so.* %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.6.2-4 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 0.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 0.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jan 29 2024 Frank Crawford - 0.6.2-1 - Update to 0.6.2 release. diff --git cjdns/cjdns.spec cjdns/cjdns.spec.tmp index 2f7368785c..cdecde1908 100644 --- cjdns/cjdns.spec +++ cjdns/cjdns.spec.tmp @@ -67,17 +67,17 @@ %global with_admin 0 %{!?__restorecon: %global __restorecon /sbin/restorecon} Name: cjdns # major version is cjdns protocol version: Version: 21.1 -Release: 19%{?dist} +Release: 20%{?dist} Summary: The privacy-friendly network without borders # cjdns is all GPLv3 except libuv which is MIT and BSD and ISC # cnacl is unused except when use_embedded is true # Automatically converted from old format: GPLv3 and MIT and BSD and ISC - review is highly recommended. License: GPL-3.0-only AND LicenseRef-Callaway-MIT AND LicenseRef-Callaway-BSD AND ISC URL: http://hyperboria.net/ Source0: https://github.com/cjdelisle/cjdns/archive/%{name}-v%{version}.tar.gz Source1: cjdns.README_Fedora.md @@ -159,17 +159,16 @@ BuildRequires: %{nacl_name}-devel >= %{nacl_version} %if %{use_systemd} # systemd macros are not defined unless systemd is present BuildRequires: systemd Requires: systemd Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %endif -Requires(pre): shadow-utils %if 0%{use_libuv} BuildRequires: libuv-devel %else BuildRequires: gyp Provides: bundled(libuv) = 0.11.19 %endif @@ -394,16 +393,21 @@ cd - %if %{with python3} tar xvfz %{SOURCE4} mv python-cjdns-* python-cjdns %endif # FIXME: grep Version_CURRENT_PROTOCOL util/version/Version.h and # check that it matches major %%{version} +# Create a sysusers.d config file +cat >cjdns.sysusers.conf < /dev/null || groupadd -r cjdns -getent passwd cjdns > /dev/null || /usr/sbin/useradd -g cjdns \ - -c "End to end encrypted IPv6 mesh" \ - -r -d %{_libexecdir}/cjdns -s /sbin/nologin cjdns -exit 0 - %if %{use_systemd} %post %systemd_post cjdns.service %postun %systemd_postun_with_restart cjdns.service @@ -726,16 +727,19 @@ fi %{_libexecdir}/cjdns/python/drawgraph %{_libexecdir}/cjdns/python/dumpgraph %{_libexecdir}/cjdns/python/graphStats %{_bindir}/drawgraph %{_bindir}/dumpgraph %{_bindir}/graphStats %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 21.1-20 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 21.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 28 2024 Miroslav Suchý - 21.1-18 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 21.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git clamsmtp/clamsmtp.spec clamsmtp/clamsmtp.spec.tmp index 9712704f5e..d16364f01e 100644 --- clamsmtp/clamsmtp.spec +++ clamsmtp/clamsmtp.spec.tmp @@ -1,12 +1,12 @@ Summary: A SMTP virus scanning system Name: clamsmtp Version: 1.10 -Release: 46%{?dist} +Release: 47%{?dist} # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: http://memberwebs.com/stef/software/clamsmtp/ Source0: http://thewalter.net/stef/software/clamsmtp/clamsmtp-%{version}.tar.gz Source1: clamsmtpd.service Source2: clamsmtpd.conf Source5: clamsmtp-clamd.logrotate @@ -17,17 +17,16 @@ Source8: clamsmtp-tmpfile.conf Patch0: clamsmtp-man.patch Patch1: clamsmtp-readme.patch Patch2: clamsmtp-include_order.patch Patch3: clamsmtp-autoconf-c99.patch BuildRequires: clamav-devel gcc gcc-c++ systemd BuildRequires: make autoconf automake -Requires(pre): shadow-utils Requires(preun): systemd Requires(post): systemd Requires: clamd %description ClamSMTP is an SMTP filter that allows you to check for viruses using the ClamAV anti-virus software. It accepts @@ -49,16 +48,21 @@ SMTP traffic at the router. %prep %setup -q %patch 0 -p0 -b .man %patch 1 -p0 -b .readme %patch 2 -p1 -b .include_order %patch 3 -p1 -b .autoconf-c99 +# Create a sysusers.d config file +cat >clamsmtp.sysusers.conf </dev/null || useradd -r -g mail -d %{_var}/lib/clamd.clamsmtp -s /sbin/nologin -c 'User to own clamsmtp directories and default processes' clamsmtp -exit 0 %files %license COPYING %doc AUTHORS README %{_unitdir}/clamsmtpd.service %{_unitdir}/clamsmtp-clamd.service %config(noreplace) %{_sysconfdir}/logrotate.d/clamsmtp %config(noreplace) %{_sysconfdir}/clamsmtpd.conf @@ -101,18 +104,22 @@ exit 0 %{_prefix}/lib/tmpfiles.d/clamsmtp.conf %dir %attr(755,clamsmtp,mail) %{_localstatedir}/run/clamd.clamsmtp %dir %attr(755,clamsmtp,mail) %{_localstatedir}/run/clamsmtpd %attr(755,root,root) %{_sbindir}/clamsmtpd %attr(755,clamsmtp,mail) %{_var}/lib/clamd.clamsmtp %attr(755,clamsmtp,mail) %{_var}/log/clamd.clamsmtp %{_mandir}/man5/clamsmtpd.conf.5.gz %{_mandir}/man8/clamsmtpd.8.gz +%{_sysusersdir}/clamsmtp.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.10-47 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.10-46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 28 2024 Miroslav Suchý - 1.10-45 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 1.10-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git cleanfeed/cleanfeed.spec cleanfeed/cleanfeed.spec.tmp index 4beb78ad55..dc49082830 100644 --- cleanfeed/cleanfeed.spec +++ cleanfeed/cleanfeed.spec.tmp @@ -1,22 +1,21 @@ Summary: A spam filter for Usenet news servers Name: cleanfeed Version: 20020501 -Release: 34%{?dist} +Release: 35%{?dist} # Confirmed with upstream, website License: Artistic-2.0 URL: http://www.bofh.it/~md/cleanfeed/ Source0: http://www.bofh.it/~md/cleanfeed/cleanfeed-20020501.tgz Patch0: cleanfeed-20020501-redhat.patch Patch1: cleanfeed-20020501-ro.patch BuildArch: noarch BuildRequires: perl-generators BuildRequires: sed -Requires(pre): shadow-utils %description Cleanfeed is an automatic spam filter for Usenet news servers and routers (INN, Cyclone, Typhoon, Breeze and NNTPRelay). Cleanfeed looks for duplicated messages, repeated patterns, and known spamming sites and domains. It can be configured to block binary posts to non-binary newsgroups, to cancel already-rejected articles, and to reject some spamming from local users. @@ -24,43 +23,48 @@ reject some spamming from local users. Install the cleanfeed package if you need a spam filter for a Usenet news server. %prep %setup -q %patch -P0 -p1 -b .rh %patch -P1 -p1 +# Create a sysusers.d config file +cat >cleanfeed.sysusers.conf < filter_innd.pl %pre -getent group news >/dev/null || groupadd -r news -getent passwd news >/dev/null || \ - useradd -r -g news -d %{_sysconfdir}/news -s /sbin/nologin \ - -c "cleanfeed user" news -exit 0 - %install mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/news mkdir -p $RPM_BUILD_ROOT/%{_datadir}/news/bin/filter install -m 0644 cleanfeed.local.sample $RPM_BUILD_ROOT/%{_sysconfdir}/news/cleanfeed.local install -m 0644 bad_* $RPM_BUILD_ROOT/%{_sysconfdir}/news/ install -m 0755 filter_innd.pl \ $RPM_BUILD_ROOT/%{_datadir}/news/bin/filter/filter_innd.pl +install -m0644 -D cleanfeed.sysusers.conf %{buildroot}%{_sysusersdir}/cleanfeed.conf + %files %license LICENSE %doc CHANGES README HACKING TODO %attr(-,news,news) %config(noreplace) %{_sysconfdir}/news/cleanfeed.local %attr(-,news,news) %config(noreplace) %{_sysconfdir}/news/bad_* %attr(755,news,news) %dir %{_datadir}/news/bin/filter %attr(-,news,news) %{_datadir}/news/bin/filter/filter_innd.pl +%{_sysusersdir}/cleanfeed.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 20020501-35 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 20020501-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 20020501-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Apr 20 2024 Miroslav Suchý - 20020501-32 - convert license to SPDX diff --git cntlm/cntlm.spec cntlm/cntlm.spec.tmp index 1a986e2f1c..ded8ccd0a3 100644 --- cntlm/cntlm.spec +++ cntlm/cntlm.spec.tmp @@ -1,64 +1,64 @@ %global _hardened_build 1 Summary: Fast NTLM authentication proxy with tunneling Name: cntlm Version: 0.92.3 -Release: 30%{?dist} +Release: 31%{?dist} License: GPL-2.0-or-later URL: http://cntlm.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Source1: cntlm.tmpfiles Source2: cntlm.service # Don't override global CFLAGS/LDFLAGS and don't strip installed binaries Patch0: cntlm_makefile.patch Patch1: cntlm-c99.patch BuildRequires: gcc BuildRequires: make BuildRequires: systemd -Requires(pre): shadow-utils %{?systemd_requires} %description Cntlm is a fast and efficient NTLM proxy, with support for TCP/IP tunneling, authenticated connection caching, ACLs, proper daemon logging and behavior and much more. It has up to ten times faster responses than similar NTLM proxies, while using by orders or magnitude less RAM and CPU. Manual page contains detailed information. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >cntlm.sysusers.conf < /dev/null || groupadd -r %{name} -getent passwd %{name} > /dev/null || \ - useradd -r -g %{name} -d %{_localstatedir}/run/%{name} -s /sbin/nologin \ - -c "%{name} daemon" %{name} -exit 0 %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service @@ -73,19 +73,23 @@ exit 0 %license LICENSE %{_sbindir}/%{name} %{_mandir}/man1/%{name}.1* %config(noreplace) %{_sysconfdir}/%{name}.conf %config(noreplace) %{_sysconfdir}/sysconfig/cntlmd %{_tmpfilesdir}/%{name}.conf %{_unitdir}/%{name}.service %attr(755, %{name}, %{name}) %dir /run/%{name}/ +%{_sysusersdir}/cntlm.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.92.3-31 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 0.92.3-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 0.92.3-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 0.92.3-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git condor/condor.spec condor/condor.spec.tmp index a07eff297b..944bb16e82 100644 --- condor/condor.spec +++ condor/condor.spec.tmp @@ -1,17 +1,17 @@ %global version 23.9.6 %global version_ %(tr . _ <<< %{version}) %global with_vault_credmon 0 ####################### Name: condor Version: 23.9.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: HTCondor: High Throughput Computing # Automatically converted from old format: ASL 2.0 - review is highly recommended. License: Apache-2.0 URL: http://htcondor.org ############################################################## # NOTE: If you wish to setup a debug build either add a patch # or adjust the URL to a private github location ############################################################## @@ -295,30 +295,29 @@ Requires: pcre2-tools HTCondor V9 to V10 check for for known breaking changes: 1. IDToken TRUST_DOMAIN default value change 2. Upgrade to PCRE2 breaking map file regex sequences 3. The way to request GPU resources for a job %files upgrade-checks %_bindir/condor_upgrade_check -%pre -getent group %{name} >/dev/null || groupadd -r %{name} -getent passwd %{name} >/dev/null || \ - useradd -r -g condor -d %{_sharedstatedir}/%{name} -s /sbin/nologin \ - -c "Owner of HTCondor Daemons" %{name} -exit 0 %prep %setup -q -n %{name}-%{version} %patch 1 -p1 # fix errant execute permissions find src -perm /a+x -type f -name "*.[Cch]" -exec chmod a-x {} \; +# Create a sysusers.d config file +cat >condor.sysusers.conf < - 23.9.6-4 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 23.9.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Oct 01 2024 Tim Theisen - 23.9.6-2 - Suppress provides/requires for libfmt - rhbz#2315859 * Mon Sep 16 2024 Tim Theisen - 23.9.6-1 - Update to latest upstream 23.9.6 diff --git copr-backend/copr-backend.spec copr-backend/copr-backend.spec.tmp index c732a1ceb0..61367cd9e5 100644 --- copr-backend/copr-backend.spec +++ copr-backend/copr-backend.spec.tmp @@ -5,17 +5,17 @@ %global prunerepo_version 1.20 %global tests_version 5 %global tests_tar test-data-copr-backend %global copr_common_version 0.25.1~~dev0 Name: copr-backend Version: 2.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Backend for Copr License: GPL-2.0-or-later URL: https://github.com/fedora-copr/copr # Source is created by: # git clone %%url && cd copr # tito build --tgz --tag %%name-%%version-%%release @@ -122,16 +122,22 @@ and submit new builds and COPR will create yum repository from latests builds. This package include documentation for COPR code. Mostly useful for developers only. %prep %setup -q -a 1 +# Create a sysusers.d config file +cat >copr-backend.sysusers.conf </dev/null || groupadd -r copr -getent passwd copr >/dev/null || \ -useradd -r -g copr -G lighttpd -s /bin/bash -c "COPR user" copr -/usr/bin/passwd -l copr >/dev/null %post %systemd_post copr-backend.target %preun %systemd_preun copr-backend.target %postun @@ -226,24 +229,28 @@ useradd -r -g copr -G lighttpd -s /bin/bash -c "COPR user" copr %{_sbindir}/* %config(noreplace) %{_sysconfdir}/cron.daily/copr-backend %config(noreplace) %{_sysconfdir}/cron.weekly/copr-backend %{_datadir}/logstash/patterns/lighttpd.pattern %config(noreplace) %attr(0600, root, root) %{_sysconfdir}/sudoers.d/copr +%{_sysusersdir}/copr-backend.conf %files doc %license LICENSE %doc %{_pkgdocdir}/ %exclude %{_pkgdocdir}/lighttpd %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.1-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Oct 22 2024 Jakub Kadlcik 2.1-1 - Activate Red Hat subscription on demand - Fix copr-backend-unknown-resalloc-tickets * Wed Oct 02 2024 Jiri Kyjovsky 2.0-1 diff --git copr-frontend/copr-frontend.spec copr-frontend/copr-frontend.spec.tmp index 53b60f859e..d18ec5bb04 100644 --- copr-frontend/copr-frontend.spec +++ copr-frontend/copr-frontend.spec.tmp @@ -42,17 +42,17 @@ x = rpm.expand(macro) for line in string.gmatch(x, "([^\\n]+)") do print("%exclude " .. line .. "\\n") end } Name: copr-frontend Version: 2.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Frontend for Copr License: GPL-2.0-or-later URL: https://github.com/fedora-copr/copr # Source is created by: # git clone %%url && cd copr # tito build --tgz --tag %%name-%%version-%%release @@ -226,16 +226,21 @@ Summary: Development files to build against %{name} %description devel Files which allow a build against %{name}, currently it's useful to build custom %{name}-flavor package. %prep %setup -q +# Create a sysusers.d config file +cat >copr-frontend.sysusers.conf </dev/null || groupadd -r copr-fe -getent passwd copr-fe >/dev/null || \ -useradd -r -g copr-fe -G copr-fe -d %{_datadir}/copr/coprs_frontend -s /bin/bash -c "COPR frontend user" copr-fe -usermod -L copr-fe %post /bin/systemctl condrestart httpd.service || : %systemd_post fm-consumer@copr_messaging.service %preun @@ -355,16 +357,17 @@ usermod -L copr-fe %defattr(-, root, root, -) %config %{_sysconfdir}/cron.hourly/copr-frontend %config %{_sysconfdir}/cron.daily/copr-frontend %config(noreplace) %{_sysconfdir}/cron.hourly/copr-frontend-optional %config(noreplace) %{_sysconfdir}/cron.daily/copr-frontend-optional %{_libexecdir}/copr_dump_db.sh %exclude_files flavor %exclude_files devel +%{_sysusersdir}/copr-frontend.conf %files fedora %license LICENSE %flavor_files %files devel @@ -378,16 +381,19 @@ usermod -L copr-fe %if %{with doc} %files doc %license LICENSE %doc documentation/python-doc %endif %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.1-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Oct 03 2024 Pavel Raiskup 2.1-1 - bugfix Packit 500, attempt no. 2 * Wed Oct 02 2024 Jiri Kyjovsky 2.0-1 - Show Webhook History table under Settings -> Integrations diff --git copr-keygen/copr-keygen.spec copr-keygen/copr-keygen.spec.tmp index 75cb1ed3a8..86880da383 100644 --- copr-keygen/copr-keygen.spec +++ copr-keygen/copr-keygen.spec.tmp @@ -1,14 +1,14 @@ %global with_test 1 %global copr_common_version 0.16.3.dev Name: copr-keygen Version: 2.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Part of Copr build system. Aux service that generate keys for signd License: GPL-2.0-or-later URL: https://github.com/fedora-copr/copr # Source is created by: # git clone %%url && cd copr # tito build --tgz --tag %%name-%%version-%%release @@ -74,16 +74,21 @@ and submit new builds and COPR will create yum repository from latests builds. This package contains document for copr-keygen service. %endif %prep %setup -q +# Create a sysusers.d config file +cat >copr-keygen.sysusers.conf </dev/null || groupadd -r copr-signer -getent passwd copr-signer >/dev/null || \ - useradd -r -g copr-signer -G copr-signer -d %{_datadir}/copr-keygen -s /bin/bash -c "Copr rpm signer" copr-signer -/usr/bin/passwd -l copr-signer >/dev/null %post systemctl condrestart httpd &>/dev/null || : %postun systemctl condrestart httpd &>/dev/null || : @@ -161,23 +163,27 @@ systemctl condrestart httpd &>/dev/null || : %config %{_sysconfdir}/sudoers.d/copr_signer # Only copr-signer owned files go below! %defattr(600, copr-signer, copr-signer, 700) %{_sharedstatedir}/copr-keygen %config(noreplace) %{_sysconfdir}/copr-keygen %dir %{_localstatedir}/log/copr-keygen %ghost %{_localstatedir}/log/copr-keygen/main.log +%{_sysusersdir}/copr-keygen.conf %if 0%{?fedora} %files -n copr-keygen-doc %doc %{_pkgdocdir} %endif %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.0-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Oct 02 2024 Jiri Kyjovsky 2.0-1 - Drop support for python2 * Fri Mar 01 2024 Pavel Raiskup 1.92-1 - keep logs 6 weeks instead of 13 diff --git corosync-qdevice/corosync-qdevice.spec corosync-qdevice/corosync-qdevice.spec.tmp index f146b0028c..af5d724bcc 100644 --- corosync-qdevice/corosync-qdevice.spec +++ corosync-qdevice/corosync-qdevice.spec.tmp @@ -6,17 +6,17 @@ %bcond_without systemd %global gitver %{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}} %global gittarver %{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}} Name: corosync-qdevice Summary: The Corosync Cluster Engine Qdevice Version: 3.0.3 -Release: 7%{?gitver}%{?dist} +Release: 8%{?gitver}%{?dist} License: BSD-3-Clause URL: https://github.com/corosync/corosync-qdevice Source0: https://github.com/corosync/corosync-qdevice/releases/download/v%{version}%{?gittarver}/%{name}-%{version}%{?gittarver}.tar.gz # Runtime bits Requires: corosync >= 2.4.0 Requires: corosynclib >= 2.4.0 Requires: nss-tools @@ -41,16 +41,21 @@ BuildRequires: nss-devel %if %{with runautogen} BuildRequires: autoconf automake libtool %endif BuildRequires: make %prep %setup -q -n %{name}-%{version}%{?gittarver} +# Create a sysusers.d config file +cat >corosync-qdevice.sysusers.conf </dev/null || groupadd -r coroqnetd -getent passwd coroqnetd >/dev/null || \ - useradd -r -g coroqnetd -d / -s /sbin/nologin -c "User for corosync-qnetd" coroqnetd -exit 0 %post -n corosync-qnetd %if %{with systemd} && 0%{?systemd_post:1} %systemd_post corosync-qnetd.service %else if [ $1 -eq 1 ]; then /sbin/chkconfig --add corosync-qnetd || : fi @@ -200,18 +201,22 @@ fi %if %{with systemd} %{_unitdir}/corosync-qnetd.service %else %{_initrddir}/corosync-qnetd %endif %{_mandir}/man8/corosync-qnetd-tool.8* %{_mandir}/man8/corosync-qnetd-certutil.8* %{_mandir}/man8/corosync-qnetd.8* +%{_sysusersdir}/corosync-qdevice.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 3.0.3-8 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 3.0.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 3.0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 3.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git crack/crack.spec crack/crack.spec.tmp index 5d69c246f8..9dc99e459f 100644 --- crack/crack.spec +++ crack/crack.spec.tmp @@ -1,12 +1,12 @@ Summary: Password cracker Name: crack Version: 5.0a -Release: 48%{?dist} +Release: 49%{?dist} # Automatically converted from old format: Artistic clarified - review is highly recommended. License: ClArtistic Source: ftp://ftp.cerias.purdue.edu/pub/tools/unix/pwdutils/crack/%{name}5.0.tar.gz Patch0: %{name}-chris.patch Patch1: %{name}-FHS.patch URL: https://dropsafe.crypticide.com/alecm/software/crack/c50-faq.html BuildRequires: words, gawk, gcc BuildRequires: make @@ -32,16 +32,21 @@ ln src/util/elcid.c,bsd src/util/elcid.c mkdir run bin # Try not to pollute bin namespace sed -i -e 's/Reporter/CrackReporter/g' doc/gui.txt manual.html manual.txt %patch -P0 -p1 -b .chris sed -i 's|/usr/dict/|/usr/share/dict/|g' conf/dictgrps.conf # Alter script to use FHS layout %patch -P1 -p1 -b .FHS +# Create a sysusers.d config file +cat >crack.sysusers.conf </dev/null 2>&1 || : fi %files %doc LICENCE manual.* doc %attr(00750, root, crack) %{_bindir}/Crack* %{_libexecdir}/%{name}/ %{_datadir}/%{name}/ %dir %{_sharedstatedir}/%{name}/ %attr(02770, root, crack) %dir %{_sharedstatedir}/%{name}/run/ %attr(02770, root, crack) %dir %{_sharedstatedir}/%{name}/run/dict/ %attr(00640, root, crack) %{_sharedstatedir}/%{name}/run/dict/* %attr(00640, root, crack) %{_sharedstatedir}/%{name}/run/dict/.dictmade +%{_sysusersdir}/crack.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 5.0a-49 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 5.0a-48 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 07 2024 Miroslav Suchý - 5.0a-47 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 5.0a-46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git crossfire/crossfire.spec crossfire/crossfire.spec.tmp index 29e02c0a3f..51ae749e8b 100644 --- crossfire/crossfire.spec +++ crossfire/crossfire.spec.tmp @@ -4,17 +4,17 @@ %define logwatch_root %{_datadir}/logwatch %define logwatch_conf %{logwatch_root}/dist.conf %define logwatch_scripts %{logwatch_root}/scripts Name: crossfire Version: 1.71.0 -Release: 30%{?dist} +Release: 31%{?dist} Summary: Server for hosting crossfire games # All files GPLv2+ except server/daemon.c which also has MIT attributions License: GPL-2.0-or-later and MIT URL: http://crossfire.real-time.com Source0: http://downloads.sourceforge.net/crossfire/%{name}-%{version}.tar.bz2 Source1: http://downloads.sourceforge.net/crossfire/%{name}-%{version}.arch.tar.bz2 Source2: crossfire.service @@ -119,16 +119,21 @@ sed -i 's#\r##' utils/player_dl.pl.in sed -i "s#^\$TMPDIR=.*#\$TMPDIR=\"`pwd`\";#" lib/adm/collect_images.pl # Don't map stdio streams to / # This is fixed in CVS, but didn't make it into the 1.9.1 release. sed -i 's# (void) open ("/", O_RDONLY);# (void) open ("/var/log/crossfire/crossfire.log", O_RDONLY);#' server/daemon.c # Change the location of the tmp directory sed -i "s@^#define TMPDIR \"/tmp\"@#define TMPDIR \"%{_var}/games/%{name}/tmp\"@" include/config.h +# Create a sysusers.d config file +cat >crossfire.sysusers.conf </dev/null || groupadd -r crossfire -getent passwd crossfire >/dev/null || \ -useradd -r -g crossfire -d %{_datadir}/%{name} -s /sbin/nologin \ - -c "Daemon account for the crossfire server" crossfire -exit 0 %post if [ $1 -eq 1 ] ; then # Initial installation /bin/systemctl daemon-reload >/dev/null 2>&1 || : fi @@ -307,16 +308,17 @@ fi %config(noreplace) %{_sysconfdir}/%{name}/metaserver2 %config(noreplace) %{_sysconfdir}/%{name}/stat_bonus %attr(-,crossfire,root) %{_var}/games/%{name} %attr(-,crossfire,root) %{_var}/log/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %{_mandir}/man6/* %{_unitdir}/%{name}.service +%{_sysusersdir}/crossfire.conf %files doc %doc doc/Developers doc/playbook* doc/scripts doc/spell-docs doc/spoiler doc/spoiler-html doc/*.txt #%files devel #%defattr(-,root,root,-) #%%{_bindir}/crossfire-config #%doc doc/plugins @@ -333,16 +335,19 @@ fi %files logwatch %{logwatch_conf}/logfiles/%{name}.conf %{logwatch_conf}/services/%{name}.conf %{logwatch_scripts}/services/%{name} %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.71.0-31 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.71.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 1.71.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 1.71.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild RPMAutoSpec usage detected, not changing the spec file. diff --git cyrus-imapd/cyrus-imapd.spec cyrus-imapd/cyrus-imapd.spec.tmp index 1b44b5e05a..10a97e8e6f 100644 --- cyrus-imapd/cyrus-imapd.spec +++ cyrus-imapd/cyrus-imapd.spec.tmp @@ -208,19 +208,17 @@ BuildRequires: perl(XML::Spice) BuildRequires: perl(DBD::SQLite) BuildRequires: perl(Digest::CRC) BuildRequires: perl(Moo) BuildRequires: perl(String::CRC32) BuildRequires: perl(Types::Standard) BuildRequires: perl(Unix::Syslog) %endif -Requires(pre): shadow-utils %{?systemd_requires} -%{?sysusers_requires_compat} Requires: cyrus-imapd-libs%{?_isa} = %{version}-%{release} Requires: cyrus-imapd-utils = %{version}-%{release} Requires: file sscg %{?perl_default_filter} %description @@ -693,18 +691,16 @@ sudo -u cyrus -g mail LD_LIBRARY_PATH=%buildroot/%_libdir ./testrunner.pl -j%{?_ # CASSANDANE_END if [ -s "work/failed" ]; then cat work/failed exit 1 fi -%pre -%sysusers_create_compat %{SOURCE19} %post %systemd_post cyrus-imapd.service %preun %systemd_preun cyrus-imapd.service %postun diff --git dahdi-tools/dahdi-tools.spec dahdi-tools/dahdi-tools.spec.tmp index ad90fc54a3..d47f510241 100644 --- dahdi-tools/dahdi-tools.spec +++ dahdi-tools/dahdi-tools.spec.tmp @@ -1,14 +1,14 @@ %global tools_version 2.11.1 %global linux_version 2.11.1 Name: dahdi-tools Version: %{tools_version} -Release: 34%{?dist} +Release: 35%{?dist} Summary: Userspace tools to configure the DAHDI kernel modules # Automatically converted from old format: GPLv2 and LGPLv2 - review is highly recommended. License: GPL-2.0-only AND LicenseRef-Callaway-LGPLv2 URL: http://www.asterisk.org/ Source0: http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-%{tools_version}.tar.gz Source1: http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-%{tools_version}.tar.gz.asc @@ -45,18 +45,16 @@ BuildRequires: perl-podlators BuildRequires: perl-generators BuildRequires: udev %{?systemd_requires} Requires: dahdi-tools-libs%{?_isa} = %{version}-%{release} %if 0%{?fedora} || 0%{?rhel} >= 8 Requires: systemd-udev %endif -Requires(pre): %{_sbindir}/useradd -Requires(pre): %{_sbindir}/groupadd Conflicts: zaptel-utils %description DAHDI stands for Digium Asterisk Hardware Device Interface. This package contains the userspace tools to configure the DAHDI kernel modules. DAHDI is the replacement for Zaptel, which must be renamed due to trademark issues. @@ -97,16 +95,21 @@ sed -i -e \ 's/675 Mass Ave, Cambridge, MA 02139/51 Franklin St, Boston, MA 02110/' \ xpp/*.c xpp/*.h xpp/xtalk/*.c xpp/xtalk/*.h xpp/xtalk/include/xtalk/*.h \ xpp/waitfor_xpds xpp/xpp_fxloader sed -i -e \ 's/59 Temple Place, Suite 330, Boston, MA 02111-1307/51 Franklin St, Boston, MA 02110/' \ LICENSE +# Create a sysusers.d config file +cat >dahdi-tools.sysusers.conf </dev/null || : -%{_sbindir}/useradd -r -s /sbin/nologin -d /usr/share/dahdi -M \ - -c 'DAHDI User' -g dahdi dahdi &>/dev/null || : +install -m0644 -D dahdi-tools.sysusers.conf %{buildroot}%{_sysusersdir}/dahdi-tools.conf + %post %systemd_post dahdi.service %preun %systemd_preun dahdi.service %postun @@ -206,27 +207,31 @@ install -D -p -m 0644 dahdi.service %{buildroot}%{_unitdir}/dahdi.service %{_mandir}/man8/twinstar.8.gz %{_mandir}/man8/xpp_blink.8.gz %{_mandir}/man8/xpp_sync.8.gz %{perl_vendorlib}/Dahdi.pm %{perl_vendorlib}/Dahdi %{_sbindir}/xtalk_send %{_mandir}/man8/xtalk_send.8.gz %{_unitdir}/dahdi.service +%{_sysusersdir}/dahdi-tools.conf %files libs %license LICENSE LICENSE.LGPL %{_libdir}/*.so.* %files devel %license LICENSE LICENSE.LGPL %{_includedir}/* %{_libdir}/*.so %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.11.1-35 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.11.1-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 28 2024 Miroslav Suchý - 2.11.1-33 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 2.11.1-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git darkstat/darkstat.spec darkstat/darkstat.spec.tmp index 2bfded2b27..03dd3d7184 100644 --- darkstat/darkstat.spec +++ darkstat/darkstat.spec.tmp @@ -1,12 +1,12 @@ Name: darkstat Summary: Network traffic analyzer Version: 3.0.721 -Release: 9%{?dist} +Release: 10%{?dist} # Automatically converted from old format: GPLv2 - review is highly recommended. License: GPL-2.0-only URL: https://unix4lyfe.org/darkstat Source: https://github.com/emikulic/darkstat/archive/%{version}/%{name}-%{version}.tar.gz Source1: %{name}.service Source2: %{name}.sysconfig @@ -28,32 +28,33 @@ Requires(postun): systemd %description darkstat is a network traffic analyzer. It's basically a packet sniffer which runs as a background process on a cable/DSL router and gathers all sorts of useless but interesting statistics. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >darkstat.sysusers.conf </dev/null || groupadd -r darkstat -getent passwd darkstat >/dev/null || \ - useradd -r -g darkstat -d /var/lib/darkstat -s /sbin/nologin \ - -c "Network traffic analyzer" darkstat -exit 0 +install -m0644 -D darkstat.sysusers.conf %{buildroot}%{_sysusersdir}/darkstat.conf + %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun @@ -61,18 +62,22 @@ exit 0 %files %license COPYING.GPL LICENSE %doc AUTHORS NEWS README.md %attr(0755, darkstat, root) %{_sbindir}/%{name} %attr(0644, darkstat, root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %{_mandir}/man8/%{name}* %{_unitdir}/%{name}.service +%{_sysusersdir}/darkstat.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 3.0.721-10 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 3.0.721-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Jul 29 2024 Miroslav Suchý - 3.0.721-8 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 3.0.721-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git davfs2/davfs2.spec davfs2/davfs2.spec.tmp index a46bf5eb20..feb7900cef 100644 --- davfs2/davfs2.spec +++ davfs2/davfs2.spec.tmp @@ -1,11 +1,11 @@ Name: davfs2 Version: 1.7.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A filesystem driver for WebDAV # Automatically converted from old format: GPLv3+ - review is highly recommended. License: GPL-3.0-or-later URL: https://savannah.nongnu.org/projects/davfs2 Source0: https://download.savannah.gnu.org/releases/davfs2/%{name}-%{version}.tar.gz Source1: https://download.savannah.gnu.org/releases/davfs2/%{name}-%{version}.tar.gz.sig # key retrieved via # wget -O davfs2-memberlist-gpgkeys.asc 'https://savannah.nongnu.org/project/memberlist-gpgkeys.php?group=davfs2&download=1' @@ -17,31 +17,36 @@ Patch0: davfs2-neon-34.patch Conflicts: filesystem < 3 BuildRequires: automake BuildRequires: gcc BuildRequires: gettext BuildRequires: gnupg2 BuildRequires: neon-devel BuildRequires: make -Requires(pre): shadow-utils %define cachedir /var/cache/davfs2 %define piddir /var/run/mount.davfs %define username davfs2 %define groupname %{username} %description davfs2 is a Linux file system driver that allows you to mount a WebDAV server as a disk drive. %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -p1 +# Create a sysusers.d config file +cat >davfs2.sysusers.conf < $m.utf8 mv -f $m.utf8 $m done +install -m0644 -D davfs2.sysusers.conf %{buildroot}%{_sysusersdir}/davfs2.conf + -%pre -getent group %{groupname} >/dev/null || groupadd -r %{groupname} -getent passwd %{username} >/dev/null || \ - useradd -r -g %{groupname} -d %{cachedir} -s /sbin/nologin \ - -c "User account for %{name}" %{username} -exit 0 %files -f %{name}.lang # Docs %doc AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README.md README.translators THANKS TODO %license COPYING %{_mandir}/man5/*.gz %{_mandir}/man8/*.gz @@ -89,18 +90,22 @@ exit 0 # Binaries %{_sbindir}/umount.davfs # re-apply suid bit to mount.davfs %attr (4755,root,root) %{_sbindir}/mount.davfs # Extra dirs needed by mount.davfs %ghost %dir %attr(00775,root,%{groupname}) %{cachedir} %ghost %dir %attr(01775,root,%{groupname}) %{piddir} +%{_sysusersdir}/davfs2.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.7.1-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Dec 06 2024 Felix Schwarz - 1.7.1-1 - update to 1.7.1 * Thu Jul 25 2024 Miroslav Suchý - 1.7.0-7 - convert license to SPDX diff --git ddclient/ddclient.spec ddclient/ddclient.spec.tmp index bcd1146728..34a604c5f3 100644 --- ddclient/ddclient.spec +++ ddclient/ddclient.spec.tmp @@ -1,15 +1,15 @@ %global cachedir %{_localstatedir}/cache/ddclient %global rundir %{_rundir}/ddclient Summary: Client to update dynamic DNS host entries Name: ddclient Version: 4.0.0 -Release: 1%{?dist} +Release: 2%{?dist} # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: https://ddclient.net/ Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: ddclient.rwtab Source2: ddclient.service Source3: ddclient.sysconfig Source4: ddclient.NetworkManager @@ -19,17 +19,16 @@ BuildArch: noarch BuildRequires: autoconf BuildRequires: automake BuildRequires: make BuildRequires: perl-generators BuildRequires: perl(Sys::Hostname) BuildRequires: perl(version) BuildRequires: systemd -Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd # For tests BuildRequires: iproute BuildRequires: perl(HTTP::Daemon) BuildRequires: perl(HTTP::Daemon::SSL) @@ -59,16 +58,21 @@ updates for multiple addresses, MX, wildcards, abuse avoidance, retrying the failed updates and sending update status to syslog and through e-mail. %prep %autosetup -p 1 # Send less mail by default, eg. not on every shutdown. sed -e 's|^mail=|#mail=|' -i ddclient.conf.in ./autogen +# Create a sysusers.d config file +cat >ddclient.sysusers.conf < /dev/null || %{_sbindir}/groupadd -r %{name} -getent passwd %{name} > /dev/null || %{_sbindir}/useradd -r -g %{name} -d %{_localstatedir}/cache/%{name} -s /sbin/nologin -c "Dynamic DNS Client" %{name} -exit 0 %post %systemd_post %{name}.service if [ $1 == 1 ]; then mkdir -p %{rundir} chown %{name}:%{name} %{rundir} fi @@ -132,19 +134,23 @@ fi %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %attr(600,%{name},%{name}) %config(noreplace) %{_sysconfdir}/%{name}.conf %{_prefix}/lib/NetworkManager/dispatcher.d/50-%{name} # localstatedir %attr(0700,%{name},%{name}) %dir %{cachedir} %attr(0600,%{name},%{name}) %ghost %{cachedir}/%{name}.cache %ghost %attr(0755,%{name},%{name}) %dir %{rundir} +%{_sysusersdir}/ddclient.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 4.0.0-2 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Wed Jan 22 2025 Scott Talbert - 4.0.0-1 - Update to new upstream release 4.0.0 (#2334061) * Wed Jan 22 2025 Scott Talbert - 3.11.2-7 - Fix FTBFS with newer autoconf * Thu Jan 16 2025 Fedora Release Engineering - 3.11.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git deluge/deluge.spec deluge/deluge.spec.tmp index 3805f93860..0919563511 100644 --- deluge/deluge.spec +++ deluge/deluge.spec.tmp @@ -1,11 +1,11 @@ Name: deluge Version: 2.1.1 -Release: 11%{?dist} +Release: 12%{?dist} Summary: A GTK+ BitTorrent client with support for DHT, UPnP, and PEX # Automatically converted from old format: GPLv3 with exceptions - review is highly recommended. License: LicenseRef-Callaway-GPLv3-with-exceptions URL: http://deluge-torrent.org/ Source0: https://ftp.osuosl.org/pub/deluge/source/2.0/%{name}-%{version}.tar.xz Source1: https://ftp.osuosl.org/pub/deluge/source/2.0/%{name}-%{version}.tar.xz.sha256 Source2: deluge-daemon.service Source3: deluge-web.service @@ -99,24 +99,28 @@ Requires: %{name}-daemon = %{version}-%{release} %description web Deluge bittorent client web interface %package daemon Summary: The Deluge daemon # Automatically converted from old format: GPLv3 with exceptions - review is highly recommended. License: LicenseRef-Callaway-GPLv3-with-exceptions Requires: %{name}-common = %{version}-%{release} -Requires(pre): shadow-utils %description daemon Files for the Deluge daemon %prep %autosetup -p1 +# Create a sysusers.d config file +cat >deluge.sysusers.conf < %{name}.lang ## Now we move that list back to our sources, so that '%%files -f' can find it ## properly. popd && mv %{buildroot}/%{name}.lang . +install -m0644 -D deluge.sysusers.conf %{buildroot}%{_sysusersdir}/deluge.conf + %files %files common -f %{name}.lang %doc CHANGELOG.md LICENSE README.md %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/ %dir %{python3_sitelib}/%{name} %{python3_sitelib}/%{name}/__pycache__ @@ -209,23 +215,18 @@ popd && mv %{buildroot}/%{name}.lang . %{_mandir}/man?/%{name}-web* %{_unitdir}/%{name}-web.service %files daemon %{_bindir}/%{name}d %{_unitdir}/%{name}-daemon.service %attr(-,%{name}, %{name})%{_sharedstatedir}/%{name}/ %{_mandir}/man?/%{name}d* +%{_sysusersdir}/deluge.conf -%pre daemon -getent group %{name} >/dev/null || groupadd -r %{name} -getent passwd %{name} >/dev/null || \ -useradd -r -g %{name} -d %{_sharedstatedir}/%{name} -s /sbin/nologin \ - -c "deluge daemon account" %{name} -exit 0 %post daemon %systemd_post deluge-daemon.service %post web %systemd_post deluge-web.service @@ -237,16 +238,19 @@ exit 0 %postun daemon %systemd_postun_with_restart deluge-daemon.service %postun web %systemd_postun_with_restart deluge-web.service %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.1.1-12 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.1.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 28 2024 Mamoru TASAKA - 2.1.1-10 - Backport upstream patch to support python 3.13 cgi module removal (bug 2292651) * Wed Aug 28 2024 Miroslav Suchý - 2.1.1-9 - convert license to SPDX diff --git dhcp-forwarder/dhcp-forwarder.spec dhcp-forwarder/dhcp-forwarder.spec.tmp index 65cb436283..879bd5c269 100644 --- dhcp-forwarder/dhcp-forwarder.spec +++ dhcp-forwarder/dhcp-forwarder.spec.tmp @@ -1,12 +1,12 @@ Summary: DHCP relay agent Name: dhcp-forwarder Version: 0.11 -Release: 23%{?dist} +Release: 24%{?dist} # Automatically converted from old format: GPLv3 - review is highly recommended. License: GPL-3.0-only URL: http://www.nongnu.org/dhcp-fwd/ Source0: http://savannah.nongnu.org/download/dhcp-fwd/%name-%version.tar.xz Source1: http://savannah.nongnu.org/download/dhcp-fwd/%name-%version.tar.xz.asc Source2: dhcp-forwarder.service BuildRequires: gcc @@ -28,16 +28,21 @@ ISC's DHCP, but has the following important features: * Uses AF_INET sockets which makes it possible to filter incoming messages with packetfilters * The DHCP agent IDs can be defined freely * Has a small memory footprint when using dietlibc %prep %setup -q +# Create a sysusers.d config file +cat >dhcp-forwarder.sysusers.conf </dev/null || groupadd -r dhcp-fwd -getent passwd dhcp-fwd >/dev/null || \ - useradd -r -g dhcp-fwd -d %{_sharedstatedir}/dhcp-fwd -s /sbin/nologin \ - -c "DHCP Forwarder user" dhcp-fwd -exit 0 %files %doc AUTHORS COPYING ChangeLog NEWS README %dir %attr(0755,root,root) %{_sharedstatedir}/dhcp-fwd %_sbindir/* %_mandir/*/* %attr(0644,root,root) %{_unitdir}/dhcp-forwarder.service %attr(0755,root,root) %config(noreplace) %{_sysconfdir}/dhcp-fwd.conf +%{_sysusersdir}/dhcp-forwarder.conf %post %systemd_post dhcp-forwarder.service %preun %systemd_preun dhcp-forwarder.service %postun %systemd_postun_with_restart dhcp-forwarder.service %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.11-24 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 0.11-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 07 2024 Miroslav Suchý - 0.11-22 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 0.11-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git dictd/dictd.spec dictd/dictd.spec.tmp index 340b653ab1..3383d826ee 100644 --- dictd/dictd.spec +++ dictd/dictd.spec.tmp @@ -2,17 +2,17 @@ # Do no change username -- hardcoded in dictd.c %global username dictd %global homedir %{_datadir}/dict/dictd %global selinux_variants mls targeted Summary: DICT protocol (RFC 2229) server and command-line client Name: dictd Version: 1.13.1 -Release: 5%{?dist} +Release: 6%{?dist} License: GPL-2.0-only AND GPL-2.0-or-later AND GPL-1.0-or-later AND GPL-3.0-or-later AND MIT AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain Source0: https://github.com/cheusov/dictd/archive/%{version}/%{name}-%{version}.tar.gz Source1: dictd.service Source2: dictd2.te Source3: dictd.conf Patch0: 0001-Fix-C99-compatibility-issues-in-lexer-parser-integra.patch Patch1: 0001-remove-use-of-deprecated-inet_aton-and-inet_ntoa.patch URL: http://www.dict.org/ @@ -26,17 +26,16 @@ BuildRequires: libmaa-devel BuildRequires: byacc BuildRequires: libdbi-devel BuildRequires: zlib-devel BuildRequires: gawk BuildRequires: gcc BuildRequires: pkgconfig(systemd) BuildRequires: checkpolicy, selinux-policy-devel -Requires(pre): shadow-utils %description Command-line client for the DICT protocol. The Dictionary Server Protocol (DICT) is a TCP transaction based query/response protocol that allows a client to access dictionary definitions from a set of natural language dictionary databases. %package server @@ -56,16 +55,21 @@ More information can be found in the INSTALL file in this package. %prep %autosetup -p1 autoreconf -fv mkdir SELinux cp -p %{SOURCE2} SELinux +# Create a sysusers.d config file +cat >dictd.sysusers.conf </dev/null || groupadd -r %{username} -getent passwd %{username} >/dev/null || \ - useradd -r -g %{username} -d %{homedir} -s /sbin/nologin \ - -c "dictd dictionary server" %{username} -exit 0 %files %doc ANNOUNCE COPYING README doc/rfc2229.txt doc/security.doc %doc examples/dict1.conf %{_bindir}/dict %{_mandir}/man1/dict.1* +%{_sysusersdir}/dictd.conf %files server %doc ANNOUNCE COPYING INSTALL README doc/rfc2229.txt doc/security.doc %doc examples/dictd* %exclude %{_mandir}/man1/dict.1* %exclude %{_bindir}/dict %{_bindir}/dict_lookup %{_bindir}/dictfmt @@ -137,16 +138,19 @@ exit 0 %{_mandir}/man8/dictd.8* %attr(0644,root,root) %{_unitdir}/dictd.service %{homedir} %config(noreplace) %{_sysconfdir}/dictd.conf %doc SELinux %{_datadir}/selinux/*/dictd2.pp %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.13.1-6 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.13.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 1.13.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Mar 11 2024 Carlos Rodriguez-Fernandez 1.13.1-3 - Remove use of deprecated functions diff --git dionaea/dionaea.spec dionaea/dionaea.spec.tmp index 0ca98a0703..e2e4e5afee 100644 --- dionaea/dionaea.spec +++ dionaea/dionaea.spec.tmp @@ -1,13 +1,13 @@ Name: dionaea Version: 0.11.0 Summary: Low interaction honeypot # Show as the RPM release number (keep same number line for tarball and git builds) -%global baserelease 3 +%global baserelease 4 %if 0%{?rhel} # Group needed for EPEL Group: Applications/System %endif # Dionaea package is licensed with GPLv2 # On top of that it is granting one exception extra - it is permitted by the license @@ -176,17 +176,16 @@ Requires: python%{python3_pkgversion}-dionaea %{?systemd_requires} %else Requires(post): chkconfig Requires(preun): chkconfig Requires(preun): initscripts Requires(postun): initscripts %endif -Requires(pre): shadow-utils %description Dionaea is low interaction honeypot. It is meant to be a nepenthes successor, embedding python as scripting language, using libemu to detect shell-codes, supporting ipv6 and TLS. # ============= documentation package ========================================== @@ -261,16 +260,21 @@ sed -i -e "s|var/dionaea|var/lib/dionaea|g;" \ # Scripts should run with /usr/bin/python3 shabang and not /usr/bin/env python3 or /bin/python3 # Fedora specific - not reported upstream sed -i -e 's|#!/bin/python3|#!/usr/bin/python3|g; s|#!/usr/bin/env python3|#!/usr/bin/python3|g;' \ modules/python/util/readlogsqltree.py \ modules/python/util/logsql2postgres.py \ modules/python/util/gnuplotsql.py \ modules/python/util/updateccs.py +# Create a sysusers.d config file +cat >dionaea.sysusers.conf </dev/null 2>&1 || : fi %endif -%pre -getent group dionaea >/dev/null || groupadd -r dionaea || : -getent passwd dionaea >/dev/null || \ - useradd -r -g dionaea -d /home/dionaea -s /sbin/nologin \ - -c "Dionaea honeypot" dionaea || : # ============= package files ================================================== %files %license LICENSE src/LICENSE.openssl %doc README.md CHANGELOG.rst CONTRIBUTING.rst @@ -418,16 +419,17 @@ getent passwd dionaea >/dev/null || \ %if 0%{?with_systemd} %{_unitdir}/*.service %else %{_initrddir}/* %endif +%{_sysusersdir}/dionaea.conf %files doc %doc README.md %doc html @@ -436,16 +438,19 @@ getent passwd dionaea >/dev/null || \ %license LICENSE %doc README.md %{_libdir}/%{name}/python.so %{python3_sitearch}/%{name}* # %%{python3_sitearch}/%%{name}-*egg-info %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.11.0-4.20210228git4e459f1 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 0.11.0-3.20210228git4e459f1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 28 2024 Miroslav Suchý - 0.11.0-2.20210228git4e459f1 - convert license to SPDX * Thu Jul 04 2024 Michal Ambroz 0.11.0-1 - bump to 0.11.0 diff --git direwolf/direwolf.spec direwolf/direwolf.spec.tmp index 2b67f5419a..2485438731 100644 --- direwolf/direwolf.spec +++ direwolf/direwolf.spec.tmp @@ -1,11 +1,11 @@ Name: direwolf Version: 1.7 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Sound Card-based AX.25 TNC # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: https://github.com/wb2osz/direwolf/ # This is the actual source Source0: https://github.com/wb2osz/direwolf/archive/%{version}/%{name}-%{version}.tar.gz Source1: direwolf.service @@ -18,32 +18,38 @@ BuildRequires: gcc gcc-c++ BuildRequires: cmake BuildRequires: glibc-devel BuildRequires: alsa-lib-devel BuildRequires: gpsd-devel BuildRequires: hamlib-devel BuildRequires: systemd systemd-devel Requires: ax25-tools ax25-apps -Requires(pre): shadow-utils %description Dire Wolf is a modern software replacement for the old 1980's style TNC built with special hardware. Without any additional software, it can perform as an APRS GPS Tracker, Digipeater, Internet Gateway (IGate), APRStt gateway. It can also be used as a virtual TNC for other applications such as APRSIS32, UI-View32, Xastir, APRS-TW, YAAC, UISS, Linux AX25, SARTrack, Winlink Express, BPQ32, Outpost PM, and many others. %prep %autosetup -p 1 +# Create a sysusers.d config file +cat >direwolf.sysusers.conf </dev/null || groupadd -r direwolf -getent passwd direwolf >/dev/null || \ - useradd -r -g audio -G audio,dialout -d %{_datadir}/%{name} -s /sbin/nologin \ - -c "Direwolf Sound Card-based AX.25 TNC" direwolf -exit 0 %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.7-8 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.7-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Dec 31 2024 Richard Shaw - 1.7-6 - Rebuild for Hamlib 4.6. * Thu Jul 25 2024 Miroslav Suchý - 1.7-5 - convert license to SPDX diff --git dist-git/dist-git.spec dist-git/dist-git.spec.tmp index fdcce5ea87..014b154d10 100644 --- dist-git/dist-git.spec +++ dist-git/dist-git.spec.tmp @@ -1,15 +1,15 @@ %global selinux_variants mls targeted %global modulename dist_git %global installdir /var/lib/dist-git Name: dist-git Version: 1.18 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Package source version control system # upload.cgi uses GPLv1 License: MIT AND GPL-1.0-only URL: https://github.com/release-engineering/dist-git # Source is created by # git clone https://github.com/release-engineering/dist-git.git # cd dist-git @@ -21,17 +21,16 @@ BuildRequires: systemd Requires: httpd Requires: perl(Sys::Syslog) Requires: (dist-git-selinux if selinux-policy-targeted) Requires: git Requires: git-daemon Requires: mod_ssl Requires: crudini -Requires(pre): shadow-utils Requires: python3-requests Recommends: python3-grokmirror Suggests: python3-fedmsg Suggests: fedora-messaging %if 0%{?rhel} == 8 BuildRequires: python3-nose %else @@ -71,38 +70,36 @@ Dist Git is a remote Git repository specifically designed to hold RPM package sources. This package includes SELinux support. %prep %setup -q +# Create a sysusers.d config file +cat >dist-git.sysusers.conf < /dev/null || \ - groupadd -r packager -exit 0 %check %if 0%{?rhel} && 0%{?rhel} <= 8 %if 0%{?rhel} < 8 nosetests -v . %else nosetests-3 -v . @@ -166,16 +163,18 @@ do install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant} install -p -m 644 %{modulename}.pp.${selinuxvariant} \ %{buildroot}%{_datadir}/selinux/${selinuxvariant}/%{modulename}.pp done cd - hardlink -cv %{buildroot}%{_datadir}/selinux +install -m0644 -D dist-git.sysusers.conf %{buildroot}%{_sysusersdir}/dist-git.conf + %post selinux for selinuxvariant in %{selinux_variants} do /usr/sbin/semodule -s ${selinuxvariant} -i \ %{_datadir}/selinux/${selinuxvariant}/%{modulename}.pp &> /dev/null || : done %{_sbindir}/restorecon -v %{installdir}/cache || : %{_sbindir}/restorecon -v %{installdir}/cache/lookaside || : @@ -241,24 +240,28 @@ fi %dir %{_datadir}/dist-git %attr (775, -, -) %{_datadir}/dist-git/* %{_bindir}/dist-git-gc # TODO: move _datadir executables to _libexecdir, and drop these symlinks %{_bindir}/mkbranch %{_bindir}/mkbranch_branching %{_bindir}/remove_unused_sources %{_bindir}/setup_git_package +%{_sysusersdir}/dist-git.conf %files selinux %doc selinux/* %{_datadir}/selinux/*/%{modulename}.pp %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.18-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Sep 27 2024 Pavel Raiskup 1.18-1 - replace test on _selinux_policy_version by macro that does it all - handle situation when _selinux_policy_version is not defined - silence pylint - remove rhel7 specific code diff --git dlt-daemon/dlt-daemon.spec dlt-daemon/dlt-daemon.spec.tmp index 87e726e7e0..f1ca49da86 100644 --- dlt-daemon/dlt-daemon.spec +++ dlt-daemon/dlt-daemon.spec.tmp @@ -1,24 +1,23 @@ Name: dlt-daemon Version: 2.18.9 -Release: 6%{?dist} +Release: 7%{?dist} Summary: DLT - Diagnostic Log and Trace Group: System Environment/Base License: MPL-2.0 URL: https://github.com/COVESA/dlt-daemon Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Patch0: dlt-daemon-config.patch BuildRequires: cmake BuildRequires: pandoc BuildRequires: systemd BuildRequires: systemd-devel BuildRequires: gcc-c++ -Requires(pre): shadow-utils %description This component provides a standardised log and trace interface, based on the standardised protocol specified in the AUTOSAR standard 4.0 DLT. This component can be used by GENIVI components and other applications as logging facility providing - the DLT shared library - the DLT daemon, including startup scripts @@ -47,16 +46,21 @@ Recommends: %{name} = %{version}-%{release} Summary: DLT - Diagnostic Log and Trace: Examples Requires: %{name} = %{version}-%{release} %description -n dlt-examples %{summary}. %prep %autosetup -n %{name}-%{version} -p1 +# Create a sysusers.d config file +cat >dlt-daemon.sysusers.conf </dev/null || groupadd -r dlt-daemon -getent passwd dlt-daemon >/dev/null || \ - useradd -r -g dlt-daemon -d /var/lib/dlt-daemon -s /sbin/nologin \ - -c "User for dlt-daemon" dlt-daemon -exit 0 +install -m0644 -D dlt-daemon.sysusers.conf %{buildroot}%{_sysusersdir}/dlt-daemon.conf + %ldconfig_scriptlets -n dlt-libs %files %license LICENSE %doc AUTHORS README.md ReleaseNotes.md %attr(755,dlt-daemon,dlt-daemon) %dir /var/lib/dlt-daemon %config(noreplace) %{_sysconfdir}/dlt.conf %config(noreplace) %{_sysconfdir}/dlt_gateway.conf %{_unitdir}/dlt.service %attr(0755,root,root) %{_bindir}/dlt-daemon %{_mandir}/man1/dlt-daemon.1* %{_mandir}/man5/dlt.conf.5* %{_mandir}/man5/dlt_gateway.conf.5* +%{_sysusersdir}/dlt-daemon.conf %files -n dlt-examples # The binaries do not have man pages but do have markdown documents. %doc doc/dlt-qnx-system.md doc/dlt_build_options.md doc/dlt_cdh.md doc/dlt_demo_setup.md doc/dlt_design_specification.md doc/dlt_example_user.md doc/dlt_extended_network_trace.md doc/dlt_filetransfer.md doc/dlt_for_developers.md doc/dlt_glossary.md doc/dlt_kpi.md doc/dlt_multinode.md doc/dlt_offline_logstorage.md %{_bindir}/dlt-example-filetransfer %{_bindir}/dlt-example-user %{_bindir}/dlt-example-user-common-api %{_bindir}/dlt-example-user-func @@ -153,16 +153,19 @@ exit 0 %files -n dlt-libs-devel %{_includedir}/dlt/*.h %{_libdir}/pkgconfig/automotive-dlt.pc %{_libdir}/libdlt.so %{_libdir}/cmake/automotive-dlt/*.cmake %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.18.9-7 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.18.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 2.18.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 2.18.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild RPMAutoSpec usage detected, not changing the spec file. diff --git dmapd/dmapd.spec dmapd/dmapd.spec.tmp index edc8a92cab..3558675f58 100644 --- dmapd/dmapd.spec +++ dmapd/dmapd.spec.tmp @@ -11,17 +11,16 @@ Source0: http://www.flyn.org/projects/%name/%{name}-%{version}.tar.gz %{?systemd_requires} BuildRequires: libdmapsharing4-devel >= 3.9.3 BuildRequires: vips-devel >= 7.38 BuildRequires: gstreamer1-devel BuildRequires: gstreamer1-plugins-base-devel BuildRequires: totem-pl-parser-devel BuildRequires: systemd BuildRequires: make -Requires(pre): shadow-utils Requires(post): systemd-units systemd-sysv Requires(preun): systemd-units Requires(postun): systemd-units %description The dmapd project provides a GObject-based, Open Source implementation of DMAP sharing with the following features: @@ -43,16 +42,21 @@ of DMAP sharing with the following features: Dmapd runs on Linux and other POSIX operating systems. It has been used on OpenWrt Linux-based systems with as little as 32MB of memory to serve music, video and photograph libraries containing thousands of files. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >dmapd.sysusers.conf </dev/null || groupadd -r dmapd -getent passwd dmapd >/dev/null || useradd -r -g dmapd -d / -s /sbin/nologin -c "dmapd Daemon" dmapd -exit 0 %post /sbin/ldconfig %systemd_post dmapd.service %preun %systemd_preun dmapd.service RPMAutoSpec usage detected, not changing the spec file. diff --git dnsdist/dnsdist.spec dnsdist/dnsdist.spec.tmp index e322f349b5..b8b5261def 100644 --- dnsdist/dnsdist.spec +++ dnsdist/dnsdist.spec.tmp @@ -55,16 +55,21 @@ legitimate users while shunting or blocking abusive traffic. %prep %autosetup -p2 # run as dnsdist user sed -i '/^ExecStart/ s/dnsdist/dnsdist -u dnsdist -g dnsdist/' dnsdist.service.in +# Create a sysusers.d config file +cat >dnsdist.sysusers.conf </dev/null || groupadd -r dnsdist -getent passwd dnsdist >/dev/null || \ - useradd -r -g dnsdist -d / -s /sbin/nologin \ - -c "dnsdist user" dnsdist -exit 0 +install -m0644 -D dnsdist.sysusers.conf %{buildroot}%{_sysusersdir}/dnsdist.conf + %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun @@ -119,11 +120,12 @@ exit 0 %doc README.md %license COPYING %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %{_unitdir}/%{name}.service %{_unitdir}/%{name}@.service %dir %{_sysconfdir}/%{name}/ %config(noreplace) %{_sysconfdir}/%{name}/dnsdist.conf +%{_sysusersdir}/dnsdist.conf %changelog %autochangelog diff --git domoticz/domoticz.spec domoticz/domoticz.spec.tmp index 2987d9a790..26d3fb78c8 100644 --- domoticz/domoticz.spec +++ domoticz/domoticz.spec.tmp @@ -1,14 +1,14 @@ #global git_short_hash df9de70 #global git_hash df9de7020c4317a484c39f7330e6d1c9ca3d9ec9 Name: domoticz Version: 2024.7 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Open source Home Automation System # Automatically converted from old format: GPLv3+ and ASL 2.0 and Boost and BSD and MIT - review is highly recommended. License: GPL-3.0-or-later AND Apache-2.0 AND BSL-1.0 AND LicenseRef-Callaway-BSD AND LicenseRef-Callaway-MIT URL: http://www.domoticz.com Source0: https://github.com/domoticz/domoticz/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz #Source0: https://github.com/domoticz/domoticz/archive/%%{git_short_hash}.tar.gz#/%%{name}-%%{version}.tar.gz Source1: %{name}.service @@ -39,17 +39,16 @@ BuildRequires: minizip-compat-devel BuildRequires: mosquitto-devel BuildRequires: openssl-devel BuildRequires: python3-devel BuildRequires: sqlite-devel BuildRequires: systemd-devel BuildRequires: tinyxpath-devel BuildRequires: zlib-devel -Requires(pre): shadow-utils Requires(post): systemd Requires(postun): systemd Requires(preun): systemd Requires: google-droid-sans-fonts Recommends: mosquitto Recommends: system-python-libs >= 3.4 #Recommends: zwave-js-ui @@ -100,16 +99,22 @@ any mobile device # Add support for future versions of Python by replacing hardcoded version with macro sed -i 's/-lpythonVER/-lpython%{python3_version}/' CMakeLists.txt # Renaming of old define used wrong case in ZWave file sed -i 's/sTypeSetPoint/sTypeSetpoint/g' hardware/ZWaveBase.cpp rm -rf sqlite/ rm -rf tinyxpath/ cp -p %{SOURCE3} ./appversion.h +# Create a sysusers.d config file +cat >domoticz.sysusers.conf </dev/null || groupadd -r domoticz -getent passwd domoticz >/dev/null || \ -useradd -r -g domoticz -d %{_datadir}/%{name} -s /sbin/nologin \ --c "Domoticz Home Automation Server" domoticz # For OpenZWave USB access (/dev/ttyACM#) usermod -G domoticz,dialout domoticz %post %systemd_post %{name}.service @@ -233,19 +236,23 @@ usermod -G domoticz,dialout domoticz %files %license License.txt %doc README.md History.txt %{_bindir}/%{name} %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %{_datadir}/%{name}/ %attr(0755,domoticz,domoticz) %{_sharedstatedir}/%{name}/ %{_unitdir}/%{name}.service +%{_sysusersdir}/domoticz.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2024.7-4 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2024.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Jan 05 2025 Michael Cronenworth - 2024.7-2 - Fix ZWave SetPoint devices * Fri Dec 27 2024 Michael Cronenworth - 2024.7-1 - New stable release diff --git ebnetd/ebnetd.spec ebnetd/ebnetd.spec.tmp index f344a8e846..7ccf1d7922 100644 --- ebnetd/ebnetd.spec +++ ebnetd/ebnetd.spec.tmp @@ -2,17 +2,17 @@ %global username ebnetd %global gecos EBNET User %global base_homedir %{_localstatedir}/lib/ %global homedir %{base_homedir}%{username} Name: ebnetd Version: 1.0 -Release: 52%{?dist} +Release: 53%{?dist} License: GPL-2.0-or-later URL: http://www.sra.co.jp/people/m-kasahr/ebnetd/ # For systemd.macros BuildRequires: systemd BuildRequires: eb-devel BuildRequires: gcc autoconf automake libtool BuildRequires: make @@ -43,17 +43,16 @@ Requires: %{name}-common = %{version}-%{release} EBNET is a protocol to communicate to the EB library that is a C library for accessing "CD-ROM books". This package contains a EBNET protocol server. %package common Summary: Common package for ebnetd families -Requires(pre): shadow-utils %{?systemd_requires} %description common EBNET is a protocol to communicate to the EB library that is a C library for accessing "CD-ROM books". This package contains a bunch of the common programs/files to be shared by ebnetd families. @@ -79,16 +78,21 @@ HTTP/1.1. which provide a way to access "CD-ROM books" through the EB library. Note that ebhttpd can't be used for generic WWW purposes. %prep %autosetup -p1 cp -p %{SOURCE1} . autoreconf -i # to remove the unnecessary checking like g++ +# Create a sysusers.d config file +cat >ebnetd.sysusers.conf < /dev/null || groupadd -r %{username} -getent passwd %{username} > /dev/null || useradd -r -g %{username} -d %{homedir} -s /sbin/nologin -c '%{gecos}' %{username} -exit 0 %post -n ndtpd %systemd_post ndtpd.socket %preun -n ndtpd %systemd_preun ndtpd.socket ndtpd-instances.target %postun -n ndtpd @@ -177,16 +179,17 @@ exit 0 %{_sbindir}/ebndaily %{_sbindir}/ebnupgrade %{_infodir}/ebnetd.info* %lang(ja) %doc %{_infodir}/ebnetd-ja.info* %config(noreplace) %{_sysconfdir}/ebnetd.conf %attr (-, ebnetd, ebnetd) %{homedir} %attr (-, ebnetd, ebnetd) %{_localstatedir}/run/ebnetd %{_tmpfilesdir}/%{name}.conf +%{_sysusersdir}/ebnetd.conf %files -n ndtpd %{_sbindir}/ndtp* %{_libexecdir}/ndtpstat /lib/systemd/system/ndtpd.socket /lib/systemd/system/ndtpd@.service /lib/systemd/system/ndtpd-instances.target @@ -195,16 +198,19 @@ exit 0 %{_sbindir}/ebht* %{_libexecdir}/ebhtstat /lib/systemd/system/ebhttpd.socket /lib/systemd/system/ebhttpd@.service /lib/systemd/system/ebhttpd-instances.target %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.0-53 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.0-52 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Jul 17 2024 Fedora Release Engineering - 1.0-51 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed May 8 2024 Akira TAGOH - 1.0-50 - Fix FTBFS. diff --git elfutils/elfutils.spec elfutils/elfutils.spec.tmp index 70ec135728..c7b6346706 100644 --- elfutils/elfutils.spec +++ elfutils/elfutils.spec.tmp @@ -1,15 +1,15 @@ # Rebuild --with static to enable static subpackages # This is *not* supported by elfutils maintainers %bcond_with static Name: elfutils Version: 0.192 -%global baserelease 8 +%global baserelease 9 Release: %{baserelease}%{?dist} URL: http://elfutils.org/ %global source_url ftp://sourceware.org/pub/elfutils/%{version}/ License: GPL-3.0-or-later AND (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GFDL-1.3-no-invariants-or-later Source: %{?source_url}%{name}-%{version}.tar.bz2 Source1: elfutils-debuginfod.sysusers Summary: A collection of utilities and DSOs to handle ELF files and DWARF data @@ -291,19 +291,17 @@ BuildRequires: systemd %if %{with_sysusers} BuildRequires: systemd-rpm-macros %endif BuildRequires: make Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %if %{with_sysusers} -%{?sysusers_requires_compat} %else -Requires(pre): shadow-utils %endif # To extract .deb files with a bsdtar (= libarchive) subshell Requires: bsdtar %description debuginfod-client The elfutils-debuginfod-client package contains shared libraries dynamically loaded from -ldw, which use a debuginfod service to look up debuginfo and associated data. Also includes a @@ -517,32 +515,28 @@ fi %{_mandir}/man8/debuginfod*.8* %dir %attr(0700,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod %ghost %attr(0600,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod/debuginfod.sqlite %pre debuginfod %if %{with_sysusers} -%sysusers_create_compat %{SOURCE1} -%else -getent group debuginfod >/dev/null || groupadd -r debuginfod -getent passwd debuginfod >/dev/null || \ - useradd -r -g debuginfod -d /var/cache/debuginfod -s /sbin/nologin \ - -c "elfutils debuginfo server" debuginfod -exit 0 %endif %post debuginfod %systemd_post debuginfod.service %postun debuginfod %systemd_postun_with_restart debuginfod.service %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.192-9 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 0.192-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Dec 2 2024 Mark Wielaard - 0.192-7 - Add elfutils-0.192-ATOMIC_VAR_INIT.patch - Add elfutils-0.192-more-dwarf5-lang.patch diff --git erlang/erlang.spec erlang/erlang.spec.tmp index 5472a29a37..e1127607e8 100644 --- erlang/erlang.spec +++ erlang/erlang.spec.tmp @@ -64,17 +64,17 @@ # reltool (*) # wx # %global __with_wxwidgets 1 Name: erlang Version: 26.2.5.6 -Release: 2%{?dist} +Release: 3%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 URL: https://www.erlang.org VCS: git:https://github.com/erlang/otp.git Source0: https://github.com/erlang/otp/archive/OTP-%{version}/otp-OTP-%{version}.tar.gz Source5: epmd.service Source6: epmd.socket @@ -346,17 +346,16 @@ Low level interface to C. %package erts Summary: Functionality necessary to run the Erlang System itself BuildRequires: lksctp-tools-devel BuildRequires: m4 BuildRequires: ncurses-devel BuildRequires: zlib-devel # epmd user, epmd group -Requires(pre): shadow-utils Requires: %{name}-kernel%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} Requires: lksctp-tools # See erts/emulator/beam/erl_driver.h or call erlang:system_info(driver_version). #Provides: erlang(erl_drv_version) = %%(%%{buildroot}/bin/erl -noshell -eval 'io:format(erlang:system_info(driver_version)).' -s erlang halt) Provides: erlang(erl_drv_version) = 3.3 # See erts/emulator/beam/erl_nif.h or call erlang:system_info(nif_version). #Provides: erlang(erl_nif_version) = %%(%%{buildroot}/bin/erl -noshell -eval 'io:format(erlang:system_info(nif_version)).' -s erlang halt) @@ -738,16 +737,21 @@ Provides support for XML 1.0. %prep %autosetup -p1 -n otp-OTP-%{version} # FIXME we should come up with a better solution # remove shipped zlib sources #rm -f erts/emulator/zlib/*.[ch] +# Create a sysusers.d config file +cat >erlang.sysusers.conf </dev/null || groupadd -r epmd -getent passwd epmd >/dev/null || \ -useradd -r -g epmd -d /dev/null -s /sbin/nologin \ --c "Erlang Port Mapper Daemon" epmd 2>/dev/null || : %files %if %{with doc} %dir %{_docdir}/%{name}-%{version}/ %doc %{_docdir}/%{name}-%{version}/AUTHORS %doc %{_docdir}/%{name}-%{version}/COPYRIGHT %doc %{_docdir}/%{name}-%{version}/LICENSE.txt @@ -1204,16 +1205,17 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/zlib.* %endif %{_libdir}/erlang/releases/* %{_libdir}/erlang/usr/ %{_unitdir}/epmd.service %{_unitdir}/epmd.socket %{_unitdir}/epmd@.service %{_unitdir}/epmd@.socket +%{_sysusersdir}/erlang.conf %if %{__with_wxwidgets} %files et %dir %{_libdir}/erlang/lib/et-*/ %{_libdir}/erlang/lib/et-*/ebin %{_libdir}/erlang/lib/et-*/include %{_libdir}/erlang/lib/et-*/src %if %{with doc} @@ -1956,16 +1958,19 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/xmerl_scan.* %{_mandir}/man3/xmerl_xpath.* %{_mandir}/man3/xmerl_xs.* %{_mandir}/man3/xmerl_xsd.* %endif %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 26.2.5.6-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 26.2.5.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Dec 7 2024 Peter Lemenkov - 26.2.5.6-1 - Ver. 26.2.5.6 * Fri Nov 1 2024 Peter Lemenkov - 26.2.5.5-1 - Ver. 26.2.5.5 RPMAutoSpec usage detected, not changing the spec file. diff --git etcd/etcd.spec etcd/etcd.spec.tmp index 3290a1d988..4f0d19483e 100644 --- etcd/etcd.spec +++ etcd/etcd.spec.tmp @@ -42,17 +42,16 @@ Summary: Distributed reliable key-value store for the most critical data License: Apache-2.0 URL: %{gourl} Source0: %{gosource} Source1: %{name}.service Source2: %{name}.conf BuildRequires: python3-devel BuildRequires: systemd-rpm-macros -Requires(pre): shadow-utils %description %{common_description} %gopkg %prep %goprep -k rm -rf vendor/ @@ -78,16 +77,21 @@ mv server/!(v3) server/v3/. mv tools/!(v3) tools/v3/. shopt -u extglob %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires +# Create a sysusers.d config file +cat >etcd.sysusers.conf </dev/null || groupadd -r %{name} -getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/%{name} \ - -s /sbin/nologin -c "etcd user" %{name} %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun @@ -140,11 +142,12 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/ %doc Documentation README-*.md READMEv2-etcdctl.md %{_bindir}/* %config(noreplace) %{_sysconfdir}/%{name} %dir %attr(-,%{name},%{name}) %{_sharedstatedir}/%{name} %{_unitdir}/%{name}.service %endif %gopkgfiles +%{_sysusersdir}/etcd.conf %changelog %autochangelog diff --git exim/exim.spec exim/exim.spec.tmp index 6d848a473e..0b54dae409 100644 --- exim/exim.spec +++ exim/exim.spec.tmp @@ -7,26 +7,25 @@ %endif # hardened build if not overridden %{!?_hardened_build:%global _hardened_build 1} Summary: The exim mail transfer agent Name: exim Version: 4.98 -Release: 5%{?dist} +Release: 6%{?dist} # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later Url: https://www.exim.org/ Provides: MTA smtpd smtpdaemon server(smtp) Requires(post): %{_sbindir}/restorecon %{_sbindir}/alternatives systemd Requires(preun): %{_sbindir}/alternatives systemd Requires(postun): %{_sbindir}/alternatives systemd -Requires(pre): %{_sbindir}/groupadd, %{_sbindir}/useradd %if %{with clamav} BuildRequires: clamd %endif Source: https://ftp.exim.org/pub/exim/exim4/exim-%{version}.tar.xz Source1: https://ftp.exim.org/pub/exim/exim4/%{name}-%{version}.tar.xz.asc Source2: https://downloads.exim.org/Exim-Maintainers-Keyring.asc Source3: exim.sysconfig @@ -193,16 +192,22 @@ cp exim_monitor/EDITME Local/eximon.conf # Workaround for rhbz#1791878 pushd doc for f in $(ls -dp cve-* | grep -v '/\|\(\.txt\)$'); do mv "$f" "$f.txt" done popd +# Create a sysusers.d config file +cat >exim.sysusers.conf </dev/null -%{_sbindir}/useradd -d %{_var}/spool/exim -s %{_sbindir}/nologin -G mail -M -r -u 93 -g exim exim 2>/dev/null # Copy TLS certs from old location to new -- don't move them, because the # config file may be modified and may be pointing to the old location. if [ ! -f /etc/pki/tls/certs/exim.pem -a -f %{_datadir}/ssl/certs/exim.pem ] ; then cp %{_datadir}/ssl/certs/exim.pem /etc/pki/tls/certs/exim.pem cp %{_datadir}/ssl/private/exim.pem /etc/pki/tls/private/exim.pem fi exit 0 @@ -439,16 +444,17 @@ fi %attr(0755,root,root) %ghost %{_bindir}/mailq %attr(0755,root,root) %ghost %{_bindir}/runq %attr(0755,root,root) %ghost %{_bindir}/rsmtp %attr(0755,root,root) %ghost %{_bindir}/rmail %attr(0755,root,root) %ghost %{_bindir}/newaliases %attr(0755,root,root) %ghost /usr/lib/sendmail %ghost %{_sysconfdir}/pam.d/smtp %ghost %{_mandir}/man1/mailq.1.gz +%{_sysusersdir}/exim.conf %files mysql %{_libdir}/exim/%{version}-%{release}/lookups/mysql.so %files pgsql %{_libdir}/exim/%{version}-%{release}/lookups/pgsql.so %files mon @@ -491,16 +497,19 @@ fi %files greylist %config %{_sysconfdir}/exim/exim-greylist.conf.inc %ghost %{_var}/spool/exim/db/greylist.db %{_sysconfdir}/exim/mk-greylist-db.sql %{_sysconfdir}/cron.daily/greylist-tidy.sh %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 4.98-6 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 4.98-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Jan 12 2025 Zbigniew Jędrzejewski-Szmek - 4.98-4 - Rebuilt for the bin-sbin merge (2nd attempt) * Thu Jul 25 2024 Miroslav Suchý - 4.98-3 - convert license to SPDX diff --git fapolicyd/fapolicyd.spec fapolicyd/fapolicyd.spec.tmp index 4042ddfe10..17d97f7f16 100644 --- fapolicyd/fapolicyd.spec +++ fapolicyd/fapolicyd.spec.tmp @@ -1,16 +1,16 @@ %global selinuxtype targeted %global moduletype contrib %define semodule_version 0.7 Summary: Application Whitelisting Daemon Name: fapolicyd Version: 1.3.4 -Release: 2%{?dist} +Release: 3%{?dist} License: GPL-3.0-or-later URL: http://people.redhat.com/sgrubb/fapolicyd Source0: https://people.redhat.com/sgrubb/fapolicyd/%{name}-%{version}.tar.gz Source1: https://github.com/linux-application-whitelisting/%{name}-selinux/releases/download/v%{semodule_version}/%{name}-selinux-%{semodule_version}.tar.gz # we bundle uthash for rhel9 Source2: https://github.com/troydhanson/uthash/archive/refs/tags/v2.3.0.tar.gz#/uthash-2.3.0.tar.gz BuildRequires: gcc BuildRequires: kernel-headers @@ -20,17 +20,16 @@ BuildRequires: libcap-ng-devel libseccomp-devel lmdb-devel BuildRequires: python3-devel %if 0%{?rhel} == 0 BuildRequires: uthash-devel %endif Requires: rpm-plugin-fapolicyd Recommends: %{name}-selinux -Requires(pre): shadow-utils Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units Patch1: selinux.patch # RHEL-specific patches Patch100: fapolicyd-uthash-bundle.patch @@ -77,16 +76,21 @@ sed -i "s/%python3_path%/`readlink -f %{__python3} | sed 's/\//\\\\\//g'`/g" rul interpret=`readelf -e /usr/bin/bash \ | grep Requesting \ | sed 's/.$//' \ | rev | cut -d" " -f1 \ | rev` sed -i "s|%ld_so_path%|`realpath $interpret`|g" rules.d/*.rules +# Create a sysusers.d config file +cat >fapolicyd.sysusers.conf </dev/null || useradd -r -M -d %{_localstatedir}/lib/%{name} -s /sbin/nologin -c "Application Whitelisting Daemon" %{name} +install -m0644 -D fapolicyd.sysusers.conf %{buildroot}%{_sysusersdir}/fapolicyd.conf + %post # if no pre-existing rule file if [ ! -e %{_sysconfdir}/%{name}/%{name}.rules ] ; then files=`ls %{_sysconfdir}/%{name}/rules.d/ 2>/dev/null | wc -w` # Only if no pre-existing component rules if [ "$files" -eq 0 ] ; then ## Install the known libs policy @@ -185,16 +189,17 @@ fi %attr(644,root,root) %{_mandir}/man8/* %attr(644,root,root) %{_mandir}/man5/* %ghost %attr(440,%{name},%{name}) %verify(not md5 size mtime) %{_localstatedir}/log/%{name}-access.log %attr(770,root,%{name}) %dir %{_localstatedir}/lib/%{name} %attr(770,root,%{name}) %dir /run/%{name} %ghost %attr(660,root,%{name}) /run/%{name}/%{name}.fifo %ghost %attr(660,%{name},%{name}) %verify(not md5 size mtime) %{_localstatedir}/lib/%{name}/data.mdb %ghost %attr(660,%{name},%{name}) %verify(not md5 size mtime) %{_localstatedir}/lib/%{name}/lock.mdb +%{_sysusersdir}/fapolicyd.conf %files selinux %{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2 %ghost %verify(not md5 size mode mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{name} %{_datadir}/selinux/devel/include/%{moduletype}/ipp-%{name}.if %post selinux %selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2 @@ -204,16 +209,19 @@ fi if [ $1 -eq 0 ]; then %selinux_modules_uninstall -s %{selinuxtype} %{name} fi %posttrans selinux %selinux_relabel_post -s %{selinuxtype} %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.3.4-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Oct 28 2024 Radovan Sroka - 1.3.4-1 - rebase to v1.3.4 * Wed Jul 17 2024 Fedora Release Engineering - 1.3.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild RPMAutoSpec usage detected, not changing the spec file. diff --git festival/festival.spec festival/festival.spec.tmp index e14001fcef..f044f223f6 100644 --- festival/festival.spec +++ festival/festival.spec.tmp @@ -296,16 +296,21 @@ you can also interface with Festival in via the shell or with BSD sockets. %patch -P100 -p1 -b .pulseaudio %patch -P101 -p1 -b .use-system-speech-tools %patch -P102 -p1 -b .use-system-libs %patch -P103 -p1 -b .filesystem-standard %patch -P104 -p1 -b .siteinit %patch -P105 -p1 +# Create a sysusers.d config file +cat >festival.sysusers.conf </dev/null || groupadd -r festival -getent passwd festival >/dev/null || useradd -r -g festival -d / -s /sbin/nologin -c "festival Daemon" festival -exit 0 %post %systemd_post festival.service %preun %systemd_preun festival.service %postun diff --git firebird/firebird.spec firebird/firebird.spec.tmp index 4344e79320..dae19d5941 100644 --- firebird/firebird.spec +++ firebird/firebird.spec.tmp @@ -5,17 +5,17 @@ %global _hardened_build 1 # firebird is mis-compiled when LTO is enabled. A root # cause analysis has not yet been completed. Reported upstream. # Disable LTO for now %global _lto_cflags %nil Name: firebird Version: %{upversion} -Release: 6%{?dist} +Release: 7%{?dist} Summary: SQL relational database management system # Automatically converted from old format: Interbase - review is highly recommended. License: Interbase-1.0 URL: http://www.firebirdsql.org/ Source0: https://github.com/FirebirdSQL/firebird/releases/download/v4.0.3/%{pkgversion}.tar.xz Source1: firebird-logrotate @@ -55,18 +55,16 @@ BuildRequires: zlib-devel BuildRequires: procmail BuildRequires: make BuildRequires: libtomcrypt-devel BuildRequires: unzip BuildRequires: sed Requires(postun): /usr/sbin/userdel Requires(postun): /usr/sbin/groupdel -Requires(pre): /usr/sbin/groupadd -Requires(pre): /usr/sbin/useradd Recommends: logrotate Requires: libfbclient2 = %{version}-%{release} Requires: libib-util = %{version}-%{release} Requires: %{name}-utils = %{version}-%{release} Obsoletes: firebird-arch < 4.0 Obsoletes: firebird-filesystem < 4.0 Obsoletes: firebird-classic-common < 4.0 @@ -202,16 +200,21 @@ in production systems, under a variety of names, since 1981. %patch -P205 -p1 %patch -P301 -p1 %patch -P302 -p1 %patch -P303 -p1 %patch -P401 -p1 %patch -P402 -p1 %patch -P501 -p1 +# Create a sysusers.d config file +cat >firebird.sysusers.conf < .%{_localstatedir}/log/%{name}/%{name}.log sed "s@%{name}.log@%{_localstatedir}/log/%{name}/%{name}.log@g" %{SOURCE1} > .%{_sysconfdir}/logrotate.d/%{name} mkdir -p .%{_unitdir} cp -f %{SOURCE3} .%{_unitdir}/%{name}.service +install -m0644 -D firebird.sysusers.conf %{buildroot}%{_sysusersdir}/firebird.conf + %pre -# Create the firebird group if it doesn't exist -getent group %{name} > /dev/null || /usr/sbin/groupadd -r %{name} -getent passwd %{name} >/dev/null || /usr/sbin/useradd -d / -g %{name} -s /sbin/nologin -r %{name} - # Add gds_db to /etc/services if needed FileName=/etc/services newLine="gds_db 3050/tcp # Firebird SQL Database Remote Protocol" oldLine=`grep "^gds_db" $FileName` if [ -z "$oldLine" ]; then echo $newLine >> $FileName fi @@ -328,16 +329,17 @@ fi %attr(0644,firebird,firebird) %{_localstatedir}/lib/%{name}/tzdata/*.res %ghost %dir %attr(0775,%{name},%{name}) /run/%{name} %ghost %attr(0644,%{name},%{name}) /run/%{name}/fb_guard %dir %{_localstatedir}/log/%{name} %config(noreplace) %attr(0664,%{name},%{name}) %{_localstatedir}/log/%{name}/%{name}.log %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name} %attr(0644,root,root) %{_unitdir}/%{name}.service +%{_sysusersdir}/firebird.conf %files devel %{_includedir}/*.h %{_includedir}/%{name} %{_libdir}/fb_config %{_sbindir}/fb_config @@ -376,16 +378,19 @@ fi %files examples %{_docdir}/%{name}/sample %attr(0600,firebird,firebird) %{_localstatedir}/lib/%{name}/data/employee.fdb %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 4.0.4.3010-7 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 4.0.4.3010-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 07 2024 Miroslav Suchý - 4.0.4.3010-5 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 4.0.4.3010-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git flow-tools/flow-tools.spec flow-tools/flow-tools.spec.tmp index ebe1f9cf97..045235e724 100644 --- flow-tools/flow-tools.spec +++ flow-tools/flow-tools.spec.tmp @@ -7,17 +7,17 @@ %global username flow-tools %global homedir %{_localstatedir}/%{name} %global gecos "Network flow monitoring" Version: 0.68.5.1 Name: flow-tools Summary: Tool set for working with NetFlow data -Release: 43%{?dist} +Release: 44%{?dist} # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 Source1: flow-capture.service Source2: flow-capture.sysconfig Patch0: flow-werror-fix.patch # Fix extern usage @@ -32,17 +32,16 @@ BuildRequires: mariadb-connector-c-devel BuildRequires: libpq-devel BuildRequires: zlib-devel BuildRequires: bison BuildRequires: flex BuildRequires: doxygen %if 0%{?fedora} >= 31 BuildRequires: /usr/bin/2to3 %endif -Requires(pre): shadow-utils BuildRequires: systemd-rpm-macros BuildRequires: make Provides: group(%username) Provides: user(%username) %description Flow-tools is library and a collection of programs used to collect, @@ -114,16 +113,21 @@ sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow* 2to3 --write --nobackups bin/flow* %else sed -i '1s|^#!.*python|#!/usr/bin/python2|' bin/flow* %endif sed -i '1s|^#!.*perl|#!/usr/bin/perl|' utils/* # Fix mariadb-connector-c detection sed -i s/my_init/mysql_init/g configure +# Create a sysusers.d config file +cat >flow-tools.sysusers.conf </dev/null || groupadd -r %{username} -getent passwd %{username} >/dev/null || \ - useradd -r -g %{username} -d %{homedir} -s /sbin/nologin \ - -c '%{gecos}' %{username} -exit 0 +install -m0644 -D flow-tools.sysusers.conf %{buildroot}%{_sysusersdir}/flow-tools.conf + %post /sbin/ldconfig %systemd_post flow-capture.service %preun %systemd_preun flow-capture.service @@ -216,31 +216,35 @@ exit 0 %dir %{_sysconfdir}/%{name}/sym/ %config(noreplace) %{_sysconfdir}/%{name}/cfg/* %config(noreplace) %{_sysconfdir}/%{name}/sym/* %config(noreplace) %{_sysconfdir}/sysconfig/flow-capture %{_unitdir}/flow-capture.service %attr(-,flow-tools,flow-tools) %{_localstatedir}/%{name}/ %dir %{_datadir}/%{name}/ %{_datadir}/%{name}/* +%{_sysusersdir}/flow-tools.conf %files devel %{_libdir}/*.so %{_includedir}/*.h %files rrdtool %{_bindir}/flow-rpt2rrd %{_bindir}/flow-log2rrd %{_mandir}/man1/flow-rpt2rrd.1* %{_mandir}/man1/flow-log2rrd.1* %files docs %doc docs/*.html ChangeLog.old TODO INSTALL SECURITY %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.68.5.1-44 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 0.68.5.1-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 28 2024 Miroslav Suchý - 0.68.5.1-42 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 0.68.5.1-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git frozen-bubble/frozen-bubble.spec frozen-bubble/frozen-bubble.spec.tmp index df45277a88..5edfdf61b8 100644 --- frozen-bubble/frozen-bubble.spec +++ frozen-bubble/frozen-bubble.spec.tmp @@ -1,14 +1,14 @@ %global _hardened_build 1 Summary: Frozen Bubble arcade game Name: frozen-bubble Version: 2.2.1 -Release: 0.50.beta1%{?dist} +Release: 0.51.beta1%{?dist} # Automatically converted from old format: GPLv2 - review is highly recommended. License: GPL-2.0-only URL: http://www.frozen-bubble.org/ Source0: http://www.frozen-bubble.org/data/frozen-bubble-%{version}-beta1.tar.bz2 Source1: frozen-bubble.desktop Source2: fb-server.service Patch0: frozen-bubble-2.2.1-setuid.patch Patch1: 0001-Fix-buffer-size-when-formatting-current-date.patch @@ -64,16 +64,21 @@ Frozen Bubble network game server. %prep %autosetup -p1 -n %{name}-%{version}-beta1 # Rename this README since the main server README has the same name %{__mv} server/init/README server/README.init # Change the example server configuration file to be a working one, which only # launches a LAN server and doesn't try to register itself on the Internet %{__sed} -ie "s#^a .*#z\nq\nL#" server/init/fb-server.conf +# Create a sysusers.d config file +cat >frozen-bubble.sysusers.conf < https://upload.wikimedia.org/wikipedia/commons/d/d6/Frozen-bubble.jpg http://www.frozen-bubble.org/data/fb2-5p.png contact2_at_frozen-bubble.org EOF +install -m0644 -D frozen-bubble.sysusers.conf %{buildroot}%{_sysusersdir}/frozen-bubble.conf + %check ./Build test appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/frozen-bubble.appdata.xml %post server -/usr/sbin/useradd -r -s /sbin/nologin -d %{_datadir}/%{name} fbubble \ - &>/dev/null || : %systemd_post fb-server.service %preun server %systemd_preun fb-server.service %postun server %systemd_postun_with_restart fb-server.service @@ -178,19 +183,23 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/frozen-bu %{_mandir}/man3/*.3pm* %files server %doc server/AUTHORS server/README* %license COPYING %config(noreplace) %{_sysconfdir}/fb-server.conf %{_unitdir}/fb-server.service %{_bindir}/fb-server +%{_sysusersdir}/frozen-bubble.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.2.1-0.51.beta1 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 2.2.1-0.50.beta1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Jul 29 2024 Miroslav Suchý - 2.2.1-0.49.beta1 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 2.2.1-0.48.beta1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git galera/galera.spec galera/galera.spec.tmp index bb5441396f..a6b5eae815 100644 --- galera/galera.spec +++ galera/galera.spec.tmp @@ -1,14 +1,14 @@ # To both save infrastrucutre resources and workaround for i686 FTBFS ExcludeArch: %{ix86} Name: galera Version: 26.4.20 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Synchronous multi-master wsrep provider (replication engine) License: GPL-2.0-only URL: http://galeracluster.com/ # Actually, the truth is, we do use galera source tarball provided by MariaDB on # following URL (without macros): # https://archive.mariadb.org/mariadb-10.4.16/galera-26.4.6/src/galera-26.4.6.tar.gz @@ -16,17 +16,16 @@ URL: http://galeracluster.com/ Source0: http://releases.galeracluster.com/source/%{name}-%{version}.tar.gz Patch0: cmake_paths.patch Patch1: docs.patch Patch2: network.patch Patch3: openssl_engine.patch BuildRequires: boost-devel check-devel openssl-devel cmake systemd gcc-c++ asio-devel -Requires(pre): /usr/sbin/useradd Requires: nmap-ncat Requires: procps-ng %{?systemd_requires} %description Galera is a fast synchronous multimaster wsrep provider (replication engine) @@ -37,16 +36,21 @@ description of Galera replication engine see https://www.galeracluster.com web. %prep %setup -q %patch -P0 -p1 %patch -P1 -p1 %patch -P2 -p1 %patch -P3 -p1 +# Create a sysusers.d config file +cat >galera.sysusers.conf </dev/null 2>&1 || : # Fixup after upgrading on system before systemd unit rename unlink /etc/systemd/system/garb.service || : %post /sbin/ldconfig %systemd_post garb.service %preun @@ -141,19 +146,23 @@ unlink /etc/systemd/system/garb.service || : %{_unitdir}/garb.service %{_libdir}/galera/libgalera_smm.so %doc %{_docdir}/galera/COPYING %doc %{_docdir}/galera/LICENSE.asio %doc %{_docdir}/galera/README-MySQL +%{_sysusersdir}/galera.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 26.4.20-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 26.4.20-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Nov 14 2024 Michal Schorm - 26.4.20-1 - Rebase to 26.4.20 * Fri Oct 18 2024 Michal Schorm - 26.4.19-1 - Rebase to 26.4.19 diff --git ganglia/ganglia.spec ganglia/ganglia.spec.tmp index 7fa091aa17..54c9fa9e2d 100644 --- ganglia/ganglia.spec +++ ganglia/ganglia.spec.tmp @@ -9,17 +9,17 @@ %global py2 1 %else %global py3 1 %endif Summary: Distributed Monitoring System Name: ganglia Version: %{gangver} -Release: 56%{?dist} +Release: 57%{?dist} # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/sourceforge/ganglia/ganglia-%{version}.tar.gz Source1: https://github.com/ganglia/ganglia-web/archive/%{webver}/ganglia-web-%{webver}.tar.gz Source2: gmond.service Source3: gmetad.service Source4: ganglia-httpd24.conf.d @@ -196,16 +196,21 @@ install -m 0644 %{SOURCE3} gmetad/gmetad.service.in %setup -q -T -D -a 1 mv ganglia-web-%{webver} web pushd web %patch -P 20 -p1 %patch -P 21 -p1 %patch -P 22 -p1 popd +# Create a sysusers.d config file +cat >ganglia.sysusers.conf < 7 aclocal -I m4 autoheader automake --add-missing --copy --foreign 2>/dev/null libtoolize --automake --copy @@ -330,20 +335,18 @@ rm -f %{buildroot}%{_libdir}/*.la chmod 0644 %{buildroot}%{_datadir}/%{name}/header.php %{?with_python:chmod 0644 %{buildroot}%{_libdir}/%{name}/python_modules/*.py} chmod 0644 %{buildroot}%{_datadir}/%{name}/css/smoothness/jquery-ui-1.10.2.custom.css chmod 0644 %{buildroot}%{_datadir}/%{name}/css/smoothness/jquery-ui-1.10.2.custom.min.css # Remove shebang %{?with_python:sed -i '1{\@^#!@d}' %{buildroot}%{_libdir}/%{name}/python_modules/*.py} -%pre -## Add the "ganglia" user -/usr/sbin/useradd -c "Ganglia Monitoring System" \ - -s /sbin/nologin -r -d %{_localstatedir}/lib/%{name} ganglia 2> /dev/null || : +install -m0644 -D ganglia.sysusers.conf %{buildroot}%{_sysusersdir}/ganglia.conf + %if 0%{?systemd} %post gmond %systemd_post gmond.service %preun gmond %systemd_preun gmond.service @@ -391,16 +394,17 @@ end %files %license COPYING %doc AUTHORS NEWS README ChangeLog %{_libdir}/libganglia*.so.* %dir %{_libdir}/ganglia %{_libdir}/ganglia/*.so %{?with_python:%exclude %{_libdir}/ganglia/modpython.so} +%{_sysusersdir}/ganglia.conf %files gmetad %dir %{_localstatedir}/lib/%{name} %attr(0755,ganglia,ganglia) %{_localstatedir}/lib/%{name}/rrds %{_sbindir}/gmetad %if 0%{?systemd} %{_unitdir}/gmetad.service %else @@ -461,16 +465,19 @@ end %{_datadir}/%{name} %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/conf %config(noreplace) %attr(0644,apache,apache) %{_localstatedir}/lib/%{name}-web/conf/*.json %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/cache %dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}-web/dwoo/compiled %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 3.7.2-57 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 3.7.2-56 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Nov 04 2024 Terje Rosten - 3.7.6-55 - Add forgotten int() conversion patch * Tue Oct 15 2024 Terje Rosten - 3.7.6-54 - Various fixes to improve Python 3 support diff --git getdns/getdns.spec getdns/getdns.spec.tmp index 550f0420d2..d7f3705129 100644 --- getdns/getdns.spec +++ getdns/getdns.spec.tmp @@ -4,17 +4,17 @@ %global upstream_version %{version}%{?extraver:-%{extraver}} %global stubby_version 0.4.2 %undefine __cmake_in_source_build Summary: Modern asynchronous API to the DNS Name: getdns Version: 1.7.3 -Release: 7%{?extraver:.%{extraver}}%{?dist} +Release: 8%{?extraver:.%{extraver}}%{?dist} License: BSD-3-Clause Url: http://www.getdnsapi.net Source: http://www.getdnsapi.net/dist/%{name}-%{upstream_version}.tar.gz Source1: http://www.getdnsapi.net/dist/%{name}-%{upstream_version}.tar.gz.asc Source2: http://keys.gnupg.net/pks/lookup?op=get&search=0xE5F8F8212F77A498#/willem.nlnetlabs.nl BuildRequires: gcc BuildRequires: libidn2-devel unbound-devel doxygen libevent-devel BuildRequires: pkgconfig openssl-devel libyaml-devel @@ -70,16 +70,21 @@ Provides: stubby%{?_isa} = stubby-%{stubby_version} Stubby is an application that acts as a local DNS Privacy stub resolver (using DNS-over-TLS). Stubby encrypts DNS queries sent from a client machine (desktop or laptop) to a DNS Privacy resolver increasing end user privacy. Stubby is in the early stages of development but is suitable for technical/advanced users. A more generally user-friendly version is on the way! %end %endif %prep %{?gpgverify:%gpgverify -k 2 -s 1 -d 0} %autosetup -p1 -n %{name}-%{upstream_version} +# Create a sysusers.d config file +cat >getdns.sysusers.conf </dev/null || groupadd -r stubby -getent passwd stubby >/dev/null || \ -useradd -r -g stubby -d %{_sysconfdir}/stubby -s /sbin/nologin \ - -c "stubby DNS daemon account" stubby -exit 0 %post stubby %systemd_post stubby.service %preun stubby %systemd_preun stubby.service %postun stubby %systemd_postun_with_restart stubby.service %end %endif %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.7.3-8 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1.7.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 1.7.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 1.7.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild RPMAutoSpec usage detected, not changing the spec file. diff --git gitit/gitit.spec gitit/gitit.spec.tmp index fcd5f1a5e5..0b9272ce0b 100644 --- gitit/gitit.spec +++ gitit/gitit.spec.tmp @@ -38,17 +38,16 @@ Provides: bundled(js-yui2) = 2.7.0 # I couldn't find any version information for bluetrip or tango icons. Provides: bundled(bluetrip) Provides: bundled(tango-icon-theme) # We install a systemd service file. BuildRequires: systemd # Want to create a user for gitit. -Requires(pre): shadow-utils # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-HStringTemplate-devel BuildRequires: ghc-HTTP-devel BuildRequires: ghc-SHA-devel BuildRequires: ghc-aeson-devel @@ -236,16 +235,21 @@ This package provides the Haskell %{name} profiling library. %endif %prep # Begin cabal-rpm setup: %setup -q # End cabal-rpm setup +# Create a sysusers.d config file +cat >gitit.sysusers.conf </dev/null || groupadd -r gitit -getent passwd gitit >/dev/null || \ - useradd -r -g gitit -d %{_sharedstatedir}/gitit -s /sbin/nologin \ - -c "Account for gitit wiki service" gitit -exit 0 +install -m0644 -D gitit.sysusers.conf %{buildroot}%{_sysusersdir}/gitit.conf + %post %systemd_post gitit.service %preun %systemd_preun gitit.service %postun @@ -293,16 +293,17 @@ exit 0 # End cabal-rpm files %{_unitdir}/gitit.service %config(noreplace) %{_sysconfdir}/gitit # We want to install /var/lib/gitit/wiki and make it owned by the # gitit user created in %pre... I forget if this is the best way to do that. # (I guess the alternative is to try and make the directories in %post). %attr(-,gitit,gitit) %dir %{_sharedstatedir}/gitit/ %attr(-,gitit,gitit) %dir %{_sharedstatedir}/gitit/wiki/ +%{_sysusersdir}/gitit.conf %files common # Begin cabal-rpm files: %license LICENSE %doc CHANGES %{_datadir}/%{pkgver} # End cabal-rpm files diff --git gitolite3/gitolite3.spec gitolite3/gitolite3.spec.tmp index 4633b69c7b..71c2c3034f 100644 --- gitolite3/gitolite3.spec +++ gitolite3/gitolite3.spec.tmp @@ -4,33 +4,32 @@ %global gitolite_homedir /var/lib/%{name} %else %global gitolite_homedir %{_sharedstatedir}/%{name} %endif Name: gitolite3 Epoch: 1 Version: 3.6.13 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Highly flexible server for git directory version tracker License: GPL-2.0-only AND CC-BY-SA-1.0 URL: http://github.com/sitaramc/gitolite Source0: https://github.com/sitaramc/gitolite/archive/v%{version}.tar.gz Source1: gitolite3-README-fedora # Upstream: https://github.com/sitaramc/gitolite/commit/c656af01b73a5cc4f80512 Source2: compile-1 BuildArch: noarch BuildRequires: perl-generators Provides: perl(%{name}) = %{version}-%{release} Requires: git Requires: openssh-clients -Requires(pre): shadow-utils Recommends: subversion %description Gitolite allows a server to host many git repositories and provide access to many developers, without having to give them real userids on the server. The essential magic in doing this is ssh's pubkey access and the authorized keys file, and the inspiration was an older program called gitosis. @@ -41,16 +40,21 @@ without requiring root permissions, and with no additional software than git itself and perl. It also has several other neat features described below and elsewhere in the doc/ directory. %prep %setup -qn gitolite-%{version} cp %{SOURCE1} . +# Create a sysusers.d config file +cat >gitolite3.sysusers.conf <src/VERSION cp -a src/* $RPM_BUILD_ROOT%{_datadir}/%{name} cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{name}/commands/ ln -s %{_datadir}/%{name}/gitolite $RPM_BUILD_ROOT%{_bindir}/gitolite # empty authorized_keys file touch $RPM_BUILD_ROOT%{gitolite_homedir}/.ssh/authorized_keys +install -m0644 -D gitolite3.sysusers.conf %{buildroot}%{_sysusersdir}/gitolite3.conf + -%pre -# Add "gitolite" user per https://fedoraproject.org/wiki/Packaging:UsersAndGroups -getent group %{name} >/dev/null || groupadd -r %{name} -getent passwd %{name} >/dev/null || \ -useradd -r -g %{name} -d %{gitolite_homedir} -s /bin/sh \ - -c "git repository hosting" %{name} -exit 0 %files %{_bindir}/* %{perl_vendorlib}/* %{_datadir}/%{name} # make homedir non world readable %attr(750,%{name},%{name}) %dir %{gitolite_homedir} %attr(750,%{name},%{name}) %dir %{gitolite_homedir}/.ssh %config(noreplace) %attr(640,%{name},%{name}) %{gitolite_homedir}/.ssh/authorized_keys %doc gitolite3-README-fedora COPYING README.markdown CHANGELOG +%{_sysusersdir}/gitolite3.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1:3.6.13-7 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 1:3.6.13-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 1:3.6.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 1:3.6.13-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild RPMAutoSpec usage detected, not changing the spec file. diff --git gkrellm/gkrellm.spec gkrellm/gkrellm.spec.tmp index e65dc71597..26746cfb0a 100644 --- gkrellm/gkrellm.spec +++ gkrellm/gkrellm.spec.tmp @@ -27,17 +27,17 @@ Additional features are: * A gui popup for configuration of chart sizes and resolutions. %package daemon Summary: The GNU Krell Monitors Server # systemd >= 186 for scriptlet macros BuildRequires: systemd >= 186 BuildRequires: make -Requires(pre): shadow-utils systemd +Requires(pre): systemd Requires(post,preun,postun): systemd %description daemon gkrellmd listens for connections from gkrellm clients. When a gkrellm client connects to a gkrellmd server all builtin monitors collect their data from the server. @@ -54,16 +54,21 @@ Development files for the GNU Krell Monitors. %autosetup -p1 for i in gkrellmd.1 gkrellm.1 README Changelog.OLD Changelog-plugins.html \ src/gkrellm.h server/gkrellmd.h; do sed -i -e "s@/usr/lib/gkrellm2*/plugins@%{_libdir}/gkrellm2/plugins@" $i sed -i -e "s@/usr/local/lib/gkrellm2*/plugins@/usr/local/%{_lib}/gkrellm2/plugins@" $i done +# Create a sysusers.d config file +cat >gkrellm.sysusers.conf </dev/null || groupadd -r gkrellmd -getent passwd gkrellmd >/dev/null || \ -useradd -r -g gkrellmd -M -d / -s /sbin/nologin -c "GNU Krell daemon" gkrellmd -: %post daemon %systemd_post gkrellmd.service %preun daemon %systemd_preun gkrellmd.service %postun daemon @@ -120,12 +122,13 @@ useradd -r -g gkrellmd -M -d / -s /sbin/nologin -c "GNU Krell daemon" gkrellmd %{_libdir}/pkgconfig/%{name}.pc %files daemon %license %{_licensedir}/%{name}* %{_unitdir}/gkrellmd.service %{_sbindir}/gkrellmd %{_mandir}/man1/gkrellmd.* %config(noreplace) %{_sysconfdir}/gkrellmd.conf +%{_sysusersdir}/gkrellm.conf %changelog %autochangelog diff --git glusterfs/glusterfs.spec glusterfs/glusterfs.spec.tmp index eb067ebb1d..5853bf517c 100644 --- glusterfs/glusterfs.spec +++ glusterfs/glusterfs.spec.tmp @@ -191,37 +191,36 @@ ##----------------------------------------------------------------------------- ## All package definitions should be placed here in alphabetical order ## Summary: Distributed File System %if ( 0%{_for_fedora_koji_builds} ) Name: glusterfs Version: 11.1 -Release: 8%{?prereltag:%{prereltag}}%{?dist} +Release: 9%{?prereltag:%{prereltag}}%{?dist} %else Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ -Release: 0.@PACKAGE_RELEASE@%{?dist}.21 +Release: 0.@PACKAGE_RELEASE@%{?dist}.22 %endif License: GPL-2.0-only OR LGPL-3.0-or-later URL: http://docs.gluster.org/ %if ( 0%{_for_fedora_koji_builds} ) Source0: http://bits.gluster.org/pub/gluster/glusterfs/src/glusterfs-%{version}%{?prereltag}.tar.gz Source1: glusterd.sysconfig Source2: glusterfsd.sysconfig Source7: glusterfsd.service Source8: glusterfsd.init %else Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz %endif Patch0001: 0001-configure.ac.patch Patch0002: 0002-contrib-aclocal-python.m4.patch -Requires(pre): shadow-utils BuildRequires: systemd %if 0%{!?_without_tcmalloc:1} Requires: gperftools-libs%{?_isa} %endif Requires: libglusterfs0%{?_isa} = %{version}-%{release} Requires: libgfrpc0%{?_isa} = %{version}-%{release} @@ -816,16 +815,21 @@ This package provides the glusterfs thin-arbiter translator. %patch 0002 -p1 %if ( ! %{_usepython3} ) echo "fixing python shebangs..." for f in api events extras geo-replication libglusterfs tools xlators; do find $f -type f -exec sed -i 's|/usr/bin/python3|/usr/bin/python2|' {} \; done %endif +# Create a sysusers.d config file +cat >glusterfs.sysusers.conf </dev/null) %if "%{bashcompdir}" == "" %global bashcompdir ${sysconfdir}/bash_completion.d %endif ##----------------------------------------------------------------------------- ## All package definitions should be placed here in alphabetical order + +install -m0644 -D glusterfs.sysusers.conf %{buildroot}%{_sysusersdir}/glusterfs.conf ## %post %{?ldconfig} %if ( 0%{!?_without_syslog:1} ) %if ( 0%{?fedora} ) || ( 0%{?rhel} ) %systemd_postun_with_restart rsyslog %endif %endif @@ -1113,20 +1119,16 @@ else fi exit 0 %endif ##----------------------------------------------------------------------------- ## All package definitions should be placed here in alphabetical order ## %pre -getent group gluster > /dev/null || groupadd -r gluster -getent passwd gluster > /dev/null || useradd -r -g gluster -d %{_rundir}/gluster -s /sbin/nologin -c "GlusterFS daemons" gluster -exit 0 - ##----------------------------------------------------------------------------- ## All package definitions should be placed here in alphabetical order ## %if ( 0%{!?_without_events:1} ) %preun events if [ $1 -eq 0 ]; then if [ -f %glustereventsd_svcfile ]; then %service_stop glustereventsd @@ -1286,16 +1288,17 @@ exit 0 %endif %if ( 0%{?_without_server:1} ) #exclude ganesha related files %exclude %{_sysconfdir}/ganesha/ganesha-ha.conf.sample %exclude %{_libexecdir}/ganesha/* %exclude %{_prefix}/lib/ocf/resource.d/heartbeat/* %endif +%{_sysusersdir}/glusterfs.conf %files cli %{_sbindir}/gluster %{_mandir}/man8/gluster.8* %{bash_completions_dir}/gluster.bash %files client-xlators %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/cluster @@ -1630,16 +1633,19 @@ exit 0 %dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/thin-arbiter.so %dir %{_datadir}/glusterfs/scripts %{_datadir}/glusterfs/scripts/setup-thin-arbiter.sh %config %{_sysconfdir}/glusterfs/thin-arbiter.vol %{_unitdir}/gluster-ta-volume.service %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 11.1-9 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 11.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Jan 12 2025 Zbigniew Jędrzejewski-Szmek - 11.1-7 - Rebuilt for the bin-sbin merge (2nd attempt) * Thu Jul 18 2024 Fedora Release Engineering - 11.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git gmediarender/gmediarender.spec gmediarender/gmediarender.spec.tmp index c1e9df6987..da3ce18a14 100644 --- gmediarender/gmediarender.spec +++ gmediarender/gmediarender.spec.tmp @@ -4,17 +4,17 @@ # commit %global forgeurl https://github.com/hzeller/gmrender-resurrect #%%global commit 4f221e6b85abf85957b547436e982d7a501a1718 #%%global shortcommit %%(c=%%{commit}; echo ${c:0:7}) Name: gmediarender Version: 0.0.9 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Resource efficient UPnP/DLNA renderer # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later # Following is for Forge-hosted projects packaging automation # https://fedoraproject.org/wiki/Forge-hosted_projects_packaging_automation %forgemeta @@ -24,31 +24,36 @@ Source: %{forgesource} BuildRequires: gcc BuildRequires: systemd BuildRequires: automake BuildRequires: libupnp-devel BuildRequires: gstreamer1-devel BuildRequires: make Requires: gstreamer1-plugins-good -Requires(pre): shadow-utils Requires: firewalld-filesystem Requires(post): firewalld-filesystem %{?systemd_requires} Recommends: gstreamer1-plugins-bad-free %description GMediaRender is a resource efficient UPnP/DLNA renderer. %prep #%%setup -q -n %%repo-%%{commit} # Replace above with the following if using forge macro %forgeautosetup autoreconf -vfi +# Create a sysusers.d config file +cat >gmediarender.sysusers.conf </dev/null || groupadd -r %{name} -getent passwd %{name} &>/dev/null || \ - useradd -r -g %{name} -G audio -M -d %{_datadir}/%{name} -s /sbin/nologin \ - -c "GMediaRender DLNA/UPnP Renderer" %{name} +install -m0644 -D gmediarender.sysusers.conf %{buildroot}%{_sysusersdir}/gmediarender.conf + %post %systemd_post %{name}.service %firewalld_reload %preun %systemd_preun %{name}.service @@ -86,18 +88,22 @@ fi %files %doc README.md %license COPYING %{_bindir}/%{name} %dir %attr(0755, %{name}, %{name}) %{_datadir}/%{name} %{_datadir}/%{name}/grender-*.png %{_unitdir}/%{name}.service %{_prefix}/lib/firewalld/services/%{name}.xml +%{_sysusersdir}/gmediarender.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.0.9-13 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 0.0.9-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 26 2024 Miroslav Suchý - 0.0.9-11 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 0.0.9-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git gns3-server/gns3-server.spec gns3-server/gns3-server.spec.tmp index 416318efeb..70b0670e5b 100644 --- gns3-server/gns3-server.spec +++ gns3-server/gns3-server.spec.tmp @@ -1,17 +1,17 @@ # For pre-release %global git_tag %{version} # Filter auto-generated deps from bundled shell script (which depends on busybox only) %global __requires_exclude_from ^%{python3_sitelib}/gns3server/compute/docker/resources/.*$ Name: gns3-server Version: 2.2.53 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Graphical Network Simulator 3 # Automatically converted from old format: GPLv3 - review is highly recommended. License: GPL-3.0-only URL: http://gns3.com Source0: https://github.com/GNS3/gns3-server/archive/v%{git_tag}/%{name}-%{git_tag}.tar.gz Source1: gns3.service Patch0: 0001-changing-busybox-udhcpc-script-path.patch @@ -60,16 +60,21 @@ sed -i -r 's/aiohttp>=3.10.10,<3.11/aiohttp>=3.9.3/' requirements.txt sed -i -r 's/Jinja2>=3.1.5,<3.2/jinja2>=2.11.3/' requirements.txt sed -i -r 's/jsonschema>=4.23,<4.24/jsonschema>=3.2.0/' requirements.txt sed -i -r 's/platformdirs>=2.4.0,<3/platformdirs>=2.4.0/' requirements.txt sed -i -r 's/py-cpuinfo>=9.0.0,<10.0/py-cpuinfo>=8.0.0/' requirements.txt sed -i -r 's/async-timeout>=5.0.1,<5.1/async-timeout>=4.0.2/' requirements.txt sed -i -r 's/sentry-sdk.*//g' requirements.txt sed -i -r 's/truststore.*//g' requirements.txt +# Create a sysusers.d config file +cat >gns3-server.sysusers.conf </dev/null || groupadd -r gns3 -getent passwd gns3 >/dev/null || \ - useradd -r -g gns3 -d /var/lib/gns3 -s /sbin/nologin \ - -c "gns3 server" gns3 -exit 0 %post [ -d "/var/lib/gns3" ] && chown -R gns3:gns3 %{_sharedstatedir}/gns3 %systemd_post gns3.service # Replace bundled OVMF_CODE.fd OVMF_VARS.fd with Fedora ones cp -fp %{_datadir}/edk2/ovmf/OVMF_CODE.fd %{python3_sitelib}/gns3server/disks/OVMF_CODE.fd cp -fp %{_datadir}/edk2/ovmf/OVMF_VARS.fd %{python3_sitelib}/gns3server/disks/OVMF_VARS.fd %preun %systemd_preun gns3.service %postun %systemd_postun_with_restart gns3.service %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.2.53-2 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Wed Jan 22 2025 Alexey Kurov - 2.2.53-1 - Update to 2.2.53 * Thu Jan 16 2025 Fedora Release Engineering - 2.2.52-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Dec 2 2024 Alexey Kurov - 2.2.52-1 - Update to 2.2.52 diff --git golang-github-shopify-toxiproxy/golang-github-shopify-toxiproxy.spec golang-github-shopify-toxiproxy/golang-github-shopify-toxiproxy.spec.tmp index 656eedf217..cad00e95ce 100644 --- golang-github-shopify-toxiproxy/golang-github-shopify-toxiproxy.spec +++ golang-github-shopify-toxiproxy/golang-github-shopify-toxiproxy.spec.tmp @@ -26,17 +26,17 @@ repository contains) and a client communicating with the proxy over HTTP. You configure your application to make all test connections go through Toxiproxy and can then manipulate their health via HTTP. See Usage below on how to set up your project.} %global golicenses LICENSE %global godocs CHANGELOG.md CREATING_TOXICS.md README.md README-client.md Name: %{goname} -Release: 19%{?dist} +Release: 20%{?dist} Summary: TCP proxy to simulate network and system conditions for resiliency testing License: MIT URL: %{gourl} Source0: %{gosource} # Stolen from Debian: Source1: toxiproxy-server.1 Source2: toxiproxy-cli.1 @@ -46,33 +46,37 @@ Source5: toxiproxy.logrotate %{?systemd_requires} BuildRequires: systemd-rpm-macros BuildRequires: golang(github.com/gorilla/mux) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/urfave/cli) BuildRequires: golang(golang.org/x/crypto/ssh/terminal) BuildRequires: golang(gopkg.in/tomb.v1) -Requires(pre): shadow-utils %description %{common_description} %package -n toxiproxy Summary: %{summary} %description -n toxiproxy %{common_description} %gopkg %prep %goprep mv client/README.md README-client.md +# Create a sysusers.d config file +cat >golang-github-shopify-toxiproxy.sysusers.conf </dev/null || groupadd -r toxiproxy -getent passwd toxiproxy >/dev/null || \ - useradd -r -g toxiproxy -d %{_sharedstatedir}/toxiproxy -s /sbin/nologin \ - -c "Toxiproxy-server account" toxiproxy -exit 0 %post -n toxiproxy %systemd_post toxiproxy.service %preun -n toxiproxy %systemd_preun toxiproxy.service %postun -n toxiproxy @@ -123,18 +123,22 @@ exit 0 %config(noreplace) %{_sysconfdir}/logrotate.d/toxiproxy %{_unitdir}/toxiproxy.service %{_mandir}/man1/toxiproxy-server.1.* %{_mandir}/man1/toxiproxy-cli.1.* %attr(0775,root,toxiproxy) %dir %{_localstatedir}/log/toxiproxy %attr(0750,toxiproxy,toxiproxy) %dir %{_sharedstatedir}/toxiproxy %gopkgfiles +%{_sysusersdir}/golang-github-shopify-toxiproxy.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.1.4-20 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 2.1.4-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 2.1.4-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 11 2024 Maxwell G - 2.1.4-17 - Rebuild for golang 1.22.0 diff --git gr-funcube/gr-funcube.spec gr-funcube/gr-funcube.spec.tmp index f344895f01..11166d000b 100644 --- gr-funcube/gr-funcube.spec +++ gr-funcube/gr-funcube.spec.tmp @@ -3,17 +3,17 @@ %global git_date 20240726 %global git_short_commit %(echo %{git_commit} | cut -c -8) %global git_suffix %{git_date}git%{git_short_commit} Name: gr-funcube URL: https://github.com/dl1ksv/gr-funcube Version: 3.10.0~rc3^%{git_suffix} -Release: 4%{?dist} +Release: 5%{?dist} # Automatically converted from old format: GPLv3+ - review is highly recommended. License: GPL-3.0-or-later BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gnuradio-devel BuildRequires: hidapi-devel BuildRequires: doxygen BuildRequires: graphviz @@ -52,61 +52,65 @@ Requires: %{name} = %{version}-%{release} #BuildArch: noarch %description doc Documentation files for gr-funcube. %prep %autosetup -p1 -n %{name}-%{git_commit} +# Create a sysusers.d config file +cat >gr-funcube.sysusers.conf </dev/null || \ - %{_sbindir}/groupadd -r rtlsdr >/dev/null 2>&1 -exit 0 %files %exclude %{_docdir}/%{name}/html %exclude %{_docdir}/%{name}/xml %license COPYING %doc README.md %{_libdir}/*.so.* %{python3_sitearch}/funcube %{_datadir}/gnuradio/grc/blocks/* %{_udevrulesdir}/10-funcube.rules +%{_sysusersdir}/gr-funcube.conf %files devel %{_includedir}/funcube %{_libdir}/*.so %{_libdir}/cmake/funcube %files doc %doc %{_docdir}/%{name}/html %doc %{_docdir}/%{name}/xml %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 3.10.0~rc3^20240726gitcbda6c6c-5 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 3.10.0~rc3^20240726gitcbda6c6c-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Nov 28 2024 Jaroslav Škarvada - 3.10.0~rc3^20240726gitcbda6c6c-3 - Rebuilt for new spdlog Resolves: rhbz#2329123 * Tue Nov 26 2024 František Zatloukal - 3.10.0~rc3^20240726gitcbda6c6c-2 diff --git icecast/icecast.spec icecast/icecast.spec.tmp index 5198874756..f0e3bea1aa 100644 --- icecast/icecast.spec +++ icecast/icecast.spec.tmp @@ -7,17 +7,17 @@ %global with_systemd 1 %endif # 0%{?fedora} || 0%{?rhel} >= 7 # Setup _pkgdocdir if not defined already. %{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} Name: icecast Version: 2.4.4 -Release: 19%{?dist} +Release: 20%{?dist} Summary: ShoutCast compatible streaming media server # admin/xspf.xsl: GPLv2+ # COPYING: GPLv2 text # src/fserve.c: GPLv2 # src/thread/thread.c: GPLv2+ # src/avl/avl.c: BSD # web/xml2json.xslt: BSD @@ -57,17 +57,16 @@ BuildRequires: libtheora-devel >= 1.0 BuildRequires: libvorbis-devel >= 1.0 BuildRequires: libxml2-devel BuildRequires: libxslt-devel BuildRequires: openssl-devel BuildRequires: speex-devel Requires: mailcap -Requires(pre): shadow-utils %if 0%{?with_systemd} BuildRequires: systemd %{?systemd_requires} %else # 0%{?with_systemd} Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig @@ -98,16 +97,21 @@ This package contains the documentation files for %{name}. %prep %autosetup -p 1 %{_bindir}/find doc/ -type f | xargs %{__chmod} 0644 %{__cp} -a doc/ html/ %{_bindir}/find html/ -name 'Makefile*' | xargs %{__rm} -f autoreconf -f +# Create a sysusers.d config file +cat >icecast.sysusers.conf <= 7 %{__rm} -f %{buildroot}%{_pkgdocdir}/COPYING %endif # 0%{?fedora} || 0%{?rhel} >= 7 %{__cp} -a conf/*.dist %{buildroot}%{_pkgdocdir}/conf %{__cp} -a examples/%{name}_auth-1.0.tar.gz %{buildroot}%{_pkgdocdir}/examples +install -m0644 -D icecast.sysusers.conf %{buildroot}%{_sysusersdir}/icecast.conf + -%pre -%{_bindir}/getent passwd %{name} >/dev/null || \ - %{_sbindir}/useradd -M -r -d /usr/share/%{name} -s /sbin/nologin \ - -c "%{name} streaming server" %{name} > /dev/null 2>&1 || : -exit 0 %post %if 0%{?with_systemd} %systemd_post %{name}.service %else # 0%{?with_systemd} /sbin/chkconfig --add %{name} %endif # 0%{?with_systemd} @@ -192,26 +193,30 @@ fi %{_datadir}/%{name} %{_sysconfdir}/logrotate.d/%{name} %if 0%{?with_systemd} %{_unitdir}/%{name}.service %else # 0%{?with_systemd} %dir %attr(-,%{name},%{name}) %{_localstatedir}/run/%{name} %{_initrddir}/%{name} %endif # 0%{?with_systemd} +%{_sysusersdir}/icecast.conf %files doc %if 0%{?fedora} || 0%{?rhel} >= 7 %license %{_datadir}/licenses/%{name}* %endif # 0%{?fedora} || 0%{?rhel} >= 7 %doc %{_pkgdocdir} %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.4.4-20 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 2.4.4-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Sep 02 2024 Miroslav Suchý - 2.4.4-18 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 2.4.4-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild RPMAutoSpec usage detected, not changing the spec file. diff --git icecream/icecream.spec icecream/icecream.spec.tmp index 0b3bc492a8..aef219fc9a 100644 --- icecream/icecream.spec +++ icecream/icecream.spec.tmp @@ -34,17 +34,16 @@ BuildRequires: libcap-ng-devel BuildRequires: lzo-devel libzstd-devel libarchive-devel BuildRequires: docbook2X BuildRequires: environment(modules) BuildRequires: firewalld-filesystem BuildRequires: autoconf automake libtool Requires: firewalld-filesystem Requires: environment(modules) -Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Requires(post): findutils %if %{with selinux} # For SELinux protection: BuildRequires: checkpolicy selinux-policy-devel hardlink @@ -85,16 +84,21 @@ This package contains development files for %{name}. %prep %autosetup -p1 -n %{name}-%{version}%{preversion} mkdir SELinux cp -p %{SOURCE3} %{SOURCE4} %{SOURCE5} SELinux mkdir fedora cp -p %{SOURCE6} %{SOURCE7} %{SOURCE9} %{SOURCE10} %{SOURCE11} fedora +# Create a sysusers.d config file +cat >icecream.sysusers.conf </dev/null || groupadd -r icecc -getent passwd icecc >/dev/null || \ - useradd -r -g icecc -d %{_localstatedir}/cache/icecream \ - -s /sbin/nologin -c "Icecream distributed compiler" icecc -exit 0 - %post /sbin/ldconfig %if %{with selinux} for selinuxvariant in %{selinux_variants}; do semodule -s ${selinuxvariant} -i \ %{_datadir}/selinux/${selinuxvariant}/icecream.pp 2>/dev/null done @@ -260,16 +259,17 @@ exit 0 %{_unitdir}/icecc*.service %attr(0775, root, icecc) %{_localstatedir}/cache/icecream %attr(0775, root, icecc) /run/icecc %{_mandir}/man*/* %{_tmpfilesdir}/icecream.conf %{?with_selinux:%{_datadir}/selinux/*/icecream.pp} %{_prefix}/lib/firewalld/services/icecream.xml %{_prefix}/lib/firewalld/services/icecream-scheduler.xml +%{_sysusersdir}/icecream.conf %files devel %dir %{_includedir}/icecc/ %{_includedir}/icecc/*.h %{_libdir}/libicecc.so %{_libdir}/pkgconfig/icecc.pc %changelog diff --git iguanaIR/iguanaIR.spec iguanaIR/iguanaIR.spec.tmp index f6ea3a2bc3..f6f96c7ca7 100644 --- iguanaIR/iguanaIR.spec +++ iguanaIR/iguanaIR.spec.tmp @@ -1,16 +1,16 @@ %global commit6 e23b9d3726b010c9e747786ffe72e38debc8cfef %global shortcommit %(c=%{commit6}; echo ${c:0:7}) %global repo https://github.com/iguanaworks/iguanair-lirc/archive %global __python %{__python3} Name: iguanaIR Version: 1.1.0 -Release: 42%{?dist} +Release: 43%{?dist} Epoch: 2 Summary: Driver for Iguanaworks USB IR transceiver # Automatically converted from old format: GPLv2 and LGPLv2 - review is highly recommended. License: GPL-2.0-only AND LicenseRef-Callaway-LGPLv2 URL: http://iguanaworks.net/ir Source0: http://iguanaworks.net/downloads/%{name}-%{version}.tar.bz2 Source1: iguanaIR.service @@ -104,16 +104,21 @@ patch -p1 < %{SOURCE10} patch -p1 < %{SOURCE11} patch -p1 < %{SOURCE12} git apply --whitespace=fix %{SOURCE13} dos2unix Makefile patch -l -p2 --fuzz 2 < %{SOURCE20} cd .. patch -p1 --fuzz 2 < %{SOURCE21} +# Create a sysusers.d config file +cat >iguanair.sysusers.conf < $RPM_BUILD_ROOT/%{_tmpfilesdir}/%{name}.conf </dev/null || groupadd -r iguanair -getent passwd iguanair >/dev/null || \ - useradd -r -g iguanair -d %{_localstatedir}/run/%{name} -s /sbin/nologin \ - -c "Iguanaworks IR Daemon" iguanair -exit 0 %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun @@ -209,16 +210,17 @@ exit 0 %config(noreplace) /etc/sysconfig/%{name} %{_tmpfilesdir}/%{name}.conf %ghost %attr(755, iguanair, iguanair) /run/%{name} %attr(775, iguanair, iguanair) %{_localstatedir}/log/%{name} %if 0%{fedora} < 30 %{_libdir}/python2.7/* %endif +%{_sysusersdir}/iguanair.conf %files devel %{_includedir}/%{name}.h %{_libdir}/lib%{name}.so %files reflasher %{_datadir}/%{name}-reflasher/ %{_bindir}/%{name}-reflasher @@ -228,16 +230,19 @@ exit 0 %config /etc/modprobe.d/60-blacklist-kernel-iguanair.conf %{_libdir}/lirc/plugins/iguanair.so %{_docdir}/lirc/plugindocs/iguanair.html %{_datadir}/lirc/configs/iguanair.conf %endif %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2:1.1.0-43 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 2:1.1.0-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Sep 02 2024 Miroslav Suchý - 2:1.1.0-41 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 2:1.1.0-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git inadyn-mt/inadyn-mt.spec inadyn-mt/inadyn-mt.spec.tmp index e63580ac9a..b1fed08e19 100644 --- inadyn-mt/inadyn-mt.spec +++ inadyn-mt/inadyn-mt.spec.tmp @@ -1,11 +1,11 @@ Name: inadyn-mt Version: 2.28.10 -Release: 23%{?dist} +Release: 24%{?dist} Summary: Dynamic DNS Client # Automatically converted from old format: GPLv3 - review is highly recommended. License: GPL-3.0-only URL: http://inadyn-mt.sourceforge.net Source0: http://prdownloads.sourceforge.net/inadyn-mt/inadyn-mt.v.0%{version}.tar.gz Source1: inadyn-mt.conf Source2: inadyn.service Source3: inadyn-nm-dispatcher @@ -20,17 +20,16 @@ BuildRequires: autoconf BuildRequires: gcc BuildRequires: libao-devel BuildRequires: systemd-units BuildRequires: make Obsoletes: inadyn < %{version} Provides: inadyn = %{version}-%{release} -Requires(pre): shadow-utils Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units Obsoletes: inadyn-mt-units < %{version}-%{release} Provides: inadyn-mi-units = %{version}-%{release} Obsoletes: inadyn-mt-sysvinit < %{version}-%{release} @@ -49,16 +48,21 @@ should then fill in /etc/inadyn.conf with the appropriate detail %prep %setup -q -n %name.v.0%{version} %patch -P1 -p1 -b .libao %patch -P2 -p1 -b .gcc10 %patch -P3 -p1 -b .c99 %patch -P4 -p1 -b .c23 +# Create a sysusers.d config file +cat >inadyn-mt.sysusers.conf </dev/null || groupadd -r inadyn -getent passwd inadyn >/dev/null || \ - useradd -r -g inadyn -d /var/cache/inadyn-mt -s /sbin/nologin \ - -c "Dynamic DNS client" inadyn -exit 0 +install -m0644 -D inadyn-mt.sysusers.conf %{buildroot}%{_sysusersdir}/inadyn-mt.conf + %post %systemd_post inadyn.service [ $1 -gt 1 ] && chown -R inadyn: /var/cache/inadyn-mt || : %preun %systemd_preun inadyn.service @@ -108,18 +108,22 @@ exit 0 %doc readme.html %{_sbindir}/inadyn %{_unitdir}/inadyn.service %{_mandir}/man*/* %attr(640,inadyn,inadyn) %config(noreplace) %{_sysconfdir}/%{name}.conf %{_prefix}/lib/NetworkManager/ %{_datadir}/%{name}/ %attr(755,inadyn,inadyn) %dir /var/cache/inadyn-mt/ +%{_sysusersdir}/inadyn-mt.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.28.10-24 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Wed Jan 22 2025 Michael Cronenworth - 2.28.10-23 - C23 compatibility fixes * Fri Jan 17 2025 Fedora Release Engineering - 2.28.10-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Jul 29 2024 Miroslav Suchý - 2.28.10-21 - convert license to SPDX diff --git inn/inn.spec inn/inn.spec.tmp index ca952fa132..8614646801 100644 --- inn/inn.spec +++ inn/inn.spec.tmp @@ -1,14 +1,14 @@ %global _hardened_build 1 Summary: The InterNetNews system, an Usenet news server Name: inn Version: 2.7.2 -Release: 2%{?dist} +Release: 3%{?dist} # most files are under ISC, except: # contrib/analyze-traffic.in: public-domain # contrib/mm_ckpasswd: GPL-2.0-or-later # contrib/nnrp.access2readers.conf.in: public-domain # contrib/tunefeed.in: Perl # control/perl-nocem.in: GPL # control/pgpverify.in: BSD-4-Clause # innd/tinyleaf.c: MIT @@ -71,17 +71,16 @@ BuildRequires: wget BuildRequires: zlib-devel BuildRequires: %{_bindir}/gpgv2 BuildRequires: make %if 0%{?fedora} || 0%{?rhel} >= 8 Recommends: perl(GD) Recommends: perl(subs) Recommends: uucp %endif -Requires(pre): shadow-utils Requires: bash >= 2.0 Requires: coreutils Requires: grep Requires: sed Requires: wget Requires(post): inews # XXX white out bogus perl requirement for now @@ -130,16 +129,22 @@ Summary: Libraries provided by INN %description libs This package contains dynamic libraries provided by INN project %prep gpgv2 --keyring %{S:3} %{S:1} %{S:0} %autosetup -p1 +# Create a sysusers.d config file +cat >inn.sysusers.conf <%{buildroot}%{_presetdir}/80-inn.preset enable innd-expire.timer enable innd-nntpsend.timer enable innd-rnews.timer EOF install -dm755 %{buildroot}%{_sysconfdir}/rsyslog.d install -pm644 %{S:30} %{buildroot}%{_sysconfdir}/rsyslog.d/inn.conf +install -m0644 -D inn.sysusers.conf %{buildroot}%{_sysusersdir}/inn.conf + %check LD_LIBRARY_PATH=%{buildroot}%{_libdir} make -C tests test %global inn_units_with_restart innd.service innd-expire.timer innd-nntpsend.timer innd-rnews.timer %global inn_units innd-expire.service innd-nntpsend.service innd-rnews.service -%pre -n inews -getent group news >/dev/null || groupadd -g 13 -r news -getent passwd news >/dev/null || \ -useradd -r -u 9 -g news -d /etc/news \ --c "News server user" news -exit 0 %pre getent group news >/dev/null || groupadd -g 13 -r news getent passwd news >/dev/null || \ useradd -r -u 9 -g news -d /etc/news \ -c "News server user" news getent group uucp >/dev/null || groupadd -g 14 -r uucp if ! getent passwd uucp >/dev/null ; then @@ -579,18 +580,22 @@ fi %exclude %{_mandir}/man3/libinn_uwildmat.3* %files -n inews %config(noreplace) %attr(-,news,news) %{_sysconfdir}/news/inn.conf %config(noreplace) %attr(-,news,news) %{_sysconfdir}/news/passwd.nntp %{_bindir}/inews %attr(0755,root,root) %{_libexecdir}/news/inews %{_mandir}/man1/inews* +%{_sysusersdir}/inn.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.7.2-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 2.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Oct 13 2024 Dominik Mierzejewski - 2.7.2-1 - update to 2.7.2 (#2293907) * Mon Sep 02 2024 Miroslav Suchý - 2.7.1-10 - convert license to SPDX diff --git ipa-hcc/ipa-hcc.spec ipa-hcc/ipa-hcc.spec.tmp index af9b9ffba8..13ad8774c5 100644 --- ipa-hcc/ipa-hcc.spec +++ ipa-hcc/ipa-hcc.spec.tmp @@ -65,17 +65,17 @@ %if %{with selinux} %global selinuxtype targeted %global modulename ipa-hcc %endif Name: %{package_name} Version: 0.18 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Hybrid Cloud Console extension for IPA BuildArch: noarch License: GPL-3.0-or-later URL: https://github.com/podengo-project/ipa-hcc # tag names are generated by rpkg @@ -164,17 +164,16 @@ Requires(post): %{ipa_name}-server >= %{ipa_version} Requires: httpd Requires: mod_ssl %if %{with selinux} Requires: selinux-policy >= %{selinux_policy_version} Requires(post): selinux-policy-base >= %{selinux_policy_version} Requires(post): (%{name}-selinux = %{version}-%{release} if selinux-policy-%{selinuxtype}) %endif %{?systemd_requires} -%{?sysusers_requires_compat} %description server This package contains IPA server plugins, LDAP schema extension, WebUI extension, and registration agent for Hybrid Cloud Console integration. The extensions require an account on https://console.redhat.com/ and registration with subscription manager. %posttrans server @@ -188,21 +187,16 @@ if [ $? -eq 0 ]; then # restart httpd if running /bin/systemctl try-restart gssproxy.service httpd.service >/dev/null 2>&1 || : fi %pre server # create user account for service %if 0%{?sysusers_requires_compat:1} -%sysusers_create_compat %{SOURCE1} -%else -# RHEL 8 -getent passwd ipahcc >/dev/null || useradd -r -s /sbin/nologin -d /var/cache/ipa-hcc -c "IPA Hybrid Cloud Console enrollment service" ipahcc -usermod -a -G ipaapi ipahcc %endif %post server # ipa-hcc-update.timer is started by ipactl %systemd_post ipa-hcc-update.service %systemd_post ipa-hcc-update.timer /bin/systemctl daemon-reload @@ -590,16 +584,19 @@ install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/ipa-hcc.conf %files selinux %doc README.md CONTRIBUTORS.txt %license COPYING %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.* # with selinux %endif %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.18-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 0.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sat Aug 10 2024 Fraser Tweedale 0.18-1 - test: use RHEL with golang 1.21 for backend vm - test: fix idm-domains-backend-deploy after RBAC changes - chore: supress mypy errors in generated stubs - fix(HMS-4323): print hcc reponse headers in debug diff --git ip-sentinel/ip-sentinel.spec ip-sentinel/ip-sentinel.spec.tmp index 90f99db666..872f65e168 100644 --- ip-sentinel/ip-sentinel.spec +++ ip-sentinel/ip-sentinel.spec.tmp @@ -1,16 +1,16 @@ %{!?username:%global username ip-sentinel} %global service ip-sentinel %global homedir %{_var}/lib/ip-sentinel Summary: Tool to prevent unauthorized usage of IP addresses Name: ip-sentinel Version: 0.12 -Release: 1931%{?dist} +Release: 1932%{?dist} License: GPL-2.0-only URL: http://www.nongnu.org/ip-sentinel/ Source0: http://savannah.nongnu.org/download/ip-sentinel/%{name}-%{version}.tar.bz2 Source1: http://savannah.nongnu.org/download/ip-sentinel/%{name}-%{version}.tar.bz2.sig Source2: ip-sentinel.service Patch0: ip-sentinel-0.12-pidfile.patch Patch1: ip-sentinel-0.12-glibc.patch Provides: user(%username) = 1 @@ -19,17 +19,16 @@ BuildRequires: gcc BuildRequires: which systemd BuildRequires: make Obsoletes: ip-sentinel-sysvinit < %{version}-%{release} Provides: ip-sentinel-sysvinit = %{version}-%{release} Obsoletes: ip-sentinel-minit < %{version}-%{release} Provides: ip-sentinel-minit = %{version}-%{release} Obsoletes: ip-sentinel-upstart < %{version}-%{release} Provides: ip-sentinel-upstart = %{version}-%{release} -Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description IP Sentinel is a tool that tries to prevent unauthorized usage of IP addresses within an ethernet broadcast domain by answering ARP @@ -38,16 +37,21 @@ the MAC in their ARP tables and will send future packets to this invalid MAC, rendering the IP unreachable. %prep %setup -q %patch -P0 -p0 -b .pidfile %patch -P1 -p0 +# Create a sysusers.d config file +cat >ip-sentinel.sysusers.conf </dev/null || groupadd -r ip-sentinel -getent passwd ip-sentinel >/dev/null || \ - useradd -r -g ip-sentinel -d %{homedir} -s /sbin/nologin \ - -c "IP sentinel user" ip-sentinel -exit 0 %post %systemd_post ip-sentinel.service %preun %systemd_preun ip-sentinel.service %postun @@ -96,18 +96,22 @@ exit 0 %files %doc AUTHORS COPYING ChangeLog NEWS README THANKS %{_mandir}/*/* %{_sbindir}/* %{_unitdir}/ip-sentinel.service %{_sysconfdir}/sysconfig/ip-sentinel %attr(-,root,%username) %homedir +%{_sysusersdir}/ip-sentinel.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.12-1932 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 0.12-1931 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 0.12-1930 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jan 24 2024 Fedora Release Engineering - 0.12-1929 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git ipsilon/ipsilon.spec ipsilon/ipsilon.spec.tmp index d3b6a28bff..c3969ad7a0 100644 --- ipsilon/ipsilon.spec +++ ipsilon/ipsilon.spec.tmp @@ -3,17 +3,17 @@ %global snapdate 20241202 %global commit 01109c17e79c95ddf338dd1a64d88b89a43c1847 %global shortcommit %%(c=%%{commit}; echo ${c:0:7}) # post-release format... %global snaprel %%{?snapdate:.git%%{snapdate}.%%{shortcommit}} # for rpmdev-bumpspec -%global baserelease 0.3 +%global baserelease 0.4 Name: ipsilon Version: 3.0.5 Release: %{baserelease}%{?snaprel}%{?dist} Summary: An Identity Provider Server # Automatically converted from old format: GPLv3+ - review is highly recommended. License: GPL-3.0-or-later @@ -54,17 +54,16 @@ Requires: %{name}-provider = %{version}-%{release} Requires: python3-mod_wsgi Requires: python3-cherrypy Requires: python3-jinja2 Requires: python3-lxml Requires: python3-sqlalchemy Requires: open-sans-fonts Requires: font(fontawesome) Requires: pam -Requires(pre): shadow-utils %description base The Ipsilon IdP server without installer %package filesystem Summary: Package providing files required by Ipsilon # Automatically converted from old format: GPLv3+ - review is highly recommended. @@ -256,16 +255,21 @@ Provides a theme for Ipsilon used for openSUSE Accounts. %prep %if %{defined snaprel} %autosetup -n %{name}-%{commit} -p1 %else %autosetup -p1 %endif +# Create a sysusers.d config file +cat >ipsilon.sysusers.conf </dev/null || groupadd -r ipsilon -getent passwd ipsilon >/dev/null || \ - useradd -r -g ipsilon -d %{_sharedstatedir}/ipsilon -s /sbin/nologin \ - -c "Ipsilon Server" ipsilon -exit 0 +install -m0644 -D ipsilon.sysusers.conf %{buildroot}%{_sysusersdir}/ipsilon.conf + %files filesystem %doc README.md %license COPYING %dir %{_datadir}/ipsilon %dir %{_datadir}/ipsilon/templates %dir %{_datadir}/ipsilon/templates/install @@ -379,16 +379,17 @@ exit 0 %{_datadir}/ipsilon/ui/fonts-local %{_libexecdir}/ipsilon/ %{_sbindir}/ipsilon-upgrade-database %dir %attr(0751,root,root) %{_sharedstatedir}/ipsilon %dir %attr(0751,root,root) %{_sysconfdir}/ipsilon %dir %attr(0750,ipsilon,apache) %{_localstatedir}/cache/ipsilon %config(noreplace) %{_sysconfdir}/pam.d/ipsilon %dir %{_datadir}/ipsilon/themes +%{_sysusersdir}/ipsilon.conf %files client %license COPYING %{_bindir}/ipsilon-client-install %{_datadir}/ipsilon/templates/install/saml2 %{_datadir}/ipsilon/templates/install/openidc %{_mandir}/man*/ipsilon-client-install.1* @@ -463,16 +464,19 @@ exit 0 %{_datadir}/ipsilon/themes/Fedora %files theme-openSUSE %license COPYING %{_datadir}/ipsilon/themes/openSUSE %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 3.0.5-0.4.git20241202.01109c1 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Mon Jan 20 2025 Kevin Fenzi - 3.0.5-0.3.git20241202.01109c1 - Fix fallout due to /sbin merge. * Fri Jan 17 2025 Fedora Release Engineering - 3.0.5-0.2.git20241202.01109c1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Dec 02 2024 Kevin Fenzi - 3.0.5-0.1 - Switch to a git snapshot. diff --git jabberd/jabberd.spec jabberd/jabberd.spec.tmp index 1cb4dafd50..395d80dc20 100644 --- jabberd/jabberd.spec +++ jabberd/jabberd.spec.tmp @@ -9,17 +9,17 @@ %bcond_with systemd %else %bcond_without systemd %endif Summary: OpenSource server implementation of the Jabber protocols Name: jabberd Version: 2.6.1 -Release: 30%{?dist} +Release: 31%{?dist} # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later Source0: https://github.com/jabberd2/jabberd2/releases/download/jabberd-%{version}/jabberd-%{version}.tar.xz Source1: README.fedora Source2: jabberd.init Source3: jabberd.sysconfig Patch0: jabberd-fedora-crypto-policy.patch Patch1: jabberd-fix-paths.patch @@ -37,17 +37,16 @@ BuildRequires: perl-generators BuildRequires: cppunit-devel %if %{with systemd} BuildRequires: systemd-units Requires(post): systemd-units systemd-sysv Requires(preun): systemd-units Requires(postun): systemd-units %else Requires(post): openssl chkconfig /sbin/service -Requires(pre): shadow-utils Requires(preun): chkconfig shadow-utils /sbin/service Requires(postun): chkconfig /sbin/service %endif %if %{with pam} BuildRequires: pam-devel %endif %if %{with sqlite} BuildRequires: sqlite-devel @@ -72,17 +71,16 @@ BuildRequires: mysql-devel %if %{with postgresql} BuildRequires: libpq-devel %endif BuildRequires: libgsasl-devel udns-devel BuildRequires: http-parser-devel BuildRequires: autoconf libtool BuildRequires: make Requires(post): openssl -Requires(pre): shadow-utils Requires(preun): shadow-utils %description The jabberd project aims to provide an open-source server implementation of the Jabber protocols for instant messaging and XML routing. The goal of this project is to provide a scalable, reliable, efficient and extensible server that provides a complete set of features and is up to date with the latest protocol revisions. @@ -113,16 +111,21 @@ This package defaults to use pam and sqlite. %patch -P4 -p1 %patch -P5 -p1 %patch -P7 -p1 %patch -P8 -p1 autoreconf --verbose --force --install %endif %patch -P6 -p1 +# Create a sysusers.d config file +cat >jabberd.sysusers.conf </dev/null || groupadd -r jabber -getent passwd jabber >/dev/null || \ -useradd -r -g jabber -d %{_var}/lib/%{name} -s /sbin/nologin \ - -c "Jabber Server" jabber -exit 0 %post %if %{with systemd} %systemd_post %{name}.service if [ $1 -eq 1 ] ; then #replace default passwords, yet another hack export NEWPASS=$( dd if=/dev/urandom bs=20 count=1 2>/dev/null \ | sha1sum | awk '{print $1}' ) @@ -351,18 +349,22 @@ fi %attr(750, jabber, jabber) %dir %{_sysconfdir}/%{name}/templates %config(noreplace) %{_sysconfdir}/%{name}/server.pem %attr(640, jabber, jabber) %config(noreplace) %{_sysconfdir}/%{name}/*xml* %attr(640, jabber, jabber) %config(noreplace) %{_sysconfdir}/%{name}/templates/*xml* %dir %{_datadir}/%{name}/ %attr(644,root,root) %{_datadir}/%{name}/* %config(noreplace) %{_sysconfdir}/pam.d/%{name} %attr(700, jabber, jabber) %{_var}/lib/%{name} +%{_sysusersdir}/jabberd.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.6.1-31 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 2.6.1-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 26 2024 Miroslav Suchý - 2.6.1-29 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 2.6.1-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git jack-audio-connection-kit/jack-audio-connection-kit.spec jack-audio-connection-kit/jack-audio-connection-kit.spec.tmp index 53ebefcb85..ccd2deef3c 100644 --- jack-audio-connection-kit/jack-audio-connection-kit.spec +++ jack-audio-connection-kit/jack-audio-connection-kit.spec.tmp @@ -9,17 +9,17 @@ %global pagroup pulse-rt # Disable lto (#1872065, #1869059) %define _lto_cflags %{nil} Summary: The Jack Audio Connection Kit Name: jack-audio-connection-kit Version: 1.9.22 -Release: 8%{?dist} +Release: 9%{?dist} # The entire source (~500 files) is a mixture of these three licenses # Automatically converted from old format: GPLv2 and GPLv2+ and LGPLv2+ - review is highly recommended. License: GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+ URL: https://www.jackaudio.org Source0: https://github.com/jackaudio/jack2/archive/v%{version}/v%{version}.tar.gz#/jack2-%{version}.tar.gz Source1: %{name}-README.Fedora Source2: %{name}-script.pa Source3: %{name}-limits.conf @@ -42,17 +42,16 @@ BuildRequires: libffado-devel %endif BuildRequires: libsamplerate-devel BuildRequires: libsndfile-devel BuildRequires: ncurses-devel BuildRequires: opus-devel BuildRequires: pkgconfig BuildRequires: python3 -Requires(pre): shadow-utils Requires: pam Obsoletes: %{name}-example-clients < 1.9.22 %description JACK is a low-latency audio server, written primarily for the Linux operating system. It can connect a number of different applications to an audio device, as well as allowing them to share audio between themselves. Its clients can run in @@ -83,16 +82,21 @@ Header files for the Jack Audio Connection Kit. Summary: Example clients that use Jack %description example-clients Small example clients that use the Jack Audio Connection Kit. %prep %autosetup -p1 -n jack2-%{version} +# Create a sysusers.d config file +cat >jack-audio-connection-kit.sysusers.conf < /dev/null || groupadd -r %groupname -exit 0 +install -m0644 -D jack-audio-connection-kit.sysusers.conf %{buildroot}%{_sysusersdir}/jack-audio-connection-kit.conf + %files %doc ChangeLog.rst README.rst README_NETJACK2 %doc README.Fedora %doc jack.pa %license COPYING %{_bindir}/jackd %{_libdir}/jack/ %{_libdir}/libjack.so.0* %{_libdir}/libjacknet.so.0* %{_libdir}/libjackserver.so.0* %config(noreplace) %{_sysconfdir}/security/limits.d/*.conf %{_mandir}/man1/jackd*.1* +%{_sysusersdir}/jack-audio-connection-kit.conf %files dbus %{_bindir}/jackdbus %{_datadir}/dbus-1/services/org.jackaudio.service %{_bindir}/jack_control %files devel %doc reference/html/ %{_includedir}/jack/ %{_libdir}/libjack.so %{_libdir}/libjacknet.so %{_libdir}/libjackserver.so %{_libdir}/pkgconfig/jack.pc %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.9.22-9 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 1.9.22-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Sep 02 2024 Miroslav Suchý - 1.9.22-7 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 1.9.22-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git jwhois/jwhois.spec jwhois/jwhois.spec.tmp index 0b4b5d4788..79581bfb61 100644 --- jwhois/jwhois.spec +++ jwhois/jwhois.spec.tmp @@ -1,13 +1,13 @@ %{?!with_cache: %global with_cache 0} Name: jwhois Version: 4.0 -Release: 80%{?dist} +Release: 81%{?dist} URL: http://www.gnu.org/software/jwhois/ Source0: ftp://ftp.gnu.org/gnu/jwhois/jwhois-%{version}.tar.gz Source1: https://raw.githubusercontent.com/robert-scheck/jwhois/2bd561e06ca37cf6c2ef9f0a2e957e09f58e6972/example/jwhois.conf Patch0: jwhois-4.0-connect.patch Patch1: jwhois-4.0-ipv6match.patch Patch2: jwhois-4.0-fclose.patch Patch3: jwhois-4.0-select.patch Patch5: jwhois-4.0-multi-homed.patch @@ -45,16 +45,21 @@ A whois client that accepts both traditional and finger-style queries. iconv -f iso-8859-1 -t utf-8 < doc/sv/jwhois.1 > doc/sv/jwhois.1_ mv doc/sv/jwhois.1_ doc/sv/jwhois.1 cp -pf %{SOURCE1} example/jwhois.conf autoreconf +# Create a sysusers.d config file +cat >jwhois.sysusers.conf < $RPM_BUILD_ROOT/%{_mandir}/man1/whois.%{alternative}.1 # Rename to alternative names touch $RPM_BUILD_ROOT%{_bindir}/whois chmod 755 $RPM_BUILD_ROOT%{_bindir}/whois touch $RPM_BUILD_ROOT%{_mandir}/man1/whois.1 +install -m0644 -D jwhois.sysusers.conf %{buildroot}%{_sysusersdir}/jwhois.conf + %files -f %{name}.lang %doc AUTHORS COPYING ChangeLog NEWS README TODO %if %{with_cache} %attr(2755,root,jwhois) %{_bindir}/jwhois %attr(2775,root,jwhois) %{_localstatedir}/cache/jwhois/jwhois.db %else %attr(0755,root,root) %{_bindir}/jwhois %endif %ghost %verify(not md5 size mtime) %{_bindir}/whois %{_mandir}/man1/jwhois.1* %lang(sv) %{_mandir}/sv/man1/jwhois.1* %{_mandir}/man1/whois.%{alternative}.* %ghost %verify(not md5 size mtime) %{_mandir}/man1/whois.1.gz %{_infodir}/jwhois.info.* %config(noreplace) %{_sysconfdir}/jwhois.conf +%{_sysusersdir}/jwhois.conf %if %{with_cache} %pre -getent group jwhois >/dev/null || groupadd -r jwhois || : %endif %post %if 0%{?rhel} && 0%{?rhel} <= 7 if [ -f %{_infodir}/jwhois.info ]; then # --excludedocs? /sbin/install-info %{_infodir}/jwhois.info %{_infodir}/dir || : fi %endif @@ -120,16 +127,19 @@ if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/jwhois.info %{_infodir}/dir || : fi %endif %{_sbindir}/update-alternatives --remove \ %{genname} %{_bindir}/jwhois fi %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 4.0-81 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Tue Jan 21 2025 Vitezlsav Crhonek - 4.0-80 - Fix FTBFS with GCC 15 * Fri Jan 17 2025 Fedora Release Engineering - 4.0-79 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 4.0-78 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git kismet/kismet.spec kismet/kismet.spec.tmp index 20f0d72504..feb52b2948 100644 --- kismet/kismet.spec +++ kismet/kismet.spec.tmp @@ -7,17 +7,17 @@ ## ...local macros} %{!?apply:%global apply(p:n:b:) %patch%%{-n:%%{-n*}} %%{-p:-p%%{-p*}} %%{-b:-b%%{-b*}} \ %nil} Summary: WLAN detector, sniffer and IDS Name: kismet Version: %_rpmversion -Release: 8%{?dist} +Release: 9%{?dist} License: GPL-2.0-or-later URL: http://www.kismetwireless.net/ Source0: http://www.kismetwireless.net/code/%{name}-%_version.tar.xz Patch0: kismet-include.patch Patch1: kismet-install.patch Patch2: hak5-types.patch @@ -57,33 +57,38 @@ sed -i 's!\$(prefix)/lib/!%{_libdir}/!g' plugin-*/Makefile # default sed -i \ -e '\!^ouifile=/etc/manuf!d' \ -e '\!^ouifile=/usr/share/wireshark/wireshark/manuf!d' \ conf/kismet.conf sed -i s/@VERSION@/%{version}/g packaging/kismet.pc.in +# Create a sysusers.d config file +cat >kismet.sysusers.conf </dev/null || groupadd -f -r kismet +install -m0644 -D kismet.sysusers.conf %{buildroot}%{_sysusersdir}/kismet.conf + %files %doc README* %dir %attr(0755,root,root) %cfgdir %config(noreplace) %cfgdir/* %{_bindir}/kismet %{_bindir}/kismet_cap_kismetdb %{_bindir}/kismet_cap_pcapfile @@ -104,18 +109,22 @@ getent group kismet >/dev/null || groupadd -f -r kismet %attr(4755,root,root) %{_bindir}/kismet_cap_nrf_52840 %attr(4755,root,root) %{_bindir}/kismet_cap_nrf_mousejack %attr(4755,root,root) %{_bindir}/kismet_cap_nxp_kw41z %attr(4755,root,root) %{_bindir}/kismet_cap_rz_killerbee %attr(4755,root,root) %{_bindir}/kismet_cap_ti_cc_2531 %attr(4755,root,root) %{_bindir}/kismet_cap_ti_cc_2540 %{_datadir}/kismet %{_libdir}/pkgconfig/kismet.pc +%{_sysusersdir}/kismet.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.0.2023.07.R1-9 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 0.0.2023.07.R1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 0.0.2023.07.R1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.0.2023.07.R1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git knot-resolver/knot-resolver.spec knot-resolver/knot-resolver.spec.tmp index 7e2e1a0c9a..9ff7fb4207 100644 --- knot-resolver/knot-resolver.spec +++ knot-resolver/knot-resolver.spec.tmp @@ -2,17 +2,17 @@ %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}} %define GPG_CHECK 1 %define repodir %{_builddir}/%{name}-%{version} %define NINJA ninja-build Name: knot-resolver Version: 5.7.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Caching full DNS Resolver License: GPL-3.0-or-later URL: https://www.knot-resolver.cz/ Source0: https://secure.nic.cz/files/%{name}/%{name}-%{version}.tar.xz # LuaJIT only on these arches %if 0%{?rhel} == 7 @@ -61,26 +61,24 @@ BuildRequires: pkgconfig(libprotobuf-c) # Distro-dependent dependencies %if 0%{?rhel} == 7 BuildRequires: lmdb-devel # Lua 5.1 version of the libraries have different package names Requires: lua-basexx Requires: lua-psl Requires: lua-http -Requires(pre): shadow-utils %endif %if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: pkgconfig(lmdb) BuildRequires: python3-sphinx Requires: lua5.1-basexx Requires: lua5.1-cqueues Requires: lua5.1-http Recommends: lua5.1-psl -Requires(pre): shadow-utils %endif # we do not build HTTP module on SuSE so the build requires is not needed %if "x%{?suse_version}" == "x" BuildRequires: openssl-devel %endif %if 0%{?suse_version} @@ -162,16 +160,21 @@ native C implementation, which doesn't require this package. %if 0%{GPG_CHECK} export GNUPGHOME=./gpg-keyring mkdir -m 700 ${GNUPGHOME} gpg2 --import %{SOURCE100} gpg2 --verify %{SOURCE1} %{SOURCE0} %endif %setup -q -n %{name}-%{version} +# Create a sysusers.d config file +cat >knot-resolver.sysusers.conf </dev/null || groupadd -r knot-resolver -getent passwd knot-resolver >/dev/null || useradd -r -g knot-resolver -d %{_sysconfdir}/knot-resolver -s /sbin/nologin -c "Knot Resolver" knot-resolver - %if "x%{?rhel}" == "x" # upgrade-4-to-5 if [ -f %{_unitdir}/kresd.socket ] ; then export UPG_DIR=%{_sharedstatedir}/knot-resolver/.upgrade-4-to-5 mkdir -p ${UPG_DIR} touch ${UPG_DIR}/.unfinished for sock in kresd.socket kresd-tls.socket kresd-webmgmt.socket kresd-doh.socket ; do @@ -344,16 +346,17 @@ fi %{_libdir}/knot-resolver/kres_modules/serve_stale.lua %{_libdir}/knot-resolver/kres_modules/ta_sentinel.lua %{_libdir}/knot-resolver/kres_modules/ta_signal_query.lua %{_libdir}/knot-resolver/kres_modules/ta_update.lua %{_libdir}/knot-resolver/kres_modules/view.lua %{_libdir}/knot-resolver/kres_modules/watchdog.lua %{_libdir}/knot-resolver/kres_modules/workarounds.lua %{_mandir}/man8/kresd.8.gz +%{_sysusersdir}/knot-resolver.conf %files devel %{_includedir}/libkres %{_libdir}/pkgconfig/libkres.pc %{_libdir}/libkres.so %if "x%{?rhel}" == "x" %files doc @@ -373,16 +376,19 @@ fi %files module-http %{_libdir}/knot-resolver/debug_opensslkeylog.so %{_libdir}/knot-resolver/kres_modules/http %{_libdir}/knot-resolver/kres_modules/http*.lua %{_libdir}/knot-resolver/kres_modules/prometheus.lua %endif %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 5.7.4-4 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 5.7.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Nov 26 2024 Jakub Ružička - 5.7.4-2 - Rebuilt for Knot DNS 3.4 * Wed Jul 24 2024 Jakub Ružička - 5.7.4-1 - New upstream version 5.7.4 diff --git KoboDeluxe/KoboDeluxe.spec KoboDeluxe/KoboDeluxe.spec.tmp index 0045aa2736..1364a58a86 100644 --- KoboDeluxe/KoboDeluxe.spec +++ KoboDeluxe/KoboDeluxe.spec.tmp @@ -1,11 +1,11 @@ Name: KoboDeluxe Version: 0.5.1 -Release: 44%{?dist} +Release: 45%{?dist} Summary: Third person scrolling 2D shooter # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: http://olofson.net/kobodl/ Source0: http://olofson.net/kobodl/download/%{name}-%{version}.tar.bz2 Source1: %{name}-32.png Source2: %{name}-64.png Source3: %{name}-128.png @@ -15,17 +15,16 @@ Patch1: KoboDeluxe-defaults.patch Patch2: KoboDeluxe-0.5.1-avoid-unistd-pipe-collision.patch Patch3: KoboDeluxe-0.5.1-gcc44.patch Patch4: KoboDeluxe-0.5.1-midi-crash-fix.patch BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: SDL_image-devel desktop-file-utils libappstream-glib BuildRequires: make Requires: hicolor-icon-theme -Requires(pre): shadow-utils %description Kobo Deluxe is a 3'rd person scrolling 2D shooter with a simple and responsive control system - which you'll need to tackle the tons of enemy ships that shoot at you, chase you, circle around you shooting, or even launch other ships at you, while you're trying to destroy the labyrinth shaped bases. There are 50 action packed levels with smoothly increasing difficulty, and @@ -37,16 +36,21 @@ to be dealt with successfully. %autosetup -p1 sed -i 's|$(sharedstatedir)/kobo-deluxe/scores|%{_var}/games/kobo-deluxe|g' \ configure iconv -f ISO-8859-1 -t UTF8 README > tmp; mv tmp README iconv -f ISO-8859-1 -t UTF8 ChangeLog > tmp; mv tmp ChangeLog iconv -f ISO2022JP -t UTF8 README.jp > tmp; mv tmp README.jp iconv -f ISO2022JP -t UTF8 README.xkobo.jp > tmp; mv tmp README.xkobo.jp +# Create a sysusers.d config file +cat >kobodeluxe.sysusers.conf </dev/null || groupadd -r kobodl -exit 0 +install -m0644 -D kobodeluxe.sysusers.conf %{buildroot}%{_sysusersdir}/kobodeluxe.conf + %files %doc ChangeLog COPYING* README README.jp README.xkobo.jp README.sfont %doc README.xkobo TODO %attr(2755,root,kobodl) %{_bindir}/kobodl %{_datadir}/kobo-deluxe %{_mandir}/man6/kobodl.6.gz %config(noreplace) %attr(0775,root,kobodl) %{_var}/games/kobo-deluxe %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png +%{_sysusersdir}/kobodeluxe.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.5.1-45 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Jan 16 2025 Fedora Release Engineering - 0.5.1-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 26 2024 Miroslav Suchý - 0.5.1-43 - convert license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 0.5.1-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git koji/koji.spec koji/koji.spec.tmp index cc2827aa58..41348e0fe4 100644 --- koji/koji.spec +++ koji/koji.spec.tmp @@ -4,17 +4,17 @@ %define __python %{__python3} # If the definition isn't available for python3_pkgversion, define it %{?!python3_pkgversion:%global python3_pkgversion 3} Name: koji Version: 1.35.1 -Release: 6%{?dist} +Release: 7%{?dist} # the included arch lib from yum's rpmUtils is GPLv2+ # Automatically converted from old format: LGPLv2 and GPLv2+ - review is highly recommended. License: LicenseRef-Callaway-LGPLv2 AND GPL-2.0-or-later Summary: Build system tools URL: https://pagure.io/koji/ Source0: https://releases.pagure.org/koji/koji-%{version}.tar.bz2 Patch1: https://pagure.io/koji/pull-request/4258.patch#/0001-repos-check-for-newer-create-event.patch @@ -129,17 +129,16 @@ Requires: %{name}-builder = %{version}-%{release} %description builder-plugins Plugins for the koji build daemon %package builder Summary: Koji RPM builder daemon # Automatically converted from old format: LGPLv2 - review is highly recommended. License: LicenseRef-Callaway-LGPLv2 Requires: mock >= 0.9.14 -Requires(pre): /usr/sbin/useradd Requires: squashfs-tools Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Requires: /usr/bin/svn Requires: /usr/bin/git Requires: createrepo_c >= 0.10.0 Requires: python%{python3_pkgversion}-%{name} = %{version}-%{release} @@ -212,16 +211,22 @@ Provides: %{name}-web-code = %{version}-%{release} koji-web is a web UI to the Koji system. %prep %autosetup -p1 # we'll be packaging these separately and don't want them registered # to the wheel we will produce. sed -e '/util\/koji/g' -e '/koji_cli_plugins/g' -i setup.py +# Create a sysusers.d config file +cat >koji.sysusers.conf </dev/null ||: %post builder %systemd_post kojid.service %preun builder %systemd_preun kojid.service %postun builder @@ -362,16 +368,19 @@ done %preun utils %systemd_preun kojira.service %postun utils %systemd_postun kojira.service %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.35.1-7 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 1.35.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Nov 26 2024 Romain Geissler - 1.35.1-5 - Drop the cvs requirement. * Tue Nov 19 2024 Igor Raits - 1.35.1-4 - Fix symlink_if_latest() logic diff --git libnxz/libnxz.spec libnxz/libnxz.spec.tmp index ed92e5717e..9984d7b027 100644 --- libnxz/libnxz.spec +++ libnxz/libnxz.spec.tmp @@ -1,15 +1,15 @@ # Keep the *.la file around # See https://fedoraproject.org/wiki/Changes/RemoveLaFiles %global __brp_remove_la_files %nil Name: libnxz Version: 0.64 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Zlib implementation for POWER processors License: Apache-2.0 OR GPL-2.0-or-later Url: https://github.com/libnxz/power-gzip BuildRequires: zlib-devel Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # Fixes for GCC 14 and zlib-ng compat usage Patch0: %{url}/pull/209.patch @@ -43,50 +43,59 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description static The %{name}-static package contains static libraries for developing application that use %{name}. %prep %autosetup -p1 -n power-gzip-%{version} +# Create a sysusers.d config file +cat >libnxz.sysusers.conf <= 5.8. # This combination is not guaranteed to have at build time. Check if # NX GZIP engine device is available before deciding to run the tests. if [[ -w "/dev/crypto/nx-gzip" ]]; then make check fi %install %make_install -%pre -%{_sbindir}/groupadd -r -f nx-gzip +install -m0644 -D libnxz.sysusers.conf %{buildroot}%{_sysusersdir}/libnxz.conf + %files %{_libdir}/%{soname} %{_libdir}/libnxz.so.0.%{version} %license %{_docdir}/%{name}/APACHE-2.0.txt %license %{_docdir}/%{name}/gpl-2.0.txt %doc README.md +%{_sysusersdir}/libnxz.conf %files devel %{_includedir}/libnxz.h %{_libdir}/libnxz.so %files static %{_libdir}/libnxz.a %{_libdir}/libnxz.la %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.64-8 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Mon Jan 20 2025 Fedora Release Engineering - 0.64-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 0.64-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.64-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git libservicelog/libservicelog.spec libservicelog/libservicelog.spec.tmp index 4bff7ef899..b28a3e4009 100644 --- libservicelog/libservicelog.spec +++ libservicelog/libservicelog.spec.tmp @@ -1,25 +1,24 @@ Name: libservicelog Version: 1.1.19 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Servicelog Database and Library #v29_notify_gram.c v29_notify_gram.h are GPLv2+ License: LGPL-2.0-only AND GPL-2.0-or-later URL: https://github.com/power-ras/%{name}/releases Source: https://github.com/power-ras/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz # Link with needed libraries Patch0: libservicelog-1.1.9-libs.patch BuildRequires: sqlite-devel autoconf libtool bison librtas-devel flex BuildRequires: make -Requires(pre): shadow-utils # because of librtas-devel ExclusiveArch: ppc %{power64} %description The libservicelog package contains a library to create and maintain a database for storing events related to system service. This database allows for the logging of serviceable and informational events, and for @@ -34,55 +33,64 @@ Requires: pkgconfig sqlite-devel %description devel Contains header files for building with libservicelog. %prep %setup -q %patch 0 -p1 -b .libs +# Create a sysusers.d config file +cat >libservicelog.sysusers.conf </dev/null || /usr/sbin/groupadd -r service %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{!?_licensedir:%global license %%doc} %license COPYING %doc AUTHORS %{_libdir}/libservicelog-*.so.* %dir %attr(755, root, service) /var/lib/servicelog %config(noreplace) %verify(not md5 size mtime) %attr(644,root,service) /var/lib/servicelog/servicelog.db +%{_sysusersdir}/libservicelog.conf %files devel %{_includedir}/servicelog-1 %{_libdir}/*.so %{_libdir}/pkgconfig/servicelog-1.pc %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.1.19-14 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Mon Jan 20 2025 Fedora Release Engineering - 1.1.19-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jan 17 2025 Fedora Release Engineering - 1.1.19-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 1.1.19-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git libvirt-dbus/libvirt-dbus.spec libvirt-dbus/libvirt-dbus.spec.tmp index 9321e210c2..90723e62c1 100644 --- libvirt-dbus/libvirt-dbus.spec +++ libvirt-dbus/libvirt-dbus.spec.tmp @@ -3,17 +3,17 @@ %global meson_version 0.49.0 %global glib2_version 2.44.0 %global libvirt_version 3.1.0 %global libvirt_glib_version 0.0.7 %global system_user libvirtdbus Name: libvirt-dbus Version: 1.4.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: libvirt D-Bus API binding License: LGPL-2.1-or-later URL: https://libvirt.org/ Source0: https://libvirt.org/sources/dbus/%{name}-%{version}.tar.xz BuildRequires: gcc BuildRequires: meson >= %{meson_version} BuildRequires: glib2-devel >= %{glib2_version} @@ -24,38 +24,38 @@ BuildRequires: systemd-rpm-macros BuildRequires: systemd Requires: dbus Requires: glib2 >= %{glib2_version} Requires: libvirt-libs >= %{libvirt_version} Requires: libvirt-glib >= %{libvirt_glib_version} Requires: polkit -Requires(pre): shadow-utils %description This package provides D-Bus API for libvirt %prep %autosetup +# Create a sysusers.d config file +cat >libvirt-dbus.sysusers.conf </dev/null || groupadd -r %{system_user} -getent passwd %{system_user} >/dev/null || \ - useradd -r -g %{system_user} -d / -s /sbin/nologin \ - -c "Libvirt D-Bus bridge" %{system_user} -exit 0 +install -m0644 -D libvirt-dbus.sysusers.conf %{buildroot}%{_sysusersdir}/libvirt-dbus.conf + %post %systemd_post %{name}.service %systemd_user_post %{name}.service %preun %systemd_preun %{name}.service %systemd_user_preun %{name}.service @@ -71,18 +71,22 @@ exit 0 %{_unitdir}/libvirt-dbus.service %{_userunitdir}/libvirt-dbus.service %{_datadir}/dbus-1/services/org.libvirt.service %{_datadir}/dbus-1/system-services/org.libvirt.service %{_datadir}/dbus-1/system.d/org.libvirt.conf %{_datadir}/dbus-1/interfaces/org.libvirt.*.xml %{_datadir}/polkit-1/rules.d/libvirt-dbus.rules %{_mandir}/man8/libvirt-dbus.8* +%{_sysusersdir}/libvirt-dbus.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.4.1-7 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 1.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 1.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 1.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git lighttpd/lighttpd.spec lighttpd/lighttpd.spec.tmp index 5ff45c54ae..c590099a90 100644 --- lighttpd/lighttpd.spec +++ lighttpd/lighttpd.spec.tmp @@ -45,17 +45,17 @@ %bcond_without tmpfiles %else %bcond_with tmpfiles %endif Summary: Lightning fast webserver with light system requirements Name: lighttpd Version: 1.4.77 -Release: 2%{?dist} +Release: 3%{?dist} License: BSD-3-Clause URL: http://www.lighttpd.net/ Source0: http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-%{version}.tar.xz Source1: lighttpd.logrotate Source2: php.d-lighttpd.ini Source3: lighttpd.service Source10: index.html Source11: http://www.lighttpd.net/favicon.ico @@ -309,28 +309,32 @@ Requires: %{name} = %{version}-%{release} %description mod_webdav WebDAV module for lighttpd. %package filesystem Summary: The basic directory layout for lighttpd BuildArch: noarch -Requires(pre): /usr/sbin/useradd %description filesystem The lighttpd-filesystem package contains the basic directory layout for the lighttpd server including the correct permissions for the directories. %prep %setup -q %patch -P 0 -p0 -b .defaultconf +# Create a sysusers.d config file +cat >lighttpd.sysusers.conf < \ %{buildroot}/usr/lib/tmpfiles.d/lighttpd.conf %endif mkdir -p %{buildroot}%{_var}/lib/lighttpd/ -%pre filesystem -/usr/sbin/useradd -s /sbin/nologin -M -r -d %{webroot} \ - -c 'lighttpd web server' lighttpd &>/dev/null || : +install -m0644 -D lighttpd.sysusers.conf %{buildroot}%{_sysusersdir}/lighttpd.conf + %post %systemd_post lighttpd.service %preun %systemd_preun lighttpd.service %postun @@ -583,18 +586,22 @@ mkdir -p %{buildroot}%{_var}/lib/lighttpd/ %if %{with tmpfiles} %ghost %attr(0750, lighttpd, lighttpd) %{_var}/run/lighttpd/ %else %attr(0750, lighttpd, lighttpd) %{_var}/run/lighttpd/ %endif %attr(0750, lighttpd, lighttpd) %{_var}/lib/lighttpd/ %attr(0750, lighttpd, lighttpd) %{_var}/log/lighttpd/ %attr(0700, lighttpd, lighttpd) %dir %{webroot}/ +%{_sysusersdir}/lighttpd.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 1.4.77-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 1.4.77-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jan 10 2025 Gwyn Ciesla - 1.4.77-1 - 1.4.77 * Tue Sep 03 2024 Morten Stevens - 1.4.76-4 - Rebuilt for mbedTLS 3.6.1 diff --git liquidwar/liquidwar.spec liquidwar/liquidwar.spec.tmp index 1a128ad6b2..14df7ab1e4 100644 --- liquidwar/liquidwar.spec +++ liquidwar/liquidwar.spec.tmp @@ -1,12 +1,12 @@ %define _hardened_build 1 Name: liquidwar Version: 5.6.5 -Release: 18%{?dist} +Release: 19%{?dist} Summary: Multiplayer wargame with liquid armies License: GPL-2.0-or-later URL: http://www.ufoot.org/liquidwar/v5 Source0: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz Source2: liquidwar.sysconfig Source3: liquidwar.logrotate Source4: liquidwar-server.service Patch0: liquidwar-5.6.5-python3.patch @@ -31,17 +31,16 @@ Requires: %{name} = %{version}-%{release} %description doc This package contains the documentation of LiquidWar in html, pdf, ps and txt format. %package server Summary: Network game server for the LiquidWar game Requires: %{name} = %{version}-%{release} -Requires(pre): /usr/sbin/useradd %description server This package contains the server for hosting network LiquidWar games. %prep %setup -q @@ -50,16 +49,21 @@ This package contains the server for hosting network LiquidWar games. # don't strip the binaries please sed -i 's/install\(\s\+-c\)\?\s\+-s/install/g' Makefile.in # fix README.* encoding for i in de dk fr; do iconv -f ISO-8859-1 -t UTF8 README.$i > $i mv $i README.$i done +# Create a sysusers.d config file +cat >liquidwar.sysusers.conf </dev/null` if [ x"$user_uid" = x ] ; then - /usr/sbin/useradd -r -s /sbin/nologin -d %{_datadir}/%{name} -M \ - -c 'LiquidWar Server' \ - %{name} >/dev/null || : fi %post server %systemd_post liquidwar-server.service %preun server %systemd_post liquidwar-server.service @@ -140,19 +143,23 @@ fi %doc liquidwardocs/* %files server %{_bindir}/%{name}-server %{_mandir}/man6/%{name}-server.6.gz %{_unitdir}/liquidwar-server.service %config(noreplace) %{_sysconfdir}/sysconfig/%{name}-server %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-server +%{_sysusersdir}/liquidwar.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 5.6.5-19 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 5.6.5-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 5.6.5-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 5.6.5-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git lirc/lirc.spec lirc/lirc.spec.tmp index 93e4452574..e3f2457e8e 100644 --- lirc/lirc.spec +++ lirc/lirc.spec.tmp @@ -4,17 +4,17 @@ %global _hardened_build 1 %global __python %{__python3} %global released 1 #define tag devel Name: lirc Version: 0.10.0 -Release: 46%{?tag:.}%{?tag}%{?dist} +Release: 47%{?tag:.}%{?tag}%{?dist} Summary: The Linux Infrared Remote Control package %global repo http://downloads.sourceforge.net/lirc/LIRC/%{version} %global tarball %{name}-%{version}%{?tag:-}%{?tag}.tar.gz # lib/ciniparser* and lib/dictionary* are BSD, others GPLv2 # Automatically converted from old format: GPLv2 and BSD - review is highly recommended. License: GPL-2.0-only AND LicenseRef-Callaway-BSD @@ -59,17 +59,16 @@ BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: socat BuildRequires: systemd-devel BuildRequires: make Requires: %{name}-libs = %{version}-%{release} Requires: lockdev Suggests: xorg-x11-misc-fonts -Requires(pre): shadow-utils Requires(post): systemd #for triggerun Requires(post): systemd-sysv Requires(post): policycoreutils Requires(postun): systemd Requires(postun): policycoreutils Requires(preun): systemd @@ -228,16 +227,24 @@ sed -i -e 's/#effective-user/effective-user /' lirc_options.conf sed -i -e '/^effective-user/s/=$/= lirc/' lirc_options.conf sed -i '/User=/s/; *//' systemd/lircd.service sed -i '/Group=/s/; *//' systemd/lircd.service sed -i 's/; *user=/User=/' systemd/irexec.service sed -i 's/; *group=/Group=/' systemd/irexec.service sed -i -e "s|/usr/local/etc/|%{_sysconfdir}/|" contrib/irman2lirc +# Create a sysusers.d config file +cat >lirc.sysusers.conf < $RPM_BUILD_ROOT%{_tmpfilesdir}/lirc.conf +install -m0644 -D lirc.sysusers.conf %{buildroot}%{_sysusersdir}/lirc.conf + -%pre core -getent group lirc >/dev/null || groupadd -r lirc -getent passwd lirc >/dev/null || \ - useradd -r -g lirc -d /var/log/lirc -s /sbin/nologin \ - -c "LIRC daemon user, runs lircd." lirc -usermod -a -G dialout lirc &> /dev/null || : -usermod -a -G lock lirc &> /dev/null || : -usermod -a -G input lirc &> /dev/null || : -exit 0 %post core %systemd_post lircd.service lircmd.service systemd-tmpfiles --create %{_tmpfilesdir}/lirc.conf %preun core %systemd_preun lircd.service lircmd.service @@ -362,16 +362,17 @@ systemd-tmpfiles --create %{_tmpfilesdir}/lirc.conf %{_mandir}/man8/lirc*d.8* %{_mandir}/man8/lircd-setup.8* %{_mandir}/man8/lircd-uinput.8* %exclude %{_mandir}/man1/lirc-config-tool* %exclude %{_mandir}/man1/irdb-get* %exclude %{_mandir}/man1/lirc-setup* %exclude %{_mandir}/man1/irxevent* %exclude %{_mandir}/man1/xmode2* +%{_sysusersdir}/lirc.conf %files libs %license COPYING COPYING.ciniparser COPYING.curl %{_libdir}/libirrecord.so.* %{_libdir}/liblirc_client.so.* %{_libdir}/liblirc_driver.so.* %{_libdir}/liblirc.so.* @@ -391,16 +392,19 @@ systemd-tmpfiles --create %{_tmpfilesdir}/lirc.conf %license COPYING COPYING.ciniparser COPYING.curl %doc ChangeLog %{_pkgdocdir} %files disable-kernel-rc %{_udevrulesdir}/99-remote-control-lirc.rules %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.10.0-47 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 0.10.0-46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Sep 02 2024 Miroslav Suchý - 0.10.0-45 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 0.10.0-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git lizardfs/lizardfs.spec lizardfs/lizardfs.spec.tmp index a3e3278c8d..843b66e243 100644 --- lizardfs/lizardfs.spec +++ lizardfs/lizardfs.spec.tmp @@ -1,14 +1,14 @@ %define __cmake_in_source_build 1 Name: lizardfs Summary: Distributed, fault tolerant file system Version: 3.12.0 -Release: 29%{?dist} +Release: 30%{?dist} # LizardFS is under GPLv3 while crcutil is under ASL 2.0 and there's one header, # src/common/coroutine.h, under the Boost license # Automatically converted from old format: GPLv3 and ASL 2.0 and Boost - review is highly recommended. License: GPL-3.0-only AND Apache-2.0 AND BSL-1.0 URL: http://www.lizardfs.org/ Source: https://github.com/lizardfs/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: pam-lizardfs Source2: 95-lizardfs.conf @@ -122,22 +122,16 @@ Summary: LizardFS administration utility %description adm LizardFS command line administration utility. # Scriptlets - master ############################################################ -%pre master -getent group %{liz_group} >/dev/null || groupadd -r %{liz_group} -getent passwd %{liz_user} >/dev/null || \ - useradd -r -g %{liz_group} -d %{liz_datadir} -s /sbin/nologin \ - -c "LizardFS System Account" %{liz_user} -exit 0 %post master %systemd_post lizardfs-master.service %preun master %systemd_preun lizardfs-master.service %postun master @@ -209,16 +203,22 @@ for i in src/tools/mfstools.sh src/master/mfsrestoremaster.in \ utils/coverage.sh utils/cpp-interpreter.sh utils/wireshark/plugins/lizardfs/generate.sh; do sed -i 's@#!/usr/bin/env bash@#!/bin/bash@' $i done # Remove /usr/bin/env from python3 scripts for i in src/cgi/cgiserv.py.in src/cgi/chart.cgi.in src/cgi/lizardfs-cgiserver.py.in src/cgi/mfs.cgi.in utils/wireshark/plugins/lizardfs/make_dissector.py; do sed -i 's@#!/usr/bin/env python3@#!/usr/bin/python3@' $i done +# Create a sysusers.d config file +cat >lizardfs.sysusers.conf < - 3.12.0-30 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Artur Frenszek-Iwicki - 3.12.0-29 - Fix FTBFS * Fri Jan 17 2025 Fedora Release Engineering - 3.12.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Aug 07 2024 Miroslav Suchý - 3.12.0-27 - convert license to SPDX RPMAutoSpec usage detected, not changing the spec file. diff --git lockdev/lockdev.spec lockdev/lockdev.spec.tmp index d0ca9e28be..ccf2818a71 100644 --- lockdev/lockdev.spec +++ lockdev/lockdev.spec.tmp @@ -16,17 +16,16 @@ URL: https://alioth.debian.org/projects/lockdev/ # This is a nightly snapshot downloaded via # https://alioth.debian.org/snapshots.php?group_id=100443 Source0: lockdev-%{version}.%{checkout}.tar.gz Patch1: lockdev-euidaccess.patch Patch2: 0001-major-and-minor-functions-moved-to-sysmacros.h.patch -Requires(pre): shadow-utils Requires(post): glibc Requires(postun): glibc Requires: systemd BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: perl-interpreter @@ -50,16 +49,21 @@ package contains the development headers. %prep %setup -q -n lockdev-scm-%{co_date} # Replace access() calls with euidaccess() (600636#c33) %patch -P1 -p1 -b .access %patch -P2 -p1 +# Create a sysusers.d config file +cat >lockdev.sysusers.conf < VERSION # To satisfy automake touch ChangeLog # Bootstrap autotools @@ -82,33 +86,34 @@ mkdir -p %{buildroot}%{_lockdir} # install /usr/lib/tmpfiles.d/lockdev.conf (#1324184) mkdir -p ${RPM_BUILD_ROOT}%{_tmpfilesdir} cat > ${RPM_BUILD_ROOT}%{_tmpfilesdir}/lockdev.conf </dev/null 2>&1 || groupadd -g 54 -r -f lock >/dev/null 2>&1 || : +install -m0644 -D lockdev.sysusers.conf %{buildroot}%{_sysusersdir}/lockdev.conf + %post if [ $1 -eq 1 ] ; then # for the time until first reboot %tmpfiles_create lockdev.conf fi %files %{license} COPYING %doc AUTHORS %ghost %dir %attr(0775,root,lock) %{_lockdir} %attr(2711,root,lock) %{_sbindir}/lockdev %{_tmpfilesdir}/lockdev.conf %{_libdir}/*.so.* %{_mandir}/man8/* +%{_sysusersdir}/lockdev.conf %files devel %{_libdir}/*.so %{_libdir}/pkgconfig/lockdev.pc %{_mandir}/man3/* %{_includedir}/* %changelog diff --git lpf/lpf.spec lpf/lpf.spec.tmp index f618b25a9d..0cb45def7e 100644 --- lpf/lpf.spec +++ lpf/lpf.spec.tmp @@ -1,16 +1,16 @@ %global commit f9032ddd26ffb33fd140e0b9d5ee72c445608077 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global gitdate 20210927 #%%global rel .%%{gitdate}.%%{shortcommit} Name: lpf Version: 0.3 -Release: 12%{?rel}%{?dist} +Release: 13%{?rel}%{?dist} Summary: Local package factory - build non-redistributable rpms # Icon from iconarchive.com License: MIT URL: https://github.com/sergiomb2/lpf #Source0: %%{url}/archive/%%{commit}/lpf-%%{version}%%{?rel}.tar.gz Source0: %{url}/archive/v%{version}/lpf-%{version}%{?rel}.tar.gz Patch1: https://github.com/sergiomb2/lpf/commit/4f414697e6977da5fdeff7632ec3ea86ffdfbdfb.patch @@ -24,21 +24,19 @@ BuildRequires: make BuildRequires: desktop-file-utils BuildRequires: python3-devel Requires: hicolor-icon-theme Requires: inotify-tools Requires: polkit Requires: procps-ng Requires: rpmdevtools Requires: rpm-build -Requires: shadow-utils Requires: sudo Requires: dnf Requires: zenity -Requires(pre): shadow-utils #for lpf-gui Requires: python3-gobject-base %description lpf (Local Package Factory) is designed to handle two separate problems: - Packages built from sources which does not allow redistribution. @@ -48,34 +46,35 @@ It works by downloading sources, possibly requiring a user to accept license terms and then building and installing rpm package(s) locally. Besides being interactive the operation is similar to akmod and dkms. %prep %autosetup -p1 #-n lpf-%%{commit} +# Create a sysusers.d config file +cat >lpf.sysusers.conf </dev/null || groupadd -r pkg-build -getent passwd pkg-build >/dev/null || \ - useradd -r -g pkg-build -d /var/lib/lpf -s /sbin/nologin \ - -c "lpf local package build user" pkg-build -exit 0 %files %doc README.md LICENSE %{_bindir}/lpf %{_bindir}/lpf-gui %{_rpmconfigdir}/macros.d/macros.lpf %{_datadir}/lpf @@ -83,19 +82,23 @@ exit 0 %{_datadir}/applications/lpf-gui.desktop %{_datadir}/applications/lpf-notify.desktop %{_datadir}/icons/hicolor/*/apps/lpf*.png %{_datadir}/appdata/lpf-gui.appdata.xml %{_datadir}/man/man1/lpf* %{_libexecdir}/lpf-kill-pgroup %attr(440, root, root) %config(noreplace) %{_sysconfdir}/sudoers.d/pkg-build %attr(2775, pkg-build, pkg-build)/var/lib/lpf +%{_sysusersdir}/lpf.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 0.3-13 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 0.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Nov 03 2024 Sérgio Basto - 0.3-11 - Only requires dnf to work with dnf5 Resolves: rhbz#2209396 * Thu Oct 24 2024 Sérgio Basto - 0.3-10 - (#2319776) fixes dnf install for dnf5 diff --git lttng-tools/lttng-tools.spec lttng-tools/lttng-tools.spec.tmp index 496526f56a..64acda5983 100644 --- lttng-tools/lttng-tools.spec +++ lttng-tools/lttng-tools.spec.tmp @@ -4,17 +4,17 @@ %define arg_python --enable-python-bindings %else %define arg_python --disable-python-bindings %endif Name: lttng-tools Version: 2.13.14 -Release: 2%{?dist} +Release: 3%{?dist} License: GPL-2.0-only AND LGPL-2.1-only URL: http://lttng.org Summary: LTTng control and utility programs Source0: http://lttng.org/files/lttng-tools/%{name}-%{version}.tar.bz2 Source1: http://lttng.org/files/lttng-tools/%{name}-%{version}.tar.bz2.asc # gpg2 --export --export-options export-minimal 7F49314A26E0DE78427680E05F1B2A0789F12B11 > gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg Source2: gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg Source3: lttng-sessiond.service @@ -33,17 +33,16 @@ BuildRequires: systemtap-sdt-devel BuildRequires: userspace-rcu-devel >= 0.11.0 # For check BuildRequires: babeltrace BuildRequires: hostname BuildRequires: kmod BuildRequires: procps-ng -Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd #GCC crash when building this package on arm with hardening activated (See bug 987192). %ifnarch %{arm} %global _hardened_build 1 %endif @@ -69,16 +68,21 @@ BuildRequires: python3-devel %description -n python3-lttng This package provides Python bindings for LTTng %endif %prep %autosetup -p1 +# Create a sysusers.d config file +cat >lttng-tools.sysusers.conf </dev/null || groupadd -r tracing -exit 0 +install -m0644 -D lttng-tools.sysusers.conf %{buildroot}%{_sysusersdir}/lttng-tools.conf + %post /sbin/ldconfig %systemd_post lttng-sessiond.service %preun %systemd_preun lttng-sessiond.service @@ -166,16 +169,17 @@ exit 0 %{_defaultdocdir}/%{name}/live-reading-howto.txt %{_defaultdocdir}/%{name}/python-howto.txt %{_defaultdocdir}/%{name}/quickstart.txt %{_defaultdocdir}/%{name}/snapshot-howto.txt %{_defaultdocdir}/%{name}/streaming-howto.txt %{_unitdir}/lttng-sessiond.service %{_sysconfdir}/bash_completion.d/ %{_datadir}/xml/lttng/session.xsd +%{_sysusersdir}/lttng-tools.conf %files -n %{name}-devel %{_mandir}/man3/lttng-health-check.3.gz %{_defaultdocdir}/%{name}/live-reading-protocol.txt %{_defaultdocdir}/%{name}/valgrind-howto.txt %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/lttng-ctl.pc @@ -184,16 +188,19 @@ exit 0 %files -n python%{python3_pkgversion}-lttng %{_defaultdocdir}/%{name}/python-howto.txt %{python3_sitelib}/lttng.py %{python3_sitelib}/__pycache__/*.pyc %{python3_sitearch}/_lttng.so* %endif %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 2.13.14-3 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 2.13.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Sep 04 2024 Kienan Stewart - 2.13.14-1 - New upstream release * Thu Jul 18 2024 Fedora Release Engineering - 2.13.13-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git macromilter/macromilter.spec macromilter/macromilter.spec.tmp index 9d9593937e..7db7b58961 100644 --- macromilter/macromilter.spec +++ macromilter/macromilter.spec.tmp @@ -1,14 +1,14 @@ Summary: Milter to check mails for suspicious Microsoft VBA macro code Name: macromilter URL: https://github.com/sbidy/MacroMilter Version: 3.7.0 License: MIT -%global baserelease 16 +%global baserelease 17 # Build from release or from git snapshot %bcond_without snapshot # Build python2 up till fc31 and rhel7, use python3 on fc32+ and rhel8+ %if ( 0%{?fedora} && 0%{?fedora} >= 32 ) || ( 0%{?rhel} && 0%{?rhel} >= 8 ) %bcond_without python3 %else @@ -38,17 +38,16 @@ Source2: macromilter.logrotate Source3: macromilter.tmpfilesd Source4: README.fedora #Patch0: macromilter-3.4.3-var-lib.patch BuildArch: noarch BuildRequires: systemd -Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel Requires: python%{python3_pkgversion}-oletools Requires: python%{python3_pkgversion}-pymilter @@ -79,16 +78,21 @@ be rejected. %prep %if ! 0%{?with_snapshot} %autosetup -n MacroMilter-%{version} %else %autosetup -n MacroMilter-%{commit} %endif cp -pf %{SOURCE4} . +# Create a sysusers.d config file +cat >macromilter.sysusers.conf < /dev/null || %{_sbindir}/groupadd -r %{name} -getent passwd %{name} > /dev/null || %{_sbindir}/useradd -r -g %{name} -d %{_localstatedir}/lib/%{name} -s /sbin/nologin -c "MacroMilter service" %{name} -exit 0 %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service @@ -130,18 +132,22 @@ exit 0 %config(noreplace) %{_sysconfdir}/%{name}/config.yaml %dir %{_sysconfdir}/logrotate.d/ %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_unitdir}/%{name}.service %{_tmpfilesdir}/%{name}.conf %dir %attr(0755,%{name},%{name}) /run/%{name}/ %dir %attr(0750,%{name},%{name}) %{_localstatedir}/lib/%{name}/ %dir %attr(0750,%{name},%{name}) %{_localstatedir}/log/%{name}/ +%{_sysusersdir}/macromilter.conf %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 3.7.0-0.17.20191111git2761838 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 3.7.0-0.16.20191111git2761838 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 3.7.0-0.15.20191111git2761838 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 3.7.0-0.14.20191111git2761838 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git maradns/maradns.spec maradns/maradns.spec.tmp index fdd98efc50..28e6fc9a03 100644 --- maradns/maradns.spec +++ maradns/maradns.spec.tmp @@ -1,40 +1,44 @@ Name: maradns Version: 3.5.0036 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Authoritative and recursive DNS server made with security in mind Source0: http://www.maradns.org/download/3.5/%{version}/%{name}-%{version}.tar.xz # http://maradns.samiam.org/download/patches/3rd_party/Thomasz-Torcz-systemd-2013-10-14.patch Patch0: %{name}-0001-add-systemd-unit-files.patch # parts of MaraDNS – the files in coLunacyDNS/lunacy – are under MIT (Lua) license, # but we don't package them License: BSD-2-Clause URL: http://www.maradns.org/ BuildRequires: make BuildRequires: gcc %{?systemd_requires} BuildRequires: systemd -Requires(pre): shadow-utils %description MaraDNS is a package that implements the Domain Name Service (DNS), an essential internet service. MaraDNS has the following advantages: * Secure. * Supported. * Easy to use. * Small. * Open Source. %prep %setup -q %autopatch -p1 +# Create a sysusers.d config file +cat >maradns.sysusers.conf </dev/null || groupadd -r maradns - getent passwd maradns >/dev/null || \ - useradd -r -g maradns -d /etc/maradns -s /sbin/nologin \ - -c "MaraDns chroot user" maradns - exit 0 fi %post if [ $1 -eq 1 ]; then # correct UID/GID of maradns user sed --in-place -e "s/^maradns_uid.*/maradns_uid = $(id -u maradns)/" %{_sysconfdir}/mararc sed --in-place -e "s/^maradns_gid.*/maradns_gid = $(id -g maradns)/" %{_sysconfdir}/mararc @@ -143,16 +145,19 @@ fi %preun %systemd_preun maradns.service maradns-zoneserver.service maradns-deadwood.service %postun %systemd_postun_with_restart maradns.service maradns-zoneserver.service maradns-deadwood.service %changelog +* Tue Feb 04 2025 Zbigniew Jędrzejewski-Szmek - 3.5.0036-7 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Mon Jan 20 2025 Fedora Release Engineering - 3.5.0036-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 3.5.0036-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 3.5.0036-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git mariadb10.11/mariadb10.11.spec mariadb10.11/mariadb10.11.spec.tmp index 0992729b2f..e1b66b7a84 100644 --- mariadb10.11/mariadb10.11.spec +++ mariadb10.11/mariadb10.11.spec.tmp @@ -152,17 +152,17 @@ # 'community-mysql' names are deprecated and to be removed in future Fedora %bcond_without conflicts_community_mysql # Make long macros shorter %global sameevr %{epoch}:%{version}-%{release} Name: %{majorname}%{majorversion} Version: %{package_version} -Release: 3%{?with_debug:.debug}%{?dist} +Release: 4%{?with_debug:.debug}%{?dist} Epoch: 3 Summary: A very fast and robust SQL database server URL: http://mariadb.org License: ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC Source0: https://downloads.mariadb.org/interstitial/mariadb-%{version}/source/mariadb-%{version}.tar.gz %if %{with bundled_fmt} @@ -530,17 +530,16 @@ Requires: %{_sysconfdir}/my.cnf.d %if %{with require_mysql_selinux} # The *-selinux package should only be required on SELinux enabled systems. Therefore the following rich dependency syntax should be used: Requires: (mysql-selinux >= 1.0.10 if selinux-policy-targeted) # This ensures that the *-selinux package and all its dependencies are not pulled into containers and other systems that do not use SELinux. # https://fedoraproject.org/wiki/SELinux/IndependentPolicy#Adding_dependency_to_the_spec_file_of_corresponding_package %endif Requires: coreutils -Requires(pre): /usr/sbin/useradd # We require this to be present for %%{_tmpfilesdir} Requires: systemd # Make sure it's there when scriptlets run, too %{?systemd_requires} # RHBZ#1496131; use 'iproute' instead of 'net-tools' Requires: iproute %{?with_conflicts_mysql:Conflicts: mysql-server} @@ -896,16 +895,21 @@ fi # Check if the PCRE version that upstream use, is the same as the one present in system pcre_system_version=`pkgconf /usr/%{_lib}/pkgconfig/libpcre2-*.pc --modversion 2>/dev/null | head -n 1` if [ "$pcre_system_version" != "$pcre_version" ] ; then echo -e "\n Warning: Error: Bundled PCRE version is not correct. \n\tSystem version number: $pcre_system_version \n\tUpstream version number: $pcre_version\n" fi %endif +# Create a sysusers.d config file +cat >mariadb10.11.sysusers.conf <