mirror of
https://abf.rosa.ru/djam/wine.git
synced 2025-02-23 22:32:47 +00:00
Disable binfmt
This commit is contained in:
parent
d243205904
commit
e00da43fb5
1 changed files with 11 additions and 10 deletions
21
wine.spec
21
wine.spec
|
@ -32,10 +32,10 @@ Url: http://www.winehq.com/
|
|||
Source0: http://mirrors.ibiblio.org/wine/source/%(echo %{version} |cut -d. -f1-2)/%{name}-%{version}.tar.xz
|
||||
Source1: http://mirrors.ibiblio.org/wine/source/%(echo %{version} |cut -d. -f1-2)/%{name}-%{version}.tar.xz.sign
|
||||
# Old RH stuff for %%{mdvver} <= 201410
|
||||
Source2: wine.init
|
||||
#Source2: wine.init
|
||||
# New solution for %%{mdvver} >= 201610
|
||||
# See: https://wiki.archlinux.org/index.php/wine (Using Wine as an interpreter for Win16/Win32 binaries)
|
||||
Source3: wine.systemd
|
||||
#Source3: wine.systemd
|
||||
# Wine-Compholio, from github by tag
|
||||
# https://github.com/compholio/wine-compholio/archive/v%%{version}.tar.gz
|
||||
Source4: wine-staging-%{version}.tar.gz
|
||||
|
@ -329,14 +329,15 @@ autoreconf -vfi
|
|||
install -m 0755 %{SOURCE11} %{buildroot}%{_bindir}/
|
||||
install -m 0755 %{SOURCE12} %{buildroot}%{_bindir}/
|
||||
|
||||
# Allow users to launch Windows programs by just clicking on the .exe file...
|
||||
%if %{with_systemd}
|
||||
# ... using systemd (>= 230)
|
||||
install -m 644 %{SOURCE3} -D %{buildroot}%{_binfmtdir}/%{name}.conf
|
||||
%else
|
||||
# ... using the old sysvinit way
|
||||
install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/%{name}
|
||||
%endif
|
||||
# Disabled binfmt, becuase its insecure, see https://nixtux.ru/450
|
||||
## Allow users to launch Windows programs by just clicking on the .exe file...
|
||||
#%if %{with_systemd}
|
||||
## ... using systemd (>= 230)
|
||||
#install -m 644 %{SOURCE3} -D %{buildroot}%{_binfmtdir}/%{name}.conf
|
||||
#%else
|
||||
## ... using the old sysvinit way
|
||||
#install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/%{name}
|
||||
#%endif
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged
|
||||
cat > %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged/mandriva-%{name}.menu <<EOF
|
||||
|
|
Loading…
Add table
Reference in a new issue