From 4029fd1dcaf05373af190caa253a7c569b43df3a1dba3152c644e24411713e5a Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 11 Jul 2020 07:30:40 +0000 Subject: [PATCH] Accepting request 819074 from home:rhabacker:branches:windows:mingw - 1.2.0 * Add standalone package * Add rpmlintrc OBS-URL: https://build.opensuse.org/request/show/819074 OBS-URL: https://build.opensuse.org/package/show/Emulators:Wine/wine-binfmt?expand=0&rev=2 --- rpmlintrc | 2 ++ wine-binfmt.changes | 14 +++++++++++--- wine-binfmt.spec | 33 ++++++++++++++++++++++++++++++++- 3 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 rpmlintrc diff --git a/rpmlintrc b/rpmlintrc new file mode 100644 index 0000000..ff729a0 --- /dev/null +++ b/rpmlintrc @@ -0,0 +1,2 @@ +addFilter("suse-filelist-empty") + diff --git a/wine-binfmt.changes b/wine-binfmt.changes index db7a5ba..8804b2f 100644 --- a/wine-binfmt.changes +++ b/wine-binfmt.changes @@ -1,8 +1,16 @@ ------------------------------------------------------------------- -Thu Jul 4 07:52:06 UTC 2019 - Ralf Habacker - 1.1.0 +Sun Jun 21 14:56:00 UTC 2020 - Ralf Habacker -- add systemd service -- renamed to wine-binfmt +- 1.2.0 + * Add standalone package + * Add rpmlintrc + +------------------------------------------------------------------- +Thu Jul 4 07:52:06 UTC 2019 - Ralf Habacker + +- 1.1.0 + * add systemd service + * renamed to wine-binfmt ------------------------------------------------------------------- Fri Feb 21 2014 ralf.habacker@freenet.de diff --git a/wine-binfmt.spec b/wine-binfmt.spec index 9a95b25..ba6fde6 100644 --- a/wine-binfmt.spec +++ b/wine-binfmt.spec @@ -16,7 +16,7 @@ # Name: wine-binfmt -Version: 1.1.0 +Version: 1.2.0 Release: 0 Summary: The binfmt_misc support for Windows Group: System/Emulators/PC @@ -24,6 +24,7 @@ Url: http://en.wikipedia.org/wiki/Binfmt_misc License: GPL-2.0 Source0: wine-binfmt.conf Source1: wine-binfmt.service +Source2: rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: systemd BuildRequires: systemd-rpm-macros @@ -34,6 +35,18 @@ BuildArch: noarch %description Run Windows(tm) executables out of the box. +%package standalone +Summary: Standalone binfmt_misc support for Windows +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 +available on obs workers for example. + %prep %setup -cT @@ -58,10 +71,28 @@ ln -s service %{buildroot}%{_prefix}/sbin/rcwine-binfmt %postun %service_del_postun wine-binfmt.service +%post standalone +if ! test -f /proc/sys/fs/binfmt_misc/register; then + # mount binfmt device + mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc +fi +if ! test -f /proc/sys/fs/binfmt_misc/DOSWin; then + # install binfmt + 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 +fi + %files %defattr(-,root,root,644) %{_prefix}/lib/binfmt.d/wine.conf %{_prefix}/sbin/rcwine-binfmt %{_unitdir}/wine-binfmt.service +%files standalone +%defattr(-,root,root,644) + %changelog