Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package systemd-presets-branding-openSUSE 
for openSUSE:Factory checked in at 2026-01-08 15:25:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/systemd-presets-branding-openSUSE (Old)
 and      
/work/SRC/openSUSE:Factory/.systemd-presets-branding-openSUSE.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "systemd-presets-branding-openSUSE"

Thu Jan  8 15:25:35 2026 rev:73 rq:1325786 version:12.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/systemd-presets-branding-openSUSE/systemd-presets-branding-openSUSE.changes
      2025-12-12 21:41:00.184393124 +0100
+++ 
/work/SRC/openSUSE:Factory/.systemd-presets-branding-openSUSE.new.1928/systemd-presets-branding-openSUSE.changes
    2026-01-08 15:26:03.445641618 +0100
@@ -1,0 +2,7 @@
+Tue Dec 30 14:36:51 UTC 2025 - Callum Farmer <[email protected]>
+
+- Modernize specfile
+- Update Supplements to new RPM format
+- Use RPM macros provided by systemd-presets-common-SUSE-devel
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ systemd-presets-branding-openSUSE.spec ++++++
--- /var/tmp/diff_new_pack.ThzL9Z/_old  2026-01-08 15:26:03.949662491 +0100
+++ /var/tmp/diff_new_pack.ThzL9Z/_new  2026-01-08 15:26:03.949662491 +0100
@@ -28,17 +28,15 @@
 # FIXME: why systemd is required ?
 BuildRequires:  pkgconfig(systemd)
 #!BuildIgnore:  systemd-presets-branding
-PreReq:         coreutils
-BuildRequires:  systemd-presets-common-SUSE
-Requires(pre):  systemd-presets-common-SUSE
+Requires(pre):  coreutils
+BuildRequires:  systemd-presets-common-SUSE-devel
 Provides:       %{generic_name} = %{version}
-Supplements:    packageand(systemd:branding-openSUSE)
-Conflicts:      otherproviders(%{generic_name})
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Supplements:    (systemd and branding-openSUSE)
+Conflicts:      %{generic_name}
 BuildArch:      noarch
-
 Requires(pre):  bash
 Requires(post): bash
+%{?systemd_preset_requires}
 
 %description
 Default presets for systemd on openSUSE distribution.
@@ -48,7 +46,7 @@
 found in systemd-presets-common-SUSE.
 
 %prep
-%setup -q -T -c
+%autosetup -T -c
 
 %build
 
@@ -60,37 +58,13 @@
 install -m644 %{SOURCE1}  
%{buildroot}%{_prefix}/lib/systemd/system-preset/90-default-openSUSE.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