File wine.spec of Package wine
#
# spec file for package wine with Bulanci patch (Version 0.9.55)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: wine
BuildRequires: audiofile cups-devel fontforge freeglut-devel libpng-devel libtiff-devel libxslt-devel openldap2-devel libgphoto2 libxml2-devel pkgconfig libjpeg-devel audiofile-devel bison flex ncurses-devel
# Fedora specifics
%if 0%{?fedora_version} > 0
BuildRequires: libicu-devel lcms-devel freetype-devel alsa-devel
%endif
# fedora 4: prelink requires a kernel?
%if 0%{?fedora_version} == 4
BuildRequires: prelink kernel XFree86-devel hal-devel
%endif
%if 0%{?fedora_version} >= 5
BuildRequires: xorg-x11-devel hal-devel libX11-devel libXext-devel imake xorg-x11-utils libXt-devel libXrandr-devel libXrender-devel libXinerama-devel libXi-devel fontconfig-devel
%endif
# Mandriva specifics
%if 0%{?mandriva_version} > 0
BuildRequires: XFree86-devel lcms-devel freetype-devel prelink hal-devel libgphoto-devel -kernel
%endif
# SUSE Specifics
%if 0%{?suse_version} > 0
BuildRequires: liblcms-devel freetype2-devel update-desktop-files capi4linux libicu-devel alsa-devel fontconfig-devel
%endif
%if 0%{?suse_version} <= 910
BuildRequires: libungif
%endif
%if 0%{?suse_version} == 910
BuildRequires: XFree86-devel Mesa-devel
%endif
%if 0%{?suse_version} > 910
BuildRequires: desktop-file-utils giflib-devel hal-devel xorg-x11-devel jack-devel Mesa-devel jack-devel
%endif
License: LGPL, Other License(s), see package
Group: System/Emulators/PC
Autoreqprov: on
Version: 0.9.57
Release: 1
Summary: MS Window's API for Linux
URL: http://www.winehq.com
Source0: wine-%version.tar.bz2
Source3: README.SuSE
Source4: wine.desktop
Patch: wine-bulanci.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Wine Is Not Emulator with Bulanci patch - this program provides MS windows API under Linux
This package is based on the package 'wine' from project 'Emulators:Wine'.
This package contain Bulanci patch which enables playing game Bulanci.
A MS Windows API support, consisting of both runtime and also source
compatibility functions. You can run your MS executables with it, and
you can write your Windows programs under Linux and link against the
WINE libraries.
It is not necessary to have a Windows installation to run WINE.
Please have a look at /usr/share/doc/packages/wine/README.SuSE. There
is more documentation available in that directory. Read 'man wine' for
further information.
You can invoke wine by entering: 'wine program.exe' wine can be
configured by running 'winecfg'.
%package devel
Summary: files for wine development
Group: System/Emulators/PC
%description devel
This RPM contains the header files and development tools for the WINE
libraries.
%prep
%setup -q
#
cp %{S:3} .
#
%patch
test -d dlls/winemp3.acm && (
echo "*** Must not include MP3 decoder!" ; exit 1
)
%build
autoconf
CFLAGS="-DLDAP_DEPRECATED=1 ${RPM_OPT_FLAGS}" \
./configure --prefix=/usr --with-x --mandir=$RPM_BUILD_ROOT/%{_mandir}
grep "have_x=yes" config.log || exit 1
make %{?jobs:-j%jobs} depend
make %{?jobs:-j%jobs} all
%install
rm -rf $RPM_BUILD_ROOT
make install prefix=$RPM_BUILD_ROOT%{_prefix}
# install desktop file
install -d $RPM_BUILD_ROOT/usr/share/applications/
install -m 0644 %SOURCE4 $RPM_BUILD_ROOT/usr/share/applications/
%if 0%{?mandriva_version} > 0
%else
%debug_package
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr(-,root,root)
%doc ANNOUNCE AUTHORS ChangeLog LICENSE LICENSE.OLD README*
/usr/bin/*
/usr/share/wine
%{_libdir}/lib*
%dir %{_libdir}/wine
%{_libdir}/wine
%{_libdir}/wine/*.so
%{_libdir}/wine/*.*16
/usr/share/applications/wine.desktop
%doc %{_mandir}/*/*
%files devel
%defattr(-,root,root)
%{_libdir}/wine/*.def
%{_libdir}/wine/*.a
%{_includedir}/wine
/usr/share/aclocal/wine.m4
%changelog -n wine
* Tue Oct 02 2007 -lmichnovic@suse.cz
- applying bulanci patch to make possible playing Bulanci game