diff --git a/wine-binfmt.changes b/wine-binfmt.changes index d2495e6..c82b7db 100644 --- a/wine-binfmt.changes +++ b/wine-binfmt.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Mar 30 11:32:22 UTC 2023 - Ralf Habacker + +- Update to version 1.2.1 + * Fix uninstalling script as mentioned at + https://build.opensuse.org/request/show/1075518 + * Drop obsolete Buildroot: tag + ------------------------------------------------------------------- Thu Mar 30 09:22:15 UTC 2023 - Ralf Habacker diff --git a/wine-binfmt.spec b/wine-binfmt.spec index 3fae1f4..8a5dac8 100644 --- a/wine-binfmt.spec +++ b/wine-binfmt.spec @@ -16,7 +16,7 @@ # Name: wine-binfmt -Version: 1.2.0 +Version: 1.2.1 Release: 0 Summary: The binfmt_misc support for Windows Group: System/Emulators/PC @@ -25,7 +25,6 @@ License: GPL-2.0 Source0: wine-binfmt.conf Source1: wine-binfmt.service Source2: rpmlintrc -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkgconfig(systemd) BuildRequires: systemd-rpm-macros %{?systemd_requires} @@ -41,7 +40,7 @@ Group: System/Emulators/PC Url: http://en.wikipedia.org/wiki/Binfmt_misc License: GPL-2.0 Requires: wine-binfmt - + %description standalone Standalone variant for running Windows(tm) executables out of the box. This package does not depend on systemd and dbus, which may not be @@ -81,10 +80,13 @@ if ! test -f /proc/sys/fs/binfmt_misc/DOSWin; then cat /usr/lib/binfmt.d/wine.conf >/proc/sys/fs/binfmt_misc/register fi -%postun standalone -if test -f /proc/sys/fs/binfmt_misc/register; then - umount /proc/sys/fs/binfmt_misc +%preun standalone +if test -f /proc/sys/fs/binfmt_misc/DOSWin; then + # uninstall binfmt + echo -1 >/proc/sys/fs/binfmt_misc/DOSWin fi +# do not unmount /proc/sys/fs/binfmt_misc +# as it might by used by other packages %files %defattr(-,root,root,644)