2012-02-01 14:32:14 +04:00
|
|
|
%ifarch x86_64
|
2012-05-02 16:06:50 +04:00
|
|
|
%define wine wine64
|
2012-02-01 14:32:14 +04:00
|
|
|
%define mark64 ()(64bit)
|
|
|
|
%else
|
2012-05-02 16:06:50 +04:00
|
|
|
%define wine wine
|
2012-02-01 14:32:14 +04:00
|
|
|
%define mark64 %{nil}
|
|
|
|
%endif
|
2013-12-24 21:29:00 +04:00
|
|
|
%define major 1
|
2012-02-01 14:32:14 +04:00
|
|
|
%define lib_name_orig lib%{name}
|
2013-12-24 21:29:00 +04:00
|
|
|
%define libname %mklibname %{name} %{major}
|
|
|
|
%define devname %{mklibname -d wine}
|
|
|
|
%define beta %nil
|
2012-02-01 14:32:14 +04:00
|
|
|
|
|
|
|
# On 32-bit we have
|
|
|
|
# wine32 - those 32-bit binaries that are also used on 64-bit for 32-bit support
|
|
|
|
# wine - all other files (requires 'wine32')
|
|
|
|
# On 64-bit we have
|
|
|
|
# wine64 - all 64-bit files (suggests 'wine32')
|
|
|
|
# - Anssi 07/2010
|
|
|
|
|
2012-05-02 15:24:25 +04:00
|
|
|
Name: wine
|
2012-05-03 17:46:34 +04:00
|
|
|
#(peroyvind): please do backports for new versions
|
2014-01-12 19:15:05 +04:00
|
|
|
Version: 1.7.10
|
2013-12-24 21:29:00 +04:00
|
|
|
%if "%beta" != ""
|
|
|
|
Release: 0.%beta.1
|
|
|
|
Source0: http://mirrors.ibiblio.org/wine/source/%(echo %version |cut -d. -f1-2)/%{name}-%{version}-%beta.tar.bz2
|
|
|
|
Source1: http://mirrors.ibiblio.org/wine/source/%(echo %version |cut -d. -f1-2)/%{name}-%{version}-%beta.tar.bz2.sign
|
|
|
|
%else
|
2014-01-13 10:50:04 +04:00
|
|
|
Release: 2
|
2013-12-24 21:29:00 +04:00
|
|
|
Source0: http://mirrors.ibiblio.org/wine/source/%(echo %version |cut -d. -f1-2)/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: http://mirrors.ibiblio.org/wine/source/%(echo %version |cut -d. -f1-2)/%{name}-%{version}.tar.bz2.sign
|
|
|
|
%endif
|
2012-09-14 16:05:47 +04:00
|
|
|
Epoch: 2
|
2012-02-01 14:32:14 +04:00
|
|
|
Summary: WINE Is Not An Emulator - runs MS Windows programs
|
|
|
|
License: LGPLv2+
|
|
|
|
Group: Emulators
|
|
|
|
URL: http://www.winehq.com/
|
|
|
|
|
|
|
|
# RH stuff
|
2012-09-14 15:31:11 +04:00
|
|
|
Source2: wine.init
|
|
|
|
Source10: wine.rpmlintrc
|
2014-01-13 10:50:04 +04:00
|
|
|
Source11: http://kegel.com/wine/winetricks
|
|
|
|
Source12: http://kegel.com/wine/wisotool
|
|
|
|
|
2012-02-01 14:32:14 +04:00
|
|
|
Patch0: wine-1.0-rc3-fix-conflicts-with-openssl.patch
|
|
|
|
# (Anssi 05/2008) Adds:
|
|
|
|
# a: => /media/floppy (/mnt/floppy on 2007.1 and older)
|
|
|
|
# d: => $HOME (at config_dir creation time, not refreshed if $HOME changes;
|
|
|
|
# note that Wine also provides $HOME in My Documents)
|
2012-05-03 17:46:34 +04:00
|
|
|
# only on 2008.0: e: => /media/cdrom (does not exist on 2008.1+)
|
2012-02-01 14:32:14 +04:00
|
|
|
# com4 => /dev/ttyUSB0 (replaces /dev/ttyS3)
|
2012-05-03 17:46:34 +04:00
|
|
|
# have to substitute @MDKVERSION@ in dlls/ntdll/server.c
|
2012-02-01 14:32:14 +04:00
|
|
|
Patch108: wine-mdkconf.patch
|
2012-09-14 15:31:11 +04:00
|
|
|
Patch200: wine-1.3.24-64bit-tools.patch
|
2012-05-03 17:46:34 +04:00
|
|
|
|
2013-12-24 21:29:00 +04:00
|
|
|
### pipelight patches
|
|
|
|
Patch1001: 0001-ws2_32-Ask-the-server-to-process-unsupported-WSAIoct.patch
|
|
|
|
Patch1002: 0002-server-Implement-an-interface-change-notification-ob.patch
|
|
|
|
Patch1003: 0003-ws2_32-Add-an-interactive-test-for-interface-change-.patch
|
|
|
|
Patch1004: 0004-server-Store-and-return-security-attributes-with-ext.patch
|
|
|
|
Patch1005: 0005-ntdll-Inherit-security-attributes-from-parent-direct.patch
|
|
|
|
Patch1006: 0006-kernel32-Allow-string-comparison-with-linguistic-cas.patch
|
|
|
|
Patch1007: 0007-winex11-Update-gl_drawable-for-embedded-windows.patch
|
|
|
|
Patch1008: 0008-winex11-Enable-disable-windows-when-they-are-un-mapped.patch
|
|
|
|
Patch1009: 0009-kernel32-Change-return-value-of-stub-SetNamedPipeHandl.patch
|
|
|
|
Patch1010: 0010-quartz-tests-Add-tests-for-IVMRMonitorConfig-and-IVMRM.patch
|
|
|
|
Patch1011: 0011-quartz-Workaround-Silverlight-problems-when-multiple-m.patch
|
2012-05-03 17:46:34 +04:00
|
|
|
|
2012-02-01 14:32:14 +04:00
|
|
|
# (anssi) Wine needs GCC 4.4+ on x86_64 for MS ABI support. Note also that
|
|
|
|
# 64-bit wine cannot run 32-bit programs without wine32.
|
2012-05-03 17:46:34 +04:00
|
|
|
ExclusiveArch: %{ix86}
|
|
|
|
ExclusiveArch: x86_64
|
2012-02-01 14:32:14 +04:00
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: gcc >= 4.4
|
|
|
|
%endif
|
2012-05-03 17:46:34 +04:00
|
|
|
|
2012-09-14 15:31:11 +04:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gpm-devel
|
|
|
|
BuildRequires: perl-devel
|
2013-12-24 21:29:00 +04:00
|
|
|
BuildRequires: pkgconfig(ncursesw)
|
2012-09-14 15:31:11 +04:00
|
|
|
BuildRequires: cups-devel
|
2013-12-24 21:29:00 +04:00
|
|
|
BuildRequires: pkgconfig(sane-backends)
|
|
|
|
BuildRequires: pkgconfig(lcms)
|
2012-09-14 15:31:11 +04:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: docbook-utils
|
|
|
|
BuildRequires: docbook-dtd-sgml
|
|
|
|
BuildRequires: docbook-utils
|
|
|
|
BuildRequires: docbook-dtd-sgml
|
|
|
|
BuildRequires: sgml-tools
|
2013-12-24 21:29:00 +04:00
|
|
|
BuildRequires: pkgconfig(jack)
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
BuildRequires: pkgconfig(libmpg123)
|
|
|
|
BuildRequires: pkgconfig(openal)
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-0.10)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
|
2012-09-14 15:31:11 +04:00
|
|
|
BuildRequires: isdn4k-utils-devel
|
|
|
|
BuildRequires: glibc-static-devel
|
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: ungif-devel
|
2013-12-24 21:29:00 +04:00
|
|
|
BuildRequires: pkgconfig(xpm)
|
|
|
|
BuildRequires: pkgconfig(libtiff-4)
|
|
|
|
BuildRequires: pkgconfig(librsvg-2.0)
|
2012-09-14 15:31:11 +04:00
|
|
|
BuildRequires: imagemagick
|
2013-12-24 21:29:00 +04:00
|
|
|
BuildRequires: pkgconfig(libgphoto2)
|
2012-09-14 15:31:11 +04:00
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: openldap-devel
|
2013-12-24 21:29:00 +04:00
|
|
|
BuildRequires: pkgconfig(libxslt)
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2012-09-14 15:31:11 +04:00
|
|
|
BuildRequires: valgrind
|
2012-05-03 11:07:09 +04:00
|
|
|
BuildRequires: gsm-devel
|
2012-09-14 15:31:11 +04:00
|
|
|
BuildRequires: unixODBC-devel
|
2013-12-24 21:29:00 +04:00
|
|
|
BuildRequires: pkgconfig(gnutls)
|
2012-09-14 15:31:11 +04:00
|
|
|
BuildRequires: gettext-devel
|
2013-12-24 21:29:00 +04:00
|
|
|
BuildRequires: pkgconfig(glu)
|
|
|
|
BuildRequires: pkgconfig(libv4l2)
|
|
|
|
BuildRequires: pkgconfig(xcursor)
|
|
|
|
BuildRequires: pkgconfig(xcomposite)
|
|
|
|
BuildRequires: pkgconfig(xinerama)
|
|
|
|
BuildRequires: pkgconfig(xrandr)
|
2013-08-08 12:50:07 +04:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2013-12-24 21:29:00 +04:00
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(sm)
|
2012-05-03 17:46:34 +04:00
|
|
|
BuildRequires: fontforge
|
2013-12-24 21:29:00 +04:00
|
|
|
BuildRequires: pkgconfig(fontconfig)
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
2012-02-01 14:32:14 +04:00
|
|
|
BuildRequires: prelink
|
|
|
|
|
|
|
|
%define desc Wine is a program which allows running Microsoft Windows programs \
|
|
|
|
(including DOS, Windows 3.x and Win32 executables) on Unix. It \
|
|
|
|
consists of a program loader which loads and executes a Microsoft \
|
|
|
|
Windows binary, and a library (called Winelib) that implements Windows \
|
|
|
|
API calls using their Unix or X11 equivalents. The library may also \
|
|
|
|
be used for porting Win32 code into native Unix executables.
|
|
|
|
|
|
|
|
%ifarch x86_64
|
2013-12-24 21:29:00 +04:00
|
|
|
%package -n %{wine}
|
2012-02-01 14:32:14 +04:00
|
|
|
Summary: WINE Is Not An Emulator - runs MS Windows programs
|
|
|
|
Group: Emulators
|
2012-09-14 15:31:11 +04:00
|
|
|
Suggests: wine32 = %{EVRD}
|
2012-05-03 17:46:34 +04:00
|
|
|
Suggests: wine64-gecko
|
2012-09-14 15:31:11 +04:00
|
|
|
Suggests: libncursesw.so.5%{mark64}
|
|
|
|
Suggests: libncurses.so.5%{mark64}
|
2012-02-01 14:32:14 +04:00
|
|
|
%else
|
|
|
|
# on 32-bit we always want wine32 package
|
2012-09-14 15:31:11 +04:00
|
|
|
Requires: wine32 = %{EVRD}
|
2012-02-01 14:32:14 +04:00
|
|
|
%endif
|
|
|
|
|
2013-12-24 21:29:00 +04:00
|
|
|
%rename %{wine}-utils
|
|
|
|
%rename %{wine}-full
|
|
|
|
%rename %{libname}-capi
|
|
|
|
%rename %{libname}-twain
|
|
|
|
%rename %{libname}
|
2012-09-14 15:31:11 +04:00
|
|
|
Provides: wine-bin = %{EVRD}
|
2012-02-01 14:32:14 +04:00
|
|
|
Requires: xmessage
|
|
|
|
Suggests: sane-frontends
|
|
|
|
# wine dlopen's these, so let's add the dependencies ourself
|
2012-09-14 15:31:11 +04:00
|
|
|
Requires: libfreetype.so.6%{mark64}
|
|
|
|
Requires: libasound.so.2%{mark64}
|
|
|
|
Requires: libXrender.so.1%{mark64}
|
|
|
|
Requires: libpng15.so.15%{mark64}
|
|
|
|
Requires(post): desktop-file-utils
|
|
|
|
Requires(postun): desktop-file-utils
|
|
|
|
Requires(post): desktop-common-data
|
|
|
|
Requires(postun): desktop-common-data
|
|
|
|
Requires(preun): rpm-helper
|
2012-02-01 14:32:14 +04:00
|
|
|
Requires(post): rpm-helper
|
2014-01-13 10:50:04 +04:00
|
|
|
|
|
|
|
# for winetricks:
|
|
|
|
Requires: cabextract
|
|
|
|
Requires: unzip
|
|
|
|
|
2014-01-13 11:47:27 +04:00
|
|
|
Suggests: webcore-fonts
|
2014-01-13 10:50:04 +04:00
|
|
|
|
2012-05-03 17:46:34 +04:00
|
|
|
Conflicts: %{wine} < 1:0.9-3mdk
|
2012-02-01 14:32:14 +04:00
|
|
|
%ifarch %{ix86}
|
|
|
|
Conflicts: wine64
|
|
|
|
%else
|
|
|
|
Conflicts: wine
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
%desc
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
%description -n %{wine}
|
|
|
|
%desc
|
|
|
|
|
|
|
|
This package contains the Win64 version of Wine. You need the wine32
|
|
|
|
package from the 32-bit repository to be able to run 32-bit applications.
|
|
|
|
%endif
|
|
|
|
|
2012-09-14 15:31:11 +04:00
|
|
|
%ifarch %{ix86}
|
2013-12-24 21:29:00 +04:00
|
|
|
%package -n wine32
|
2012-02-01 14:32:14 +04:00
|
|
|
Summary: 32-bit support for Wine
|
|
|
|
Group: Emulators
|
|
|
|
# This is not an EVR-specific requirement, as otherwise on x86_64 urpmi could
|
|
|
|
# resolve the dependency to wine64 even on upgrades, and therefore replace
|
|
|
|
# wine+wine32 installation with a wine32+wine64 installation. - Anssi
|
|
|
|
Requires: wine-bin
|
|
|
|
Conflicts: wine < 1:1.2-0.rc7.1
|
|
|
|
Conflicts: wine64 < 1:1.2-0.rc7.1
|
|
|
|
# (Anssi) If wine-gecko is not installed, wine pops up a dialog on first
|
|
|
|
# start proposing to download wine-gecko from sourceforge, while recommending
|
|
|
|
# to use distribution packages instead. Therefore suggest wine-gecko here:
|
2012-05-03 17:46:34 +04:00
|
|
|
Suggests: wine-gecko
|
2012-09-14 15:31:11 +04:00
|
|
|
Suggests: libncursesw.so.5
|
|
|
|
Suggests: libncurses.so.5
|
2012-02-01 14:32:14 +04:00
|
|
|
|
|
|
|
%description -n wine32
|
|
|
|
Wine is a program which allows running Microsoft Windows programs
|
|
|
|
(including DOS, Windows 3.x and Win32 executables) on Unix.
|
|
|
|
|
|
|
|
This package contains the files needed to support 32-bit Windows
|
|
|
|
programs.
|
|
|
|
%endif
|
|
|
|
|
2013-12-24 21:29:00 +04:00
|
|
|
%package -n %{wine}-devel
|
2012-02-01 14:32:14 +04:00
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Group: Development/C
|
2012-09-14 15:31:11 +04:00
|
|
|
Requires: %{wine} = %{EVRD}
|
2013-12-24 21:29:00 +04:00
|
|
|
%rename %{devname}
|
2012-09-14 15:31:11 +04:00
|
|
|
Provides: %{lib_name_orig}-devel = %{EVRD}
|
|
|
|
Obsoletes: %{mklibname -d wine 1} < %{EVRD}
|
2012-02-01 14:32:14 +04:00
|
|
|
%ifarch %{ix86}
|
|
|
|
Conflicts: wine64-devel
|
|
|
|
%else
|
|
|
|
Conflicts: wine-devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description -n %{wine}-devel
|
|
|
|
Wine is a program which allows running Microsoft Windows programs
|
|
|
|
(including DOS, Windows 3.x and Win32 executables) on Unix.
|
|
|
|
|
|
|
|
%{wine}-devel contains the libraries and header files needed to
|
|
|
|
develop programs which make use of wine.
|
|
|
|
|
|
|
|
Wine is often updated.
|
|
|
|
|
|
|
|
%prep
|
2013-12-24 21:29:00 +04:00
|
|
|
%if "%beta" != ""
|
|
|
|
%setup -q -n %name-%version-%beta
|
|
|
|
%else
|
|
|
|
%setup -q
|
|
|
|
%endif
|
2012-02-01 14:32:14 +04:00
|
|
|
%patch108 -p1 -b .conf
|
2012-09-14 15:31:11 +04:00
|
|
|
%patch200 -p1
|
2012-05-03 11:49:15 +04:00
|
|
|
sed -i 's,@MDKVERSION@,%{mdkversion},' dlls/ntdll/server.c
|
2012-05-03 11:07:09 +04:00
|
|
|
|
2013-12-24 21:29:00 +04:00
|
|
|
### Netflix patches
|
|
|
|
|
|
|
|
%patch1001 -p1
|
|
|
|
%patch1002 -p1
|
|
|
|
%patch1003 -p1
|
|
|
|
%patch1004 -p1
|
|
|
|
%patch1005 -p1
|
|
|
|
%patch1006 -p1
|
|
|
|
%patch1007 -p1
|
|
|
|
%patch1008 -p1
|
|
|
|
%patch1009 -p1
|
|
|
|
%patch1010 -p1
|
|
|
|
%patch1011 -p1
|
|
|
|
|
2012-02-01 14:32:14 +04:00
|
|
|
%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
|
|
|
|
|
|
|
|
# (Anssi 04/2008)
|
|
|
|
# If icotool is present, it is used to rebuild icon files. It is in contrib
|
|
|
|
# so we do not do that; this is here to ensure that installed icoutils does
|
|
|
|
# not change build behaviour.
|
|
|
|
export ICOTOOL=false
|
|
|
|
|
|
|
|
autoreconf
|
2013-12-24 21:29:00 +04:00
|
|
|
%configure2_5x --with-pulse \
|
2012-05-03 11:49:15 +04:00
|
|
|
--without-nas \
|
2012-02-01 14:32:14 +04:00
|
|
|
%ifarch x86_64
|
|
|
|
--enable-win64
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%make depend
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
2012-09-14 15:31:11 +04:00
|
|
|
%makeinstall_std LDCONFIG=/bin/true
|
2012-02-01 14:32:14 +04:00
|
|
|
|
2014-01-13 10:50:04 +04:00
|
|
|
install -m 0755 %{SOURCE11} %{buildroot}%{_bindir}/
|
|
|
|
install -m 0755 %{SOURCE12} %{buildroot}%{_bindir}/
|
|
|
|
|
2012-02-01 14:32:14 +04:00
|
|
|
# Danny: dirty:
|
2012-09-14 15:31:11 +04:00
|
|
|
# install -m755 tools/fnt2bdf -D %{buildroot}%{_bindir}/fnt2bdf
|
2012-02-01 14:32:14 +04:00
|
|
|
|
|
|
|
# Allow users to launch Windows programs by just clicking on the .exe file...
|
|
|
|
install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/%{name}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged
|
2012-05-03 11:49:15 +04:00
|
|
|
cat > %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged/mandriva-%{name}.menu <<EOF
|
2012-02-01 14:32:14 +04:00
|
|
|
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
|
|
|
|
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
|
|
|
|
<Menu>
|
|
|
|
<Name>Applications</Name>
|
|
|
|
<Menu>
|
|
|
|
<Name>Tools</Name>
|
|
|
|
<Menu>
|
|
|
|
<Name>Emulators</Name>
|
|
|
|
<Menu>
|
|
|
|
<Name>Wine</Name>
|
2012-05-03 11:49:15 +04:00
|
|
|
<Directory>mandriva-%{name}.directory</Directory>
|
2012-02-01 14:32:14 +04:00
|
|
|
<Include>
|
|
|
|
<Category>X-MandrivaLinux-MoreApplications-Emulators-Wine</Category>
|
|
|
|
</Include>
|
|
|
|
</Menu>
|
|
|
|
</Menu>
|
|
|
|
</Menu>
|
|
|
|
</Menu>
|
|
|
|
EOF
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/desktop-directories
|
2012-05-03 11:49:15 +04:00
|
|
|
cat > %{buildroot}%{_datadir}/desktop-directories/mandriva-%{name}.directory <<EOF
|
2012-02-01 14:32:14 +04:00
|
|
|
[Desktop Entry]
|
|
|
|
Name=Wine
|
|
|
|
Icon=%{name}
|
|
|
|
Type=Directory
|
|
|
|
EOF
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications/
|
|
|
|
for i in winecfg:Configurator \
|
|
|
|
notepad:Notepad \
|
|
|
|
winefile:File\ Manager \
|
|
|
|
regedit:Registry\ Editor \
|
|
|
|
winemine:Minesweeper \
|
|
|
|
wineboot:Reboot \
|
|
|
|
"wineconsole cmd":Command\ Line \
|
|
|
|
"wine uninstaller:Wine Software Uninstaller";
|
2012-05-03 11:49:15 +04:00
|
|
|
do cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-`echo $i|cut -d: -f1`.desktop << EOF
|
2012-02-01 14:32:14 +04:00
|
|
|
[Desktop Entry]
|
|
|
|
Name=`echo $i|cut -d: -f2`
|
|
|
|
Comment=`echo $i|cut -d: -f2`
|
|
|
|
Exec=`echo $i|cut -d: -f1`
|
|
|
|
Icon=%{name}
|
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
|
|
|
Categories=X-MandrivaLinux-MoreApplications-Emulators-Wine;
|
|
|
|
EOF
|
|
|
|
done
|
|
|
|
|
|
|
|
# Categories=Emulator does nothing and is added as a workaround to kde #27700
|
|
|
|
desktop-file-install --vendor="" \
|
|
|
|
--add-mime-type=application/x-zip-compressed \
|
|
|
|
--remove-mime-type=application/x-zip-compressed \
|
|
|
|
--add-category=Emulator \
|
|
|
|
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/wine.desktop
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
# fix the binary name
|
|
|
|
sed -i 's,Exec=wine ,Exec=wine64 ,' %{buildroot}%{_datadir}/applications/wine.desktop
|
|
|
|
%endif
|
|
|
|
|
|
|
|
install -d %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
|
|
|
|
|
|
|
|
# winecfg icon
|
|
|
|
convert dlls/user32/resources/oic_winlogo.ico[8] %{buildroot}%{_miconsdir}/%{name}.png
|
|
|
|
convert dlls/user32/resources/oic_winlogo.ico[7] %{buildroot}%{_iconsdir}/%{name}.png
|
|
|
|
convert dlls/user32/resources/oic_winlogo.ico[6] %{buildroot}%{_liconsdir}/%{name}.png
|
|
|
|
|
|
|
|
# notepad icon
|
|
|
|
convert programs/notepad/notepad.ico[2] %{buildroot}%{_miconsdir}/notepad.png
|
|
|
|
convert programs/notepad/notepad.ico[7] %{buildroot}%{_iconsdir}/notepad.png
|
|
|
|
convert programs/notepad/notepad.ico[8] %{buildroot}%{_liconsdir}/notepad.png
|
|
|
|
# winefile icon
|
|
|
|
convert programs/winefile/winefile.ico[2] %{buildroot}%{_miconsdir}/winefile.png
|
|
|
|
convert programs/winefile/winefile.ico[8] %{buildroot}%{_iconsdir}/winefile.png
|
|
|
|
convert programs/winefile/winefile.ico[7] %{buildroot}%{_liconsdir}/winefile.png
|
|
|
|
# regedit icon
|
|
|
|
convert programs/regedit/regedit.ico[2] %{buildroot}%{_miconsdir}/regedit.png
|
|
|
|
convert programs/regedit/regedit.ico[8] %{buildroot}%{_iconsdir}/regedit.png
|
|
|
|
convert programs/regedit/regedit.ico[7] %{buildroot}%{_liconsdir}/regedit.png
|
|
|
|
# winemine icon
|
|
|
|
convert programs/winemine/winemine.ico[2] %{buildroot}%{_miconsdir}/winemine.png
|
|
|
|
convert programs/winemine/winemine.ico[8] %{buildroot}%{_iconsdir}/winemine.png
|
|
|
|
convert programs/winemine/winemine.ico[7] %{buildroot}%{_liconsdir}/winemine.png
|
|
|
|
|
|
|
|
# wine uninstaller icon:
|
|
|
|
convert programs/msiexec/msiexec.ico[2] %{buildroot}%{_miconsdir}/msiexec.png
|
|
|
|
convert programs/msiexec/msiexec.ico[8] %{buildroot}%{_iconsdir}/msiexec.png
|
|
|
|
convert programs/msiexec/msiexec.ico[7] %{buildroot}%{_liconsdir}/msiexec.png
|
|
|
|
|
|
|
|
# change the icons in the respective .desktop files, in order:
|
2012-05-03 11:49:15 +04:00
|
|
|
sed -i 's,Icon=%{name},Icon=notepad,' %{buildroot}%{_datadir}/applications/mandriva-wine-notepad.desktop
|
|
|
|
sed -i 's,Icon=%{name},Icon=winefile,' %{buildroot}%{_datadir}/applications/mandriva-wine-winefile.desktop
|
|
|
|
sed -i 's,Icon=%{name},Icon=regedit,' %{buildroot}%{_datadir}/applications/mandriva-wine-regedit.desktop
|
|
|
|
sed -i 's,Icon=%{name},Icon=winemine,' %{buildroot}%{_datadir}/applications/mandriva-wine-winemine.desktop
|
|
|
|
sed -i 's,Icon=%{name},Icon=msiexec,' "%{buildroot}%{_datadir}/applications/mandriva-wine-wine uninstaller.desktop"
|
2012-02-01 14:32:14 +04:00
|
|
|
|
|
|
|
%ifarch x86_64
|
2012-05-03 11:07:09 +04:00
|
|
|
chrpath -d %{buildroot}%{_bindir}/{wine64,wineserver,wmc,wrc} %{buildroot}%{_libdir}/%{name}/*.so
|
2012-02-01 14:32:14 +04:00
|
|
|
%else
|
2012-05-03 11:07:09 +04:00
|
|
|
chrpath -d %{buildroot}%{_bindir}/{wine,wineserver,wmc,wrc} %{buildroot}%{_libdir}/%{name}/*.so
|
2012-02-01 14:32:14 +04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
cat > README.install.urpmi <<EOF
|
|
|
|
This is the Win64 version of Wine. This version can only be used to run
|
|
|
|
64-bit Windows applications as is. For running 32-bit Windows applications,
|
|
|
|
you need to also install the 'wine32' package from the 32-bit repository.
|
|
|
|
EOF
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%preun -n %{wine}
|
|
|
|
%_preun_service %{name}
|
|
|
|
|
|
|
|
%post -n %{wine}
|
|
|
|
%_post_service %{name}
|
|
|
|
|
|
|
|
%files -n %{wine}
|
|
|
|
%doc ANNOUNCE AUTHORS README
|
|
|
|
%ifarch x86_64
|
|
|
|
%doc README.install.urpmi
|
|
|
|
%{_bindir}/wine64
|
|
|
|
%{_bindir}/wine64-preloader
|
|
|
|
%endif
|
|
|
|
%{_initrddir}/%{name}
|
|
|
|
%{_bindir}/winecfg
|
|
|
|
%{_bindir}/wineconsole*
|
|
|
|
%{_bindir}/wineserver
|
|
|
|
%{_bindir}/wineboot
|
|
|
|
%{_bindir}/function_grep.pl
|
|
|
|
#%{_bindir}/wineprefixcreate
|
|
|
|
%{_bindir}/msiexec
|
|
|
|
%{_bindir}/notepad
|
|
|
|
%{_bindir}/regedit
|
|
|
|
%{_bindir}/winemine
|
|
|
|
%{_bindir}/winepath
|
|
|
|
%{_bindir}/regsvr32
|
|
|
|
%{_bindir}/winefile
|
2014-01-13 10:50:04 +04:00
|
|
|
%{_bindir}/winetricks
|
|
|
|
%{_bindir}/wisotool
|
2012-02-01 14:32:14 +04:00
|
|
|
%{_mandir}/man1/wine.1*
|
|
|
|
%lang(de) %{_mandir}/de.UTF-8/man1/wine.1*
|
|
|
|
%lang(de) %{_mandir}/de.UTF-8/man1/winemaker.1*
|
|
|
|
%lang(de) %{_mandir}/de.UTF-8/man1/wineserver.1*
|
|
|
|
%lang(fr) %{_mandir}/fr.UTF-8/man1/*
|
|
|
|
%{_mandir}/man1/wineserver.1*
|
|
|
|
%{_mandir}/man1/msiexec.1*
|
|
|
|
%{_mandir}/man1/notepad.1*
|
|
|
|
%{_mandir}/man1/regedit.1*
|
|
|
|
%{_mandir}/man1/regsvr32.1*
|
|
|
|
%{_mandir}/man1/wineboot.1*
|
|
|
|
%{_mandir}/man1/winecfg.1*
|
|
|
|
%{_mandir}/man1/wineconsole.1*
|
|
|
|
%{_mandir}/man1/winecpp.1*
|
|
|
|
%{_mandir}/man1/winefile.1*
|
|
|
|
%{_mandir}/man1/winemine.1*
|
|
|
|
%{_mandir}/man1/winepath.1*
|
2012-05-03 11:07:09 +04:00
|
|
|
%dir %{_datadir}/%{name}
|
2013-12-24 21:29:00 +04:00
|
|
|
#{_datadir}/%{name}/generic.ppd
|
2012-05-03 11:07:09 +04:00
|
|
|
%{_datadir}/%{name}/%{name}.inf
|
|
|
|
%{_datadir}/%{name}/l_intl.nls
|
2012-02-01 14:32:14 +04:00
|
|
|
%{_datadir}/applications/*.desktop
|
2012-05-03 11:49:15 +04:00
|
|
|
%{_sysconfdir}/xdg/menus/applications-merged/mandriva-%{name}.menu
|
|
|
|
%{_datadir}/desktop-directories/mandriva-%{name}.directory
|
2012-02-01 14:32:14 +04:00
|
|
|
%dir %{_datadir}/wine/fonts
|
|
|
|
%{_datadir}/wine/fonts/*
|
|
|
|
%{_miconsdir}/*.png
|
|
|
|
%{_iconsdir}/*.png
|
|
|
|
%{_liconsdir}/*.png
|
|
|
|
|
|
|
|
%ifarch %{ix86}
|
|
|
|
%files -n wine32
|
|
|
|
%{_bindir}/wine
|
|
|
|
%{_bindir}/wine-preloader
|
|
|
|
%endif
|
|
|
|
|
2013-12-24 21:29:00 +04:00
|
|
|
%{_libdir}/libwine*.so.%{major}*
|
2012-05-03 11:07:09 +04:00
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
%{_libdir}/%{name}/*.cpl.so
|
|
|
|
%{_libdir}/%{name}/*.drv.so
|
|
|
|
%{_libdir}/%{name}/*.dll.so
|
|
|
|
%{_libdir}/%{name}/*.exe.so
|
|
|
|
%{_libdir}/%{name}/*.acm.so
|
|
|
|
%{_libdir}/%{name}/*.ocx.so
|
2012-02-01 14:32:14 +04:00
|
|
|
%ifarch %{ix86}
|
2012-05-03 11:07:09 +04:00
|
|
|
%{_libdir}/%{name}/*.vxd.so
|
|
|
|
%{_libdir}/%{name}/*16.so
|
2012-02-01 14:32:14 +04:00
|
|
|
%endif
|
2012-05-03 11:07:09 +04:00
|
|
|
%{_libdir}/%{name}/*.tlb.so
|
|
|
|
%{_libdir}/%{name}/*.ds.so
|
|
|
|
%{_libdir}/%{name}/*.sys.so
|
|
|
|
%{_libdir}/%{name}/fakedlls
|
2012-02-01 14:32:14 +04:00
|
|
|
|
|
|
|
%files -n %{wine}-devel
|
2012-05-03 11:07:09 +04:00
|
|
|
%{_libdir}/%{name}/*.a
|
2012-02-01 14:32:14 +04:00
|
|
|
%{_libdir}/libwine*.so
|
2012-05-03 11:07:09 +04:00
|
|
|
%{_libdir}/%{name}/*.def
|
2012-02-01 14:32:14 +04:00
|
|
|
%{_includedir}/*
|
2012-09-14 15:31:11 +04:00
|
|
|
# %{_bindir}/fnt2bdf
|
2012-02-01 14:32:14 +04:00
|
|
|
%{_bindir}/wmc
|
|
|
|
%{_bindir}/wrc
|
|
|
|
%{_bindir}/winebuild
|
|
|
|
%{_bindir}/winegcc
|
|
|
|
%{_bindir}/wineg++
|
|
|
|
%{_bindir}/winecpp
|
|
|
|
%{_bindir}/widl
|
|
|
|
%{_bindir}/winedbg
|
|
|
|
%{_bindir}/winemaker
|
|
|
|
%{_bindir}/winedump
|
|
|
|
%{_mandir}/man1/wmc.1*
|
|
|
|
%{_mandir}/man1/wrc.1*
|
|
|
|
%{_mandir}/man1/winebuild.1*
|
|
|
|
%{_mandir}/man1/winemaker.1*
|
|
|
|
%{_mandir}/man1/winedump.1*
|
|
|
|
%{_mandir}/man1/widl.1*
|
|
|
|
%{_mandir}/man1/winedbg.1*
|
|
|
|
%{_mandir}/man1/wineg++.1*
|
|
|
|
%{_mandir}/man1/winegcc.1*
|
2012-05-03 17:46:34 +04:00
|
|
|
%{_mandir}/pl.UTF-8/man1/wine.1*
|