Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

systemd-rpm-macros-7-7.15.1 RPM for noarch

From OpenSuSE Leap 15.3 for noarch

Name: systemd-rpm-macros Distribution: SUSE Linux Enterprise 15
Version: 7 Vendor: SUSE LLC <>
Release: 7.15.1 Build date: Tue Mar 9 16:55:12 2021
Group: Development/Tools/Building Build host: sheep60
Size: 10409 Source RPM: systemd-rpm-macros-7-7.15.1.src.rpm
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.






* Fri Mar 05 2021
  - Bump to version 7
* Fri Mar 05 2021
  - Remove confusing --user before --global in %systemd_user_preun
    It's actually a backport of upstream commit
  - Update a few comments
* Fri Mar 05 2021
  - Don't pass -f to rm to make sure that rm failures will be logged
    But also make sure to not abort the scriptlet prematurely if rm
* Fri Mar 05 2021
  - Add a %systemd_user_pre macro (boo#1183051, boo#1183012)
    It 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 (even when it's introduced via a package update).
* Fri Mar 05 2021
  - Fix %systemd_user_post (boo#1183051, boo#1182661)
    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.
* Fri Mar 05 2021
  - Tabify %service_del_postun_without_restart
    To make it consistent with the other macros.
    No functional change.
* Fri Feb 12 2021
  - Bump to version 6
* Fri Feb 12 2021
  - Make upstream %systemd_{pre,post,preun,postun} aliases to their SUSE
    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
  - 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.
* Tue Nov 24 2020
  - Bump to version 5 (bsc#1179020)
    This milestone makes systemd rpm macros mostly identical between
    SLE12-SP2 and SLE15.
* Tue Nov 24 2020
  - 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.
* Fri Nov 13 2020
  - Bump version to 4.2
* Fri Nov 13 2020
  - Deprecate '-f'/'-n' options
    When used with %service_del_preun, support for these options will be
    dropped as DISABLE_STOP_ON_REMOVAL support will be removed on the
    next version of SLE (jsc#SLE-8968)
    When used with %service_del_postun, they should be replaced with
    their counterpart
* Fri Nov 13 2020
  - 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().
* Fri Nov 13 2020
  - Dont apply presets when migrating from a disabled initscript (bsc#1178481)
* Fri Nov 13 2020
  - Test for the presence of systemctl only once in %service_add_{post,pre}
    No functional changes.
* Fri Nov 13 2020
  - 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.
* Fri Sep 25 2020
  - Bump version to 4.1
* Fri Sep 25 2020
  - Backport missing macros of directory paths from upstream
    + %_environmentdir
    + %_modulesloaddir
    + %_modprobedir
* Fri Sep 25 2020
  - Make sure %_restart_on_update_never and %_stop_on_removal_never
    don't expand to the empty string (bsc#1176932)
    Otherwise sequences like the following code:
      if [ ... ]; then
    would result in the following incorrect shell syntax:
      if [ ... ]; then
* Fri Sep 11 2020
  - Introduce %service_del_postun_without_restart (bsc#1173034)
    This new interface is preferred over the use of %service_del_postun
    with '-f' and '-n' options. It's been in Factory since a year and a
* Wed Feb 14 2018
  - Fix %systemd_post(): it's never called during package removal
    Also make it useful by restoring its original implementation.
* Mon Feb 12 2018
  - Import more definitions from upstream (v237)
* Mon Jan 22 2018
  - Fix system_user_post macro for usage with RPM 4.14, backport from
* Thu Dec 14 2017
  - Move macros.systemd in /usr/lib/rpm
    The file is not supposed to be customized by the user.
* Wed Dec 13 2017
  - Make %systemd_add_pre() more similar to %systemd_add_post()
    The main advantage is that we pass only one argument to
    systemd-sysv-convert script. The later can now be improved/rewritten
    to handle only one argument and return a useful exit status.
* Wed Dec 13 2017
  - Make sure to apply presets if packages start shipping units during upgrades (bsc#1071543)
    If a package started shipping units during upgrade only sysv
    migration was done. However if the package didn't ship any sysv
    scripts before no presets were applied.
    Now during upgrades, preset are always applied (still only during
    the first time the units are installed) then followed by the sysv
    migration machinery.
    The downside of this is that migrated services can have symlinks in
    both (created by the sysv migration) and in
    the directory specified by the [Install] sections (created by
    "systemctl preset")...
    The whole thing should be rewritten.
* Fri Dec 01 2017
  - Make sure to clean up "new-in-upgrade" tag file (bsc#1059627)
    The tag file might have been incorrectly left by a preceding update.
* Wed Nov 22 2017
  - Restore previous changes
* Fri Nov 17 2017
  - Revert previous changes
    Also added reasons why the previous changes would be needed.
* Fri Nov 17 2017
  - Don't execute systemd-tmpfiles if we run in transactional update
    If you do transactional updates, it doesn't make any sense to
    execute the tmpfiles. They will only create a lot of directories,
    files or symlinks in empty directories without any use and later
    hidden under the real mount points. With transactional updates, you
    should do such things always during the boot phase, as designed by
    systemd (and like Fedora and RHEL doing, but in their use case it's
    in my opinion a bug).
* Thu Nov 02 2017
  - Remove a useless test in %service_add_pre()
    The test was placed where the condition '[ "$FIRST_ARG" -gt 1 ]' was
    always true.
* Fri Jun 02 2017
  - BuildIgnore systemd-rpm-macros: a small cycle that can be
    avoided. system-rpm-macros is being pulled in by rpm-build as
    conveniance to the packagers.
* Fri Jun 02 2017
  - Reference bsc#956849 to please the new OBS 'sanity' check (bsc#1041386)
    %tmpfiles_create is already part of the version shipped by Factory
    so there's nothing to do here execpt mentioning (bsc#956849).
* Fri Mar 10 2017
  - Kill preset macros
    The last users have been fixed so these macros are no more used by
    any package.
    The introduction of them was a bad idea and only the branding preset
    package is still using a similar mechanism but at least it's now
    self contained in this package. Also the package calls now a shell
    script instead of rpm macros.
    Upstream is working on making this completely obsolete so the preset
    branding package could be cleaned up for good.
* Wed Jan 11 2017
  - RPM group fix
* Fri Jun 03 2016
  - %service_add_post() suppress daemon-reload when in installation
    system (bsc#982343)
* Thu Mar 03 2016
  - Allow the packagers to specify the options -f and -n on the
    macros %service_del_preun(), %service_del_postun(), %systemd_post(),
    and %systemd_preun() (boo#968405)
* Sat Feb 27 2016
    when specified by a package directly in the .spec file. Some
    package know that a restart of their service is fatal
* Fri Nov 20 2015
    from /etc/sysconfig/service (bsc#955996)
* Fri Sep 18 2015
  - Skip %systemd_preset_* during the clean installation to prevent
    presetting of all services (boo#946216).
* Tue Aug 04 2015
  - Add %systemd_preset_pre and %systemd_preset_posttrans that will
    do one shot presetting of all services with changed system
    preset. It makes possible to to fix bad default service state
    (bnc#900935#c46, FATE#318949, FATE#317727, bnc#921075).
  - Increment version to 3.
* Mon Jun 15 2015
  - Check for presence/executability of systemd programs before
    executing them, and do not suppress warnings/errors resulting
    from them.
* Fri Jan 09 2015
  - Update with new macros from systemd 218
  - Remove empty sections from specfile
* Tue Nov 18 2014
  - Mark /etc/rpm/macros.systemd as configuration file
* Tue Nov 18 2014
  - Apply then delete patch systemd-daemon-reload-before-service-restart.patch
  - Add orignal systemd macros as well (boo#807164)
* Wed Oct 15 2014
  - make systemd aware of changed unit file content after update
    add systemd-daemon-reload-before-service-restart.patch



Generated by rpm2html 1.8.1

Fabrice Bellet, Fri Feb 9 14:43:16 2024