SHA256
1
0
forked from pool/wine
wine/wine.spec

128 lines
3.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package wine (Version 1.1.24)
#
# Copyright (c) 2009 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/
#
# norootforbuild
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 libjpeg-devel liblcms-devel libpng-devel libxslt-devel ncurses-devel openldap2-devel prelink sane-backends update-desktop-files
License: LGPL v2.1 or later
Group: System/Emulators/PC
AutoReqProv: on
Version: 1.1.24
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libX11.so.6 libXext.so.6 libXcursor.so.1 libXi.so.6 libXxf86vm.so.1 libXrender.so.1 libXrandr.so.2 libXinerama.so.1 libXcomposite.so.1 libGL.so.1 libGLU.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: LGPL v2.1 or later
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} .
#
test -d dlls/winemp3.acm && (
echo "*** Must not include MP3 decoder!" ; exit 1
)
%build
rm -f ./config.cache
autoconf
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=/usr --verbose
make %{?jobs:-j%jobs} all
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
make install prefix=$RPM_BUILD_ROOT%{_prefix}
#
# install documentation
install -d -m 755 $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/
cp ANNOUNCE AUTHORS LICENSE LICENSE.OLD README* \
$RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/
#
find $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/ -type d|xargs chmod ogu+rx
find $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/ -type f|xargs chmod ogu+r
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)
/usr/bin/*
/usr/share/wine
%{_libdir}/lib*
%dir %{_libdir}/wine
%{_libdir}/wine/*.so
%{_libdir}/wine/*.*16
/usr/share/applications/wine.desktop
%doc %{_defaultdocdir}/wine
%doc %{_mandir}/*/*
%doc %{_mandir}/*/*/*
%files devel
%defattr(-,root,root)
%{_includedir}/wine
%{_libdir}/wine/*.def
%{_libdir}/wine/*.a
/usr/share/aclocal/wine.m4
%changelog