Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package 
systemd-presets-branding-transactional-server for openSUSE:Factory checked in 
at 2026-01-12 11:49:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing 
/work/SRC/openSUSE:Factory/systemd-presets-branding-transactional-server (Old)
 and      
/work/SRC/openSUSE:Factory/.systemd-presets-branding-transactional-server.new.1928
 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "systemd-presets-branding-transactional-server"

Mon Jan 12 11:49:49 2026 rev:5 rq:1326705 version:15.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/systemd-presets-branding-transactional-server/systemd-presets-branding-transactional-server.changes
      2019-06-18 14:53:54.789495766 +0200
+++ 
/work/SRC/openSUSE:Factory/.systemd-presets-branding-transactional-server.new.1928/systemd-presets-branding-transactional-server.changes
    2026-01-12 11:49:55.461132930 +0100
@@ -1,0 +2,6 @@
+Fri Jan  9 15:04:09 UTC 2026 - Callum Farmer <[email protected]>
+
+- Modernize specfile
+- Use RPM macros provided by systemd-presets-common-SUSE-devel
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ systemd-presets-branding-transactional-server.spec ++++++
--- /var/tmp/diff_new_pack.Ic57ue/_old  2026-01-12 11:49:56.265166873 +0100
+++ /var/tmp/diff_new_pack.Ic57ue/_new  2026-01-12 11:49:56.269167042 +0100
@@ -15,7 +15,6 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-
 %define generic_name systemd-presets-branding
 
 Name:           systemd-presets-branding-transactional-server
@@ -26,20 +25,18 @@
 Group:          System/Base
 Source0:        50-transactional-server.preset
 BuildRequires:  pkgconfig(systemd)
-BuildRequires:  systemd-presets-common-SUSE
-PreReq:         coreutils
-# systemd-presets-common-SUSE provides
-Requires(pre):  systemd-presets-common-SUSE
+BuildRequires:  systemd-presets-common-SUSE-devel
+Requires(pre):  coreutils
 Requires(pre):  bash
 Requires(post): bash
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
+%{?systemd_preset_requires}
 
 %description
 Service presets for systemd for Transactional Server System Role.
 
 %prep
-%setup -q -T -c
+%autosetup -T -c
 
 %build
 
@@ -49,37 +46,13 @@
 install -m644 %{SOURCE0}  %{buildroot}%{_prefix}/lib/systemd/system-preset/
 
 %pre
-# On initial installation, branding-preset-states does not yet exist,
-# which is why we also check for the file to be present/executable
-if [ $1 -gt 1 -a -x %{_prefix}/lib/%{generic_name}/branding-preset-states ] ; 
then
-        #
-        # Save the old state so we can detect which package have its
-        # default changed later.
-        #
-        # Note: the old version of the script is used here.
-        #
-        %{_prefix}/lib/%{generic_name}/branding-preset-states save
-elif [ $1 -eq 1 ]; then
-  touch /run/rpm-%{name}-preset-all
-fi
+%systemd_preset_pre
 
 %post
-if [ $1 -gt 1 ] ; then
-        #
-        # Now that the updated presets are installed, find the ones
-        # that have been changed and apply "systemct preset" on them.
-        #
-        %{_prefix}/lib/%{generic_name}/branding-preset-states apply-changes
-fi
+%systemd_preset_post
 
 %posttrans
-if [ -f /run/rpm-%{name}-preset-all ]; then
-  # Enable all services, which were installed before systemd
-  # Don't disable services, since this would disable the
-  # complete network stack.
-  systemctl preset-all --preset-mode=enable-only
-fi
-rm -f /run/rpm-%{name}-preset-all
+%systemd_preset_posttrans
 
 %files
 %defattr(-,root,root)

Reply via email to