Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: systemd-rpm-macros | Distribution: openSUSE Tumbleweed |
Version: 19 | Vendor: openSUSE |
Release: 1.2 | Build date: Sun Mar 19 17:19:30 2023 |
Group: Development/Tools/Building | Build host: build79 |
Size: 9598 | Source RPM: systemd-rpm-macros-19-1.2.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines | |
Summary: RPM macros for systemd |
Starting with openSUSE 12.1, several RPM macros must be used to package systemd services files. This package provides these macros.
LGPL-2.1-or-later
* Thu Jan 26 2023 Franck Bui <fbui@suse.com> - Bump to version 19 * Thu Jan 26 2023 Franck Bui <fbui@suse.com> - `udevadm hwdb` is deprecated, use `systemd-hwdb` instead. * Wed Nov 23 2022 Franck Bui <fbui@suse.com> - Bump to version 18 * Wed Nov 23 2022 Dan Čermák <dcermak@suse.com> - Add %_user_tmpfilesdir macro * Mon Oct 03 2022 Franck Bui <fbui@suse.com> - Bump to version 17 * Mon Oct 03 2022 Franck Bui <fbui@suse.com> - Fix syntax error in %tmpfiles_create_package() (bsc#1203945) * Thu Feb 17 2022 Franck Bui <fbui@suse.com> - Bump to version 16 * Thu Feb 17 2022 Franck Bui <fbui@suse.com> - Drop enablement symlink migration support of SysV init scripts This was announced here: https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/3ERUP5ZZJ6PPA36L3HVN46BH6U6JL74O/ * Wed Jan 19 2022 Franck Bui <fbui@suse.com> - Bump to version 15 * Tue Jan 18 2022 Franck Bui <fbui@suse.com> - %sysusers_create_inline was wrongly marked as deprecated - %sysusers_create can be useful in certain cases and won't go away until we'll move to file triggers. So don't mark it as deprecated too * Wed Nov 17 2021 Franck Bui <fbui@suse.com> - Bump version to 14 * Wed Nov 17 2021 Franck Bui <fbui@suse.com> - Introduce %_systemd_util_dir It's a backport of upstream commit 3bc66bfa0136e370a8f7b06c3b69a52f5636ef82. * Wed Sep 29 2021 Dominique Leuenberger <dimstar@opensuse.org> - Use %{load:} instead of %{?load:}: fix build with RPM 4.17. * Wed Jun 30 2021 Franck Bui <fbui@suse.com> - Bump to version 13 * Wed Jun 30 2021 Franck Bui <fbui@suse.com> - Make use of "Suggests:" in %systemd_ordering Until libzypp supports "OrderWithRequires:", we need to specify a similar ordering constraint that can be understood by the dep solver as well. Hence the use of "Suggests:" in %systemd_ordering (workaround for bsc#1187332). * Thu May 20 2021 Franck Bui <fbui@suse.com> - Bump to version 12 * Thu May 20 2021 Franck Bui <fbui@suse.com> - Introduce %sysusers_create_package %sysusers_create and %sysusers_create_inline are now deprecated and the new macro should be used instead. Upstream commit 07a7d4a0040d221ff09e527e91c112b4ffab1dba. - Introduce %tmpfiles_create_package %%tmpfiles_create is now deprecreated and the new macros should be used instead. Upstream commit 0f78fee8d039000b987848a558fbaa15d916e14e. * Thu May 20 2021 Franck Bui <fbui@suse.com> - %sysusers_create_inline: use here-docs instead of echo (bsc#1186282) Upstream commit dd2490ae12ad1e1795ecbf8f8944b950da9c8d06. * Fri Mar 05 2021 Franck Bui <fbui@suse.com> - Bump to version 11 * Fri Mar 05 2021 Antonio Larrosa <alarrosa@suse.com> - Don't pass -f to rm in %service_add_post nor %systemd_user_post * Fri Mar 05 2021 Antonio Larrosa <alarrosa@suse.com> - Add a %systemd_user_pre macro that creates a /run/systemd/rpm/needs-user-preset/$service file for each new service being installed so %systemd_user_post can call `systemctl --global preset $service` properly for newly installed user services (boo#1183051, boo#1183012). * Thu Mar 04 2021 Antonio Larrosa <alarrosa@suse.com> - Fix %systemd_user_post. The --global parameter was handled as if it was another service name so %systemd_user_post wasn't working properly. Replace %systemd_user_post with the code from %service_add_post it was being expanded to but correctly passing - -global to systemctl (boo#1183051, boo#1182661). * Fri Feb 12 2021 Franck Bui <fbui@suse.com> - Bump version to 10 * Fri Feb 12 2021 Franck Bui <fbui@suse.com> - Make upstream %systemd_{pre,post,preun,postun} aliases to their SUSE counterparts Packagers can now choose to use the upstream or the SUSE variants indifferently. For consistency the SUSE variants should be preferred since almost all SUSE packages already use them but the upstream versions might be usefull in certain cases where packages need to support multiple distros based on RPM. * Fri Feb 12 2021 Franck Bui <fbui@suse.com> - Improve the logic used to apply the presets (bsc#1177039) Before presests were applied at a) package installation b) new units introduced via a package update (but after making sure that it was not a SysV initscript being converted). The problem is that a) didn't handle package a renaming or split properly since the package with the new name is installed rather being updated and therefore the presets were applied even if they were already with the old name. We now cover this case (and the other ones) by applying presets only if the units are new and the services are not being migrated. This regardless of whether this happens during an install or an update. * Mon Nov 23 2020 Franck Bui <fbui@suse.com> - Bump version to 9 * Mon Nov 23 2020 Franck Bui <fbui@suse.com> - daemon-reload is not needed in %service_add_post Applying presets, ie enabling/disabling units, doesn't require to update units loaded in PID1 memory. It's actually needed after and it's done implicitly by `systemctl preset`. * Fri Nov 20 2020 Franck Bui <fbui@suse.com> - Rename the tag file used to detect when presets need to be applied Rather than placing these tags directly under /run, let's place them under /run/systemd/rpm. This also has the benefit to make the workaround for bsc#1059627 no more needed. * Thu Nov 19 2020 Franck Bui <fbui@suse.com> - %service_del_preun doesn't accept -f/-n options anymore The few package calling %service_del_preun with '-f' or '-n' option have been fixed. These options are not needed anymore. * Tue Nov 10 2020 Franck Bui <fbui@suse.com> - Bump version to 8 * Tue Nov 10 2020 Franck Bui <fbui@suse.com> - Introduce %service_del_postun_with_restart() It's the counterpart of %service_del_postun_without_restart() and replaces the '-f' option of %service_del_postun(). - Expand %service_del_postun_without_restart in %service_del_postun * Tue Nov 10 2020 Franck Bui <fbui@suse.com> - Add a missing space in %_restart_on_update() * Mon Nov 09 2020 Franck Bui <fbui@suse.com> - Bump version to 7 * Mon Nov 09 2020 Franck Bui <fbui@suse.com> - Dont apply presets when migrating from a disabled initscript (bsc#1178481) * Mon Nov 09 2020 Franck Bui <fbui@suse.com> - Bump version to 6 * Mon Nov 09 2020 Franck Bui <fbui@suse.com> - Test for the presence of systemd only once in %service_add_post * Mon Nov 09 2020 Franck Bui <fbui@suse.com> - No need to run 'systemd-sysv-convert --save' in %service_add_pre anymore Due to the fact that the initscripts being removed during package updates are still available in %post, systemd-sysv-convert has been reworked so it's only needed to call it in %post. * Mon Nov 09 2020 Franck Bui <fbui@suse.com> - Make rpmbuild load our own macros.systemd to import %{%_unitdir} properly Ideally we should also own other %{_*dir} paths... - Stop owning /usr/lib/systemd directory as no package other than systemd is supposed to put files there. * Mon Nov 02 2020 Franck Bui <fbui@suse.com> - DISABLE_RESTART_ON_UDPATE is no more read from the (build) environment %service_del_postun_without_restart is the interface that should be used by packages that need to prevent theirs services from being restarted. * Fri Oct 30 2020 Franck Bui <fbui@suse.com> - Bump version to 5 * Fri Oct 30 2020 Franck Bui <fbui@suse.com> - Drop DISABLE_STOP_ON_REMOVAL support (jsc#SLE-8968) %service_del_preun still accepts '-n' and '-f' options to keep backward compatibility with SLE (as some packages share the same devel project between SLE and openSUSE) but these options are now ignored on Factory. * Fri Sep 25 2020 Franck Bui <fbui@suse.com> - Bump version to 4.1 * Tue Aug 25 2020 Neal Gompa <ngompa13@gmail.com> - Sync missing macros of directory paths from upstream systemd macros + %_environmentdir + %_modulesloaddir + %_modprobedir * Tue Mar 12 2019 Franck Bui <fbui@suse.com> - $1 can never be empty or it's an rpm bug * Tue Mar 12 2019 Franck Bui <fbui@suse.com> - Get rid of $FIRST_ARG $FIRST_ARG was probably introduced because the %service_* macros were playing tricks on the shell positional parameters. This is bad practice and error prone so let's assume that no macros should do that anymore and hence it's safe to assume that positional parameters remains unchanged after any rpm macro call. All users of $FIRST_ARG should have been fixed by now and in most cases the use of the variable was unneeded (since the macros don't change the shell parameters) and thus confusing. 'net-snmp' has a different use of FIRST_ARG though as it tried to fake an update during a package installation. Fortunately this could have been fixed too. * Fri Mar 01 2019 Franck Bui <fbui@suse.com> - Fix %_restart_on_update_force: drop one extra trailing '}' Thanks Werner for spotting. * Wed Feb 27 2019 Franck Bui <fbui@suse.com> - Simplify %_restart_on_update and %_stop_on_removal There's no need to spawn sub shells when these macros are used. * Wed Feb 27 2019 Franck Bui <fbui@suse.com> - Macros arguments are mandatory Especially in %_restart_on_update_never and %_stop_on_removal_never, let's assume that they always receive unit names as arguments. This allows to make them slightly simpler (less rpm macro black magic). Callers will fail earlier if no arguments are passed anyway. * Wed Feb 27 2019 Franck Bui <fbui@suse.com> - Make sure %_restart_on_update_never and %_stop_on_removal_never don't expand to the empty string Otherwise sequences like the following would result in incorrect shell syntax: if [ ]; then %_restart_on_update_never fi * Wed Feb 27 2019 Franck Bui <fbui@suse.com> - Restore one daemon-reload command It was erroneously removed during the drop of $YAST_IS_RUNNING. * Mon Feb 25 2019 Franck Bui <fbui@suse.com> - Bump version to 4 * Fri Feb 22 2019 Franck Bui <fbui@suse.com> - Introduce %service_del_postun_without_restart This is another step to make the SUSE rpm macros closer to their upstream counterparts. Introduce %service_del_postun_without_restart which should help in getting rid of '-f' and '-n' switches of %service_del_postun. * Thu Feb 21 2019 Franck Bui <fbui@suse.com> - Drop $YAST_IS_RUNNING in favor of $SYSTEMD_OFFLINE (bsc#1117489) libzypp now kindly defines SYSTEMD_OFFLINE when appropriate (see bsc#1118758). Therefore we don't need to rely on YAST_IS_RUNNING anymore. It's a tiny step to make the SUSE macros closer to their upstream counterparts.
/usr/lib/rpm/macros.d/macros.systemd /usr/lib/systemd/system
Generated by rpm2html 1.8.1
Fabrice Bellet, Mon Apr 3 23:24:25 2023