SHA256
1
0
forked from pool/wine-binfmt

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
This commit is contained in:
Marcus Meissner 2020-07-11 07:30:40 +00:00 committed by Git OBS Bridge
parent 917319f368
commit 4029fd1dca
3 changed files with 45 additions and 4 deletions

2
rpmlintrc Normal file
View File

@ -0,0 +1,2 @@
addFilter("suse-filelist-empty")

View File

@ -1,8 +1,16 @@
-------------------------------------------------------------------
Thu Jul 4 07:52:06 UTC 2019 - Ralf Habacker <ralf.habacker@freenet.de> - 1.1.0
Sun Jun 21 14:56:00 UTC 2020 - Ralf Habacker <ralf.habacker@freenet.de>
- 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 <ralf.habacker@freenet.de>
- 1.1.0
* add systemd service
* renamed to wine-binfmt
-------------------------------------------------------------------
Fri Feb 21 2014 ralf.habacker@freenet.de

View File

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