25 |
Name: wine |
Name: wine |
26 |
Version: 1.5.10 |
Version: 1.5.10 |
27 |
%define pre 0 |
%define pre 0 |
28 |
%define rel 1 |
%define rel 2 |
29 |
%if %pre |
%if %pre |
30 |
Release: %mkrel 0.%pre.%rel |
Release: %mkrel 0.%pre.%rel |
31 |
%define o_ver %version-%pre |
%define o_ver %version-%pre |
97 |
BuildRequires: libx11-devel libxrender-devel |
BuildRequires: libx11-devel libxrender-devel |
98 |
BuildRequires: libxext-devel libsm-devel |
BuildRequires: libxext-devel libsm-devel |
99 |
BuildRequires: fontforge fontconfig-devel freetype2-devel |
BuildRequires: fontforge fontconfig-devel freetype2-devel |
100 |
|
%if %mgaversion >= 3 |
101 |
|
BuildRequires: osmesa-devel |
102 |
|
BuildRequires: opencl-devel |
103 |
|
%endif |
104 |
|
|
105 |
%define desc Wine is a program which allows running Microsoft Windows programs \ |
%define desc Wine is a program which allows running Microsoft Windows programs \ |
106 |
(including DOS, Windows 3.x and Win32 executables) on Unix. It \ |
(including DOS, Windows 3.x and Win32 executables) on Unix. It \ |
126 |
Provides: wine-bin = %{epoch}:%{version}-%{release} |
Provides: wine-bin = %{epoch}:%{version}-%{release} |
127 |
Obsoletes: %{wine}-utils %{wine}-full %{lib_name}-capi %{lib_name}-twain |
Obsoletes: %{wine}-utils %{wine}-full %{lib_name}-capi %{lib_name}-twain |
128 |
Obsoletes: %{lib_name} <= %{epoch}:%{version}-%{release} |
Obsoletes: %{lib_name} <= %{epoch}:%{version}-%{release} |
|
Requires: xmessage |
|
129 |
Suggests: sane-frontends |
Suggests: sane-frontends |
130 |
|
%define dlopenreq() %([ -e %{_libdir}/lib%{1}.so ] && objdump -p %{_libdir}/lib%{1}.so | grep SONAME | awk '{ print $2 "%{mark64}" }' || echo %{name}) |
131 |
# wine dlopen's these, so let's add the dependencies ourself |
# wine dlopen's these, so let's add the dependencies ourself |
132 |
Requires: libfreetype.so.6%{mark64} libasound.so.2%{mark64} |
# Adding these here is especially important with wine, since wine32 is |
133 |
# wine needs to dlopen libfontconfig to make CJK fonts show correctly in winecfg |
# commonly one of the few 32-bit components on a 64-bit installation, so |
134 |
Requires: libfontconfig.so.1%{mark64} |
# these packages might not necessarily be pulled by anything else. |
135 |
Requires: libncurses.so.5%{mark64} |
# grep WINE_CHECK_SONAME configure.ac :) (though note that some of those |
136 |
Requires: libXrender.so.1%{mark64} libpng15.so.15%{mark64} |
# results are in autoreq already) - (Anssi 08/2012) |
137 |
|
Requires: %dlopenreq freetype |
138 |
|
Requires: %dlopenreq asound |
139 |
|
Requires: %dlopenreq fontconfig |
140 |
|
Requires: %dlopenreq ncurses |
141 |
|
Requires: %dlopenreq Xrender |
142 |
|
Requires: %dlopenreq png |
143 |
|
Requires: %dlopenreq Xcursor |
144 |
|
Requires: %dlopenreq Xi |
145 |
|
Requires: %dlopenreq Xxf86vm |
146 |
|
Requires: %dlopenreq Xrandr |
147 |
|
Requires: %dlopenreq Xinerama |
148 |
|
Requires: %dlopenreq Xcomposite |
149 |
|
Requires: %dlopenreq xslt |
150 |
|
Requires: %dlopenreq dbus-1 |
151 |
|
Requires: %dlopenreq gnutls |
152 |
|
Requires: %dlopenreq sane |
153 |
|
Requires: %dlopenreq v4l1 |
154 |
|
Requires: %dlopenreq cups |
155 |
|
Requires: %dlopenreq ssl |
156 |
|
Requires: %dlopenreq crypto |
157 |
|
Requires: %dlopenreq gsm |
158 |
|
Requires: %dlopenreq jpeg |
159 |
|
Requires: %dlopenreq tiff |
160 |
|
Requires: %dlopenreq odbc |
161 |
|
%if %mgaversion >= 3 |
162 |
|
Requires: %dlopenreq OSMesa |
163 |
|
%endif |
164 |
|
#Requires: %dlopenreq capi20 # ISDN support - unlikely to be needed |
165 |
# (Anssi) If not installed, wine pops up a dialog on first start proposing to |
# (Anssi) If not installed, wine pops up a dialog on first start proposing to |
166 |
# download pre-built binaries (unlike wine-gecko, same wine-mono works with |
# download pre-built binaries (unlike wine-gecko, same wine-mono works with |
167 |
# both wine and wine64): |
# both wine and wine64): |
244 |
[ "$MONO_VERSION" = "%mono_version" ] || { echo wine-mono version mismatch; exit 1; } |
[ "$MONO_VERSION" = "%mono_version" ] || { echo wine-mono version mismatch; exit 1; } |
245 |
|
|
246 |
%build |
%build |
|
%ifarch %ix86 |
|
|
# (Anssi 04/2008) bug #39604 |
|
|
# Some protection systems complain "debugger detected" with our |
|
|
# -fomit-frame-pointer flag, so disable it. |
|
|
export CFLAGS="%{optflags} -fno-omit-frame-pointer" |
|
|
%endif |
|
|
|
|
247 |
autoreconf |
autoreconf |
248 |
%configure2_5x --with-x \ |
%configure2_5x --with-x \ |
249 |
--with-pulse \ |
--with-pulse \ |