X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=wine.spec;h=59e5a0b0cbe1f23bf45f29d1f469d954686d5e59;hb=afb86d14f29f2ad5e64b2ee7b554e8edf84fac5e;hp=b370e1adf97dcad388603b78f10d14435fdf678c;hpb=025a0fd94125aefaf1b0d7006962f3ed6ba9b20e;p=packages%2Fwine.git diff --git a/wine.spec b/wine.spec index b370e1a..59e5a0b 100644 --- a/wine.spec +++ b/wine.spec @@ -1,23 +1,36 @@ Summary: Program that lets you launch Win applications +Summary(es): Ejecuta programas Windows en Linux Summary(pl): Program pozwalaj±cy uruchamiaæ aplikacje Windows +Summary(pt_BR): Executa programas Windows no Linux Name: wine -Version: 20010112 +Version: 20020411 Release: 1 -License: Distributable +License: distributable Group: Applications/Emulators -Group(de): Applikationen/Emulators -Group(pl): Aplikacje/Emulatory Source0: ftp://metalab.unc.edu/pub/Linux/ALPHA/wine/development/Wine-%{version}.tar.gz +Source1: %{name}.init +Source2: %{name}.reg +Source3: %{name}.systemreg +Source4: %{name}.userreg +Patch0: %{name}-fontcache.patch URL: http://www.winehq.com/ Exclusivearch: %{ix86} BuildRequires: XFree86-devel BuildRequires: flex BuildRequires: bison BuildRequires: ncurses-devel +BuildRequires: OpenGL-devel +BuildRequires: freetype-devel >= 2.0.5 +BuildRequires: chpax +Requires: OpenGL BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/X11R6 -%define _mandir %{_prefix}/man +%define _noautoreqdep libGL.so.1 libGLU.so.1 +%define no_install_post_strip 1 + +%define _prefix /usr/X11R6 +%define _mandir %{_prefix}/man +%define _winedir %{_datadir}/%{name} %description Wine is a program which allows running Microsoft Windows programs @@ -27,6 +40,9 @@ Windows binary, and a library 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. +%description -l es +Ejecuta programas Windows en Linux. + %description -l pl Wine jest programem dziêki któremu mo¿na uruchamiaæ programy napisane dla Microsoft Windows pod systemami unixowymi. Sk³ada siê on z @@ -35,33 +51,71 @@ Microsoft Windows oraz z biblioteki, kt przy u¿yciu odpowiedników Unixowych oraz z X11. Biblioteka mo¿e byæ tak¿e wykorzystana do przenoszenia aplikacji Win32 do Unixa. +%description -l pt_BR +O Wine é um programa que permite rodar programas MS-Windows no X11. +Ele consiste de um carregador de programa, que carrega e executa um +binário MS-Windows, e de uma biblioteca de emulação que traduz as +chamadas da API para as equivalentes Unix/X11. + %package devel Summary: Wine - header files +Summary(es): Biblioteca de desarrollo de wine Summary(pl): Wine - pliki nag³owkowe +Summary(pt_BR): Biblioteca de desenvolvimento do wine Group: Development/Libraries -Group(de): Entwicklung/Libraries -Group(fr): Development/Librairies -Group(pl): Programowanie/Biblioteki Requires: %{name} = %{version} - + %description devel Wine - header files. -%description -l pl devel +%description devel -l es +Biblioteca de desarrollo de wine. + +%description devel -l pl Wine - pliki nag³ówkowe. +%description devel -l pt_BR +Arquivos de inclusão e bibliotecas para desenvolver aplicações com o +WINE. + +%package programs +Summary: Wine - programs +Summary(pl): Wine - programy +Group: Applications +Requires: %{name} = %{version} + +%description programs +Wine - programs + +%description programs -l pl +Wine - programy + %prep %setup -q +%patch -p1 + +# turn off compilation of some tools +sed -e "s|winetest||;s|avitools||" programs/Makefile.in > .tmp +mv -f .tmp programs/Makefile.in %build +aclocal +autoconf %configure \ - --disable-debug \ - --disable-trace \ +%{!?debug: --disable-debug} \ +%{!?debug: --disable-trace} \ --enable-curses \ + --enable-opengl \ --with-x %{__make} depend %{__make} +%{__make} -C programs + +(cd documentation +./db2html-winehq wine-user.sgml +./db2html-winehq wine-devel.sgml +./db2html-winehq winelib-user.sgml) %install rm -rf $RPM_BUILD_ROOT @@ -80,38 +134,112 @@ install -d $RPM_BUILD_ROOT%{_mandir}/man1 localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \ sharedstatedir=$RPM_BUILD_ROOT%{_sharedstatedir} \ mandir=$RPM_BUILD_ROOT%{_mandir} \ - infodir=$RPM_BUILD_ROOT%{_infodir} - -cp documentation/samples/config wine.conf.example -install -d $RPM_BUILD_ROOT%{_sysconfdir} -cat <$RPM_BUILD_ROOT%{_sysconfdir}/wine.conf -; -; You can find example wine.conf file in %{_docdir}/%{name}-%{version}/wine.conf.example -; More information: 'man wine.conf' or http://www.winehq.com -; -; Przyk³adowy plik konfiguracyjny jest w %{_docdir}/%{name}-%{version}/wine.conf.example -; Wiêcej informacji: 'man wine.conf' lub na stronach WINE: http://www.winehq.com -; + infodir=$RPM_BUILD_ROOT%{_infodir} + +%{__make} -C programs install \ + prefix=$RPM_BUILD_ROOT%{_prefix} \ + bindir=$RPM_BUILD_ROOT%{_bindir} + +(cd $RPM_BUILD_ROOT%{_bindir} +find -name '*.so' | sed 's|^.|%attr(755,root,root) %{_bindir}|; s|.so$||') > programs.list + +install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d \ + $RPM_BUILD_ROOT%{_winedir}/windows/{system,Desktop,Favorites,Fonts} \ + "$RPM_BUILD_ROOT%{_winedir}/windows/Start Menu/Programs/Startup" \ + $RPM_BUILD_ROOT%{_winedir}/windows/{SendTo,ShellNew,system32,NetHood} \ + $RPM_BUILD_ROOT%{_winedir}/windows/{Profiles/Administrator,Recent} \ + $RPM_BUILD_ROOT%{_winedir}/{"Program Files/Common Files","My Documents"} + +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/wine +install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir} +install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir} +install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir} + +touch $RPM_BUILD_ROOT%{_winedir}/{autoexec.bat,config.sys,windows/win.ini} +touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{shell.dll,shell32.dll} +touch $RPM_BUILD_ROOT%{_winedir}/windows/system/{winsock.dll,wsock32.dll} + +cat >$RPM_BUILD_ROOT%{_winedir}/windows/system.ini <&2 +fi + +%preun +if [ "$1" = "0" ]; then + if [ -f /var/lock/subsys/wine ]; then + /etc/rc.d/init.d/wine stop >&2 + fi + /sbin/chkconfig --del wine +fi + +%postun -p /sbin/ldconfig + %files %defattr(644,root,root,755) -%doc {README,WARRANTY,LICENSE,DEVELOPERS-HINTS,ChangeLog,BUGS,AUTHORS,ANNOUNCE}.gz -%doc documentation wine.conf.example -%attr(755,root,root) %{_bindir}/* +%doc *.gz +%doc documentation/wine-user +%attr(755,root,root) %{_bindir}/wine +%attr(755,root,root) %{_bindir}/winebuild +%attr(755,root,root) %{_bindir}/winemaker +%attr(755,root,root) %{_bindir}/wineserver +%attr(755,root,root) %{_bindir}/wineclipsrv +%attr(755,root,root) %{_bindir}/winelauncher +%attr(755,root,root) %{_bindir}/wineshelllink +%attr(755,root,root) %{_bindir}/winedump +%attr(755,root,root) %{_bindir}/wrc +%attr(755,root,root) %{_bindir}/wmc +%attr(755,root,root) %{_bindir}/fnt2bdf +%attr(755,root,root) %{_bindir}/function_grep.pl %attr(755,root,root) %{_libdir}/*.so* %{_mandir}/man[15]/* -%config(noreplace) %{_sysconfdir}/wine.conf +%config(noreplace) %{_sysconfdir}/wine.reg +%config(missingok) %{_sysconfdir}/wine.systemreg +%config(missingok) %{_sysconfdir}/wine.userreg +%attr(754,root,root) %{_sysconfdir}/rc.d/init.d/wine +%{_winedir} + +%files programs -f programs.list +%defattr(644,root,root,755) +%attr (755,root,root) %{_bindir}/hlp2sgml +%{_bindir}/*.so %files devel %defattr(644,root,root,755) +%doc documentation/{wine-devel,winelib-user,HOWTO-winelib} %{_includedir}/wine %{_libdir}/*.a