# # spec file for package wine (Version 1.1.42) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: wine BuildRequires: alsa-devel bison capi4linux-devel cups-devel desktop-file-utils fdupes flex freeglut-devel freetype2-devel giflib-devel gnutls-devel hal-devel libgphoto2-devel libgsm-devel libjpeg-devel liblcms-devel libpng-devel libtiff-devel libxslt-devel ncurses-devel openldap2-devel prelink sane-backends update-desktop-files License: LGPLv2.1+ Group: System/Emulators/PC AutoReqProv: on Version: 1.1.42 Release: 1 Summary: An MS Windows Emulator Url: http://www.winehq.com Source0: wine-%version.tar.bz2 Source1: http://kegel.com/wine/winetricks Source3: README.SuSE Source4: wine.desktop Recommends: wine-gecko wine-mp3 BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: libXcursor.so.1 libXi.so.6 libXxf86vm.so.1 libXrender.so.1 libXrandr.so.2 libXinerama.so.1 libXcomposite.so.1 libxslt.so.1 libhal.so.1 libncurses.so.5 libfreetype.so.6 libpng12.so.0 libjpeg.so.62 libcrypto.so.0.9.8 libssl.so.0.9.8 libfontconfig.so.1 libcups.so.2 libgnutls.so.26 ExclusiveArch: %ix86 %description An MS Windows emulator, consisting of both runtime and source compatibility functions. You can run your MS executables with it and write your Windows programs under Linux and link against the WINE libraries. It is not necessary to have a Windows installation to run WINE. Refer to /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'. Configure it by running 'winecfg'. %package devel License: LGPLv2.1+ 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} . # %build cat VERSION CFLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-m64//'` \ ./configure --prefix=/usr --libdir=/usr/lib --with-x --verbose cat config.log grep "have_x=yes" config.log || exit 1 make %{?jobs:-j%jobs} depend make %{?jobs:-j%jobs} all %install make install DESTDIR=$RPM_BUILD_ROOT # install desktop file install -d $RPM_BUILD_ROOT/usr/share/applications/ install -m 0644 %SOURCE4 $RPM_BUILD_ROOT/usr/share/applications/ install -m 0755 %SOURCE1 $RPM_BUILD_ROOT/usr/bin/ mv $RPM_BUILD_ROOT/%{_mandir}/de.UTF-8 $RPM_BUILD_ROOT/%{_mandir}/de mv $RPM_BUILD_ROOT/%{_mandir}/fr.UTF-8 $RPM_BUILD_ROOT/%{_mandir}/fr %suse_update_desktop_file %{SOURCE4} Emulator %fdupes -s $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc ANNOUNCE AUTHORS LICENSE LICENSE.OLD README* /usr/bin/* /usr/share/wine %{_libdir}/lib* %dir %{_libdir}/wine %{_libdir}/wine/*.so %dir %{_libdir}/wine/fakedlls %{_libdir}/wine/fakedlls/* /usr/share/applications/wine.desktop %doc %{_mandir}/*/* %files devel %defattr(-,root,root) %{_includedir}/wine %{_libdir}/wine/*.def %{_libdir}/wine/*.a # /usr/share/aclocal/wine.m4 %changelog