[wine] Meta package fixes for EPEL7 (rhbz#1117422)

mooninite mooninite at fedoraproject.org
Sat Jul 12 02:28:14 UTC 2014


commit 4d1df4f7afec38186d4c1e05f16ac2f9fdf63e8e
Author: Michael Cronenworth <mike at cchtml.com>
Date:   Thu Jul 10 00:43:28 2014 -0500

    Meta package fixes for EPEL7 (rhbz#1117422)

 wine.spec |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/wine.spec b/wine.spec
index f24c142..b0d1029 100644
--- a/wine.spec
+++ b/wine.spec
@@ -5,7 +5,7 @@
 
 Name:           wine
 Version:        1.7.21
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A compatibility layer for windows applications
 
 Group:          Applications/Emulators
@@ -136,13 +136,14 @@ Requires:       wine-fonts = %{version}-%{release}
 
 # x86-32 parts
 %ifarch %{ix86} x86_64
+%if 0%{?fedora} || 0%{?rhel} <= 6
 Requires:       wine-core(x86-32) = %{version}-%{release}
 Requires:       wine-capi(x86-32) = %{version}-%{release}
 Requires:       wine-cms(x86-32) = %{version}-%{release}
 Requires:       wine-ldap(x86-32) = %{version}-%{release}
 Requires:       wine-twain(x86-32) = %{version}-%{release}
 Requires:       wine-pulseaudio(x86-32) = %{version}-%{release}
-%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6
+%if 0%{?fedora} >= 10 || 0%{?rhel} == 6
 Requires:       wine-openal(x86-32) = %{version}-%{release}
 %endif
 %if 0%{?fedora} >= 17
@@ -153,9 +154,10 @@ Requires:       wine-mono = %winemono
 Requires:       /usr/bin/ntlm_auth
 Requires:       mesa-dri-drivers(x86-32)
 %endif
+%endif
 
 %ifarch %{ix86}
-%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6
+%if 0%{?fedora} >= 10 || 0%{?rhel} == 6
 Requires:       wine-wow(x86-32) = %{version}-%{release}
 %endif
 %endif
@@ -334,8 +336,12 @@ Requires(postun): desktop-file-utils >= 0.8
 %ifarch %{arm}
 Requires:       wine-core = %{version}-%{release}
 %else
+%if 0%{?rhel} >= 7
+Requires:       wine-core(x86-64) = %{version}-%{release}
+%else
 Requires:       wine-core(x86-32) = %{version}-%{release}
 %endif
+%endif
 Requires:       wine-common = %{version}-%{release}
 %if 0%{?fedora} >= 15
 Requires:       wine-systemd = %{version}-%{release}
@@ -584,6 +590,11 @@ chrpath --delete %{buildroot}%{_bindir}/wine64
 chrpath --delete %{buildroot}%{_bindir}/wine
 %endif
 
+# RHEL7 dropped 32-bit support, provide symlink for wine apps
+%if 0%{?rhel} >= 7
+%{__ln_s} %{_bindir}/wine64 %{buildroot}%{_bindir}/wine
+%endif
+
 mkdir -p %{buildroot}%{_sysconfdir}/wine
 
 # Allow users to launch Windows programs by just clicking on the .exe file...
@@ -903,6 +914,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %endif
 
 %ifarch x86_64
+%if 0%{?rhel} >= 7
+%{_bindir}/wine
+%endif
 %{_bindir}/wine64
 %{_bindir}/wine64-preloader
 %config %{_sysconfdir}/ld.so.conf.d/wine-64.conf
@@ -1617,6 +1631,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %endif
 
 %changelog
+* Wed Jul 09 2014 Michael Cronenworth <mike at cchtml.com>
+- 1.7.18-2
+- Fixes for EPEL7 (rhbz#1117422)
+
 * Tue Jul 01 2014 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
 - 1.7.21-1
 - version upgrade


More information about the scm-commits mailing list