Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package systemd-presets-branding-MicroOS for
openSUSE:Factory checked in at 2026-01-08 15:25:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/systemd-presets-branding-MicroOS (Old)
and /work/SRC/openSUSE:Factory/.systemd-presets-branding-MicroOS.new.1928
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "systemd-presets-branding-MicroOS"
Thu Jan 8 15:25:34 2026 rev:14 rq:1325784 version:20230214
Changes:
--------
---
/work/SRC/openSUSE:Factory/systemd-presets-branding-MicroOS/systemd-presets-branding-MicroOS.changes
2025-12-12 21:40:59.096347266 +0100
+++
/work/SRC/openSUSE:Factory/.systemd-presets-branding-MicroOS.new.1928/systemd-presets-branding-MicroOS.changes
2026-01-08 15:26:02.473601361 +0100
@@ -1,0 +2,7 @@
+Tue Dec 30 14:48:35 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-MicroOS.spec ++++++
--- /var/tmp/diff_new_pack.nvJhTE/_old 2026-01-08 15:26:02.961621573 +0100
+++ /var/tmp/diff_new_pack.nvJhTE/_new 2026-01-08 15:26:02.961621573 +0100
@@ -27,23 +27,23 @@
Source0: 50-default-MicroOS.preset
Source1: 50-default-MicroOS-user.preset
BuildRequires: systemd-presets-branding-openSUSE
+BuildRequires: systemd-presets-common-SUSE-devel
BuildRequires: pkgconfig(systemd)
#!BuildIgnore: systemd-presets-branding
-Requires: systemd-presets-common-SUSE
-PreReq: coreutils
+Requires(pre): coreutils
# systemd-presets-common-SUSE provides
-Requires(pre): systemd-presets-common-SUSE
-Supplements: packageand(systemd:branding-MicroOS)
+Supplements: (systemd and branding-MicroOS)
Conflicts: systemd-presets-branding
Provides: systemd-presets-branding = %{version}
Obsoletes: systemd-presets-branding-CAASP < 15.1
BuildArch: noarch
+%{?systemd_preset_requires}
%description
Default presets for systemd on openSUSE MicroOS
%prep
-%setup -q -T -c
+%autosetup -T -c
%build
@@ -57,40 +57,16 @@
install -m644 %{_prefix}/lib/systemd/system-preset/90-default-openSUSE.preset
%{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
- %{_prefix}/lib/%{generic_name}/branding-preset-states save user
-elif [ $1 -eq 1 ]; then
- touch /run/rpm-%{name}-preset-all
-fi
+%systemd_preset_pre
+%systemd_user_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
- %{_prefix}/lib/%{generic_name}/branding-preset-states apply-changes
user
-fi
+%systemd_preset_post
+%systemd_user_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
- systemctl preset-all --preset-mode=enable-only --global
-fi
-rm -f /run/rpm-%{name}-preset-all
+%systemd_preset_posttrans
+%systemd_user_preset_posttrans
%files
%defattr(-,root,root)