SHA256
1
0
forked from pool/wine-binfmt

Accepting request 1075547 from windows:mingw

- Update to version 1.2.1
  * Fix uninstalling script as mentioned at
     https://build.opensuse.org/request/show/1075518
   * Drop obsolete Buildroot: tag

OBS-URL: https://build.opensuse.org/request/show/1075547
OBS-URL: https://build.opensuse.org/package/show/Emulators:Wine/wine-binfmt?expand=0&rev=4
This commit is contained in:
Ralf Habacker 2023-03-30 11:44:08 +00:00 committed by Git OBS Bridge
parent 41bda163e1
commit 49b9346b6d
2 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Mar 30 11:32:22 UTC 2023 - Ralf Habacker <ralf.habacker@freenet.de>
- 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 <ralf.habacker@freenet.de>

View File

@ -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)