Репозитории ALT
S: | 8.15.1-alt1 |
5.1: | 1.1.44-alt1.M50P.1 |
4.1: | 1.0.9-alt0.M41.35 |
4.0: | 1.0.9-alt0.M40.35 |
+backports: | 1.0.9-alt0.M40.16 |
3.0: | 20050715-alt0.1 |
+backports: | 20061212-alt0.M30.1 |
Группа :: Эмуляторы
Пакет: wine
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Note wine fonts untested on non ALT build env
%if %{_vendor} != "alt"
# ALT compatibility on other platforms
# TODO: rpm-build-altlinux-compatibility rpm package
BuildRoot: /home/lav/tmp/%name-%version
%define post_ldconfig /sbin/ldconfig
%define unpost_ldconfig /sbin/ldconfig
%define make_build make
%define __subst subst
%define make make
%define _initdir /etc/rc.d/init.d
%define _iconsdir %_datadir/icons
%define _liconsdir %_iconsdir/mini
%define _miconsdir %_iconsdir/large
%define _man1dir %_mandir/man1
%define _menudir %_prefix/lib/menu
# default attr!
%endif
Name: wine
Version: 20050715
Release: alt0.1
Summary: Enviroment for Windows program running
Summary(ru_RU.KOI8-R): Среда для запуска программ Windows
License: LGPL
Group: Emulators
Url: http://www.winehq.com/
Packager: Vitaly Lipatov <lav at altlinux.ru>
#Source: ftp://ftp.lip6.fr/pub/linux/Wine/development/%name-%version.tar.bz2
Source: ftp://office.etersoft.ru/pub/Etersoft/%name-%version.tar.bz2
Source1: %name.init
Source2: %name-%version-launcher.sh
#Source3: %name-20050608-alt-config
#Source4: %name-%version-fonts.tar.bz2
Source5: %name-20050408-alt-wineshelllink
Source6: %name.png
Source7: %{name}_small.png
Source8: %name-autorun.sh
Source9: %name-reboot.sh
Patch1: wine-20020804-destdir.patch
Patch2: %name-20050708-alt-fixes.patch
Patch3: %name-%version-etersoft-fixes.patch
AutoReq: yes, noperl
%if %{_vendor} == "alt"
%set_verify_elf_method textrel=relaxed
%endif
#==========================================================================
%if %{_vendor} == "alt"
# For menu/MIME subsystem
Requires(post,postun): desktop-file-utils
BuildPreReq: desktop-file-utils
BuildPreReq: menu-devel
%endif
# manually removed: splint valgrind-devel hostinfo
# for docs: OpenSP docbook-dtds docbook-style-dsssl docbook-utils-print openjade sgml-common xml-common
# Automatically added by buildreq on Wed Sep 15 2004
BuildRequires: XFree86-devel flex fontconfig-devel gcc-c++ libjpeg-devel libungif-devel libuninameslist-devel zlib-devel
%if %{_vendor} == "alt"
BuildRequires: libtinfo-devel libncurses-devel
BuildRequires: freetype2-devel libssl-devel
BuildRequires: glib2-devel
%else
BuildRequires: freetype-devel > 2.0 openssl-devel
%endif
%if %{_vendor} != "RPM"
# Optionally:
BuildRequires: jackit-devel libGLU-devel libalsa-devel libarts-devel libcups-devel
BuildRequires: libgphoto2-devel libieee1284-devel libsane-devel libusb-devel liblcms-devel
BuildPreReq: ttmkfdir
# For fonts conversion
BuildPreReq: fontforge
%endif
BuildPreReq: gpm-devel xpm-devel util-linux
#docbook-utils
%if %{_vendor} != "RPM"
# for dlls/uuid build
BuildPreReq: glibc-devel-static
%endif
# for cross tests compiling
#BuildPreReq: i386-mingw32msvc-binutils i386-mingw32msvc-gcc
# internal requires
Requires: %name-utils = %version-%release
Requires: lib%name = %version-%release
%if %{_vendor} == "alt"
# For internal use in wrapper scripts
Requires: Xdialog, hd2u, iconv, webclient
%endif
#=========================================================================
%description
WINE Is Not Emulator. Wine is an Open Source implementation of the Windows
API on top of X and Unix. Think of Wine as a compatibility layer for
running Windows programs. Wine does not require Microsoft Windows,
as it is a completely free alternative implementation of the Windows
API consisting of 100% non-Microsoft code, however Wine can optionally
use native Windows DLLs if they are available. Wine provides both a
development toolkit for porting Windows source code to Unix as well as
a program loader, allowing many unmodified Windows programs to run on
x86-based Unixes, including Linux, FreeBSD, and Solaris.
It is still alpha level code; don't expect everything to work.
Check http://appdb.winehq.com/ for get info on application
compatibility with Wine.
%description -l ru_RU.KOI8-R
Wine Не Является Эмулятором. Это альтернативная реализация API Windows
3.x и Win32. Wine предоставляет как инструментарий разработки (Winelib)
для переноса унаследованных исходных кодов из среды Windows в среду
Unix, так и программный загрузчик, позволяющий бинарным кодам из среды
Windows 3.1/95/NT выполняться без изменения в среде разных вариантов
Unix на платформе Intel. Wine не требует наличия Microsoft Windows,
поскольку это полностью альтернативная реализация, состоящая на 100%
из свободного от Microsoft кода. В то же время возможно использование
"родных" системных DLL, если они доступны.
Эта программа всё ещё находится в стадии разработки, поэтому
не ожидайте, что всё будет работать.
База данных информации по запуску программ находится по адресу
http://appdb.winehq.com/
%package -n %name-utils
Summary: Wine Emulator (Utilities)
Summary(ru_RU.KOI8-R): Эмулятор Wine (Дополнительные программы)
Group: Emulators
Requires: %name = %version-%release
AutoReq: yes, noperl
%description -n %name-utils
This is an ALPHA release of Wine, the MS-Windows emulator. This is
still a developers release and many applications may still not work.
This package consists many of the utilities provided by wine, both
for compiling source using winelib and for running wine. This
package is not strictly necessary.
%description -n %name-utils -l ru_RU.KOI8-R
Это предварительный выпуск среды Wine, имитатора MS-Windows.
Он всё ещё в разработке, и многие приложения могут пока не работать.
Этот пакет содержит большинство утилит, предоставляемых в проекте Wine,
предназначенные для компилирования программ с использованием winelib
и для запуска Wine-программ. Данный пакет не всегда необходим для работы
Wine.
%package -n lib%name
Summary: Main library for wine
Group: System/Libraries
Requires(pre): /bin/sed, /bin/awk, /bin/egrep
Requires: wine-fonts-ttf
Provides: libntdll.dll.so
%description -n lib%name
This is an ALPHA release of Wine, the MS-Windows emulator. This is
still a developers release and many applications may still not work.
This package contains the library needed to run programs dynamically
linked with Wine.
%description -n lib%name -l ru_RU.KOI8-R
Это предварительный выпуск среды Wine, имитатора MS-Windows.
Он всё ещё в разработке, и многие приложения могут пока не работать.
Этот пакет состоит из библиотеки, которая реализует Windows API.
%define fname wine
%define ttfdir %_datadir/fonts/%fname
%package -n %fname-fonts-ttf
Summary: WINE TrueType fonts
Group: System/Fonts/True type
PreReq: chkfontpath fontconfig
%description -n %fname-fonts-ttf
Standart WINE ttf fonts
########## separate libraries
%package -n lib%name-arts
Summary: arts support library for wine
Group: System/Libraries
%description -n lib%name-arts
This package contains the library for arts sound output
%package -n lib%name-twain
Summary: twain support library for wine
Group: System/Libraries
%description -n lib%name-twain
This package contains the library for twain support
##########################################################################
%package -n lib%name-devel
Summary: Headers for lib%name-devel
Group: Development/C
Requires: lib%name = %version-%release
Obsoletes: wine-devel
Provides: wine-devel
%description -n lib%name-devel
This is an ALPHA release of Wine, the MS-Windows emulator. This is
still a developers release and many applications may still not work.
lib%name-devel contains the header files needed to
develop programs which make use of wine.
This package consists the utilities for compiling source using winelib.
%description -n lib%name-devel -l ru_RU.KOI8-R
Это предварительный выпуск среды Wine, имитатора MS-Windows.
Он всё ещё в разработке, и многие приложения могут пока не работать.
lib%name-devel содержит файлы для разработки программ, использующих Wine -
заголовочные файлы и утилиты, предназначенные
для компилирования программ с использованием winelib.
%package -n lib%name-devel-doc
Summary: Documentation for lib%name-devel
Group: Development/C
%description -n lib%name-devel-doc
Development documentation for WINE API.
%package -n lib%name-devel-static
Summary: Static libraries for lib%name-devel-static
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel-static
This is an ALPHA release of Wine, the MS-Windows emulator. This is
still a developers release and many applications may still not work.
lib%name-devel-static contains the static libraries needed to
develop programs which make use of wine.
##########################################################################
%prep
%setup -q
%patch1 -p1
%patch2 -p0
%patch3 -p0
#%patch4 -p0
%__cp -f %SOURCE5 ./tools/wineshelllink
%build
# add curses library for ALT build environment
%__subst "s|-lncurses|-lncurses -ltinfo|g" configure
# disable hard debugging for fast compiling
%__subst "s|-gstabs+||g" configure
%configure \
--enable-dll \
--with-x \
--prefix=%_prefix \
--enable-opengl
%make depend
%make_build
%if %{_vendor} == "alt"
# for new WINE
%make -C documentation htmlpages
%endif
##########################################################################
%install
%if %{_vendor} != "alt"
rm -rf $RPM_BUILD_ROOT
%endif
for i in programs/*/Makefile tools/*/Makefile; do
perl -pi -e 's|= ..DESTDIR.//|= '$RPM_BUILD_ROOT/'|g' $i
done
%makeinstall \
sysconfdir=%buildroot%_sysconfdir/wine \
dlldir=%buildroot%_libdir/wine \
includedir=%buildroot%_includedir/wine \
LDCONFIG=/bin/true
ln -sf wine/gdi32.dll.so %buildroot%_libdir/libgdi32.dll.so
ln -sf wine/kernel32.dll.so %buildroot%_libdir/libkernel32.dll.so
ln -sf wine/ntdll.dll.so %buildroot%_libdir/libntdll.dll.so
ln -sf wine/user32.dll.so %buildroot%_libdir/libuser32.dll.so
# TODO: remove chstk run?
%if %{_vendor} == "alt"
# Enable stack execution on wine binary
for i in -kthread -pthread
do
chstk -e %buildroot/%_bindir/wine$i
done
%endif
# Rename wine for our wrapper use
mv %buildroot/%_bindir/wine %buildroot/%_bindir/wine-glibc
# Install launcher
install -m755 %SOURCE2 %buildroot/%_bindir/wine
# if we have not fontforge
%if %{_vendor} != "alt"
cd %buildroot/%_datadir; tar xvfj %SOURCE4; cd -
%endif
# config is obsoleted since 28.06.05
#%__install -D -c -m 0644 %SOURCE3 $RPM_BUILD_ROOT/%_datadir/%name/wine.conf
# user helper scripts
install -m755 %SOURCE8 %buildroot/%_bindir/wineautorun
install -m755 %SOURCE9 %buildroot/%_bindir/winereboot
install -c -m 0755 tools/fnt2bdf %buildroot/%_bindir/fnt2bdf
# Install service script
install -D -m755 %SOURCE1 $RPM_BUILD_ROOT%_initdir/%name
%__install -D -m 644 %SOURCE7 $RPM_BUILD_ROOT/%_miconsdir/%name.png
%__install -D -m 644 %SOURCE6 $RPM_BUILD_ROOT/%_iconsdir/%name.png
%__install -D -m 644 %SOURCE6 $RPM_BUILD_ROOT/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT%_menudir
%define SECT "WINE Applications/Accessories"
cat >$RPM_BUILD_ROOT%_menudir/%name <<EOF
?package(wine): needs=x11 section="/" title="WINE Applications" icon="wine.png"
?package(wine): needs=x11 section="/WINE Applications" title="Accessories" icon="wine.png"
?package(%name): command="%{name}reboot -v" section=%SECT \\
title="Reboot WINE system" longtitle="Reboot wine system" \\
needs="text" icon="%name.png"
?package(%name): command="%{name}autorun" section=%SECT \\
title="CD Autorun" longtitle="Start CD autorun now" \\
needs="text" icon="%name.png"
?package(%name-utils): command="%{name}file" section=%SECT \\
title="File Manager" needs="x11" icon="%name.png"
?package(%name-utils): command="%{name} progman" section=%SECT \\
title="Program Manager" needs="x11" icon="%name.png"
?package(%name-utils): command="uninstaller" section=%SECT \\
title="Application Uninstaller" needs="text" icon="%name.png"
?package(%name): command="wine control" section=%SECT \\
title="Control Panel" needs="text" icon="%name.png"
?package(%name-utils): command="regedit" section=%SECT \\
title="Registry Editor" needs="text" icon="%name.png"
?package(%name): command="wcmd" section=%SECT \\
title="Command Prompt" needs="text" icon="%name.png"
?package(%name-utils): command="notepad" section=%SECT \\
title="Notepad" needs="x11" icon="%name.png"
?package(%name-utils): command="winemine" section=%SECT \\
title="Mine Sweeper" needs="x11" icon="%name.png"
?package(%name-utils): command="winecfg" section=%SECT \\
title="Wine Configuration" needs="x11" icon="%name.png"
EOF
mkdir -p %buildroot/%_sysconfdir/ld.so.conf.d
echo "%_libdir/%name" >%buildroot/%_sysconfdir/ld.so.conf.d/wine.conf
cd %buildroot%ttfdir
%_sbindir/ttmkfdir -f %fname -o fonts.dir >& /dev/null
touch fonts.cache-1
%if %{_vendor} == "alt"
%pre
/usr/sbin/groupadd -r -f %name &>/dev/null || :
%post
%post_service %name
%update_menus
%update_desktopdb
%postun
%clean_menus
%clean_desktopdb
%preun
%preun_service %name
%endif
%post -n lib%name
%post_ldconfig
%postun -n lib%name
# remove old entries
%triggerpostun -- %name <= 20040716-alt1
subst "s,%_libdir/%name,," /etc/ld.so.conf
%postun_ldconfig
%post -n lib%{name}-arts
%post_ldconfig
%postun -n lib%{name}-arts
%postun_ldconfig
%post -n lib%{name}-twain
%post_ldconfig
%postun -n lib%{name}-twain
%postun_ldconfig
%if %{_vendor} != "alt"
%clean
rm -rf $RPM_BUILD_ROOT
%endif
%post -n %fname-fonts-ttf
%_bindir/fc-cache %ttfdir
%_sbindir/chkfontpath -q --add %ttfdir
%postun -n %fname-fonts-ttf
%_sbindir/chkfontpath -q --remove %ttfdir
%files -n %fname-fonts-ttf
%dir %ttfdir
%ttfdir/*.ttf
%config %ttfdir/fonts.cache-1
%config %ttfdir/fonts.dir
%files
%doc ANNOUNCE AUTHORS BUGS LICENSE README
%config(noreplace) %_initdir/*
%_iconsdir/%name.png
%_liconsdir/%name.png
%_miconsdir/%name.png
%_bindir/wine
%_bindir/wine-*
%_bindir/regsvr32
%_bindir/wcmd
%_bindir/winecfg
%_bindir/wineprefixcreate
%_bindir/wineconsole*
%_bindir/wineserver
%_bindir/winelauncher
#%_bindir/wineclipsrv
%_bindir/wineshelllink
%_bindir/winereboot
%_bindir/wineautorun
#%_bindir/dosmod
%_man1dir/wine.1*
#%_man5dir/wine.conf.5*
%_menudir/%name
%_datadir/applications/*
%_datadir/%name
%files -n lib%name-arts
%_libdir/%name/winearts.drv.so
%files -n lib%name-twain
%_libdir/%name/twain*
%files -n lib%name
%doc LICENSE AUTHORS
%ttfdir/*.fon
%_sysconfdir/ld.so.conf.d/%name.conf
%_libdir/libwine*.so.*
%dir %_libdir/%name
#Danny: Only add libs not for utils:
%_libdir/%name/*.drv.so
%_libdir/%name/*.dll.so
%_libdir/%name/*.acm.so
%_libdir/%name/*.ocx.so
%_libdir/%name/*.vxd.so
%_libdir/%name/*.tlb.so
%exclude %_libdir/%name/twain*
%exclude %_libdir/%name/winearts.drv.so
%files -n lib%name-devel
%doc DEVELOPERS-HINTS ChangeLog BUGS LICENSE
%_libdir/%name/lib*.def
%_bindir/winebuild
%_bindir/wmc
%_bindir/wrc
%_bindir/widl
%_bindir/wineg++
%_bindir/winegcc
%_bindir/winecpp
%_bindir/winedump
%_bindir/winemaker
%_bindir/function_grep.pl
%_libdir/lib*.so
%_includedir/%name
%_datadir/aclocal/%name.m4
%_mandir/man1/wmc.1*
%_mandir/man1/wrc.1*
%_mandir/man1/widl.1*
%_mandir/man1/winebuild*
# for new WINE
%files -n lib%name-devel-doc
%doc documentation/html
%if %{_vendor} == "alt"
%files -n lib%name-devel-static
%_libdir/%name/lib*.a
%endif
%files utils
%doc LICENSE
%_bindir/msiexec
%_bindir/fnt2bdf
%_bindir/notepad
%_bindir/progman
%_bindir/regedit
%_bindir/uninstaller
%_bindir/winedbg
%_bindir/wineboot
%_bindir/winefile
%_bindir/winemine
%_bindir/winepath
%_bindir/winhelp
%_bindir/winebrowser
%attr (0755 root root) %_libdir/%name/*.exe.so
%_man1dir/wine*
%changelog
…
Полный changelog можно просмотреть здесь
%if %{_vendor} != "alt"
# ALT compatibility on other platforms
# TODO: rpm-build-altlinux-compatibility rpm package
BuildRoot: /home/lav/tmp/%name-%version
%define post_ldconfig /sbin/ldconfig
%define unpost_ldconfig /sbin/ldconfig
%define make_build make
%define __subst subst
%define make make
%define _initdir /etc/rc.d/init.d
%define _iconsdir %_datadir/icons
%define _liconsdir %_iconsdir/mini
%define _miconsdir %_iconsdir/large
%define _man1dir %_mandir/man1
%define _menudir %_prefix/lib/menu
# default attr!
%endif
Name: wine
Version: 20050715
Release: alt0.1
Summary: Enviroment for Windows program running
Summary(ru_RU.KOI8-R): Среда для запуска программ Windows
License: LGPL
Group: Emulators
Url: http://www.winehq.com/
Packager: Vitaly Lipatov <lav at altlinux.ru>
#Source: ftp://ftp.lip6.fr/pub/linux/Wine/development/%name-%version.tar.bz2
Source: ftp://office.etersoft.ru/pub/Etersoft/%name-%version.tar.bz2
Source1: %name.init
Source2: %name-%version-launcher.sh
#Source3: %name-20050608-alt-config
#Source4: %name-%version-fonts.tar.bz2
Source5: %name-20050408-alt-wineshelllink
Source6: %name.png
Source7: %{name}_small.png
Source8: %name-autorun.sh
Source9: %name-reboot.sh
Patch1: wine-20020804-destdir.patch
Patch2: %name-20050708-alt-fixes.patch
Patch3: %name-%version-etersoft-fixes.patch
AutoReq: yes, noperl
%if %{_vendor} == "alt"
%set_verify_elf_method textrel=relaxed
%endif
#==========================================================================
%if %{_vendor} == "alt"
# For menu/MIME subsystem
Requires(post,postun): desktop-file-utils
BuildPreReq: desktop-file-utils
BuildPreReq: menu-devel
%endif
# manually removed: splint valgrind-devel hostinfo
# for docs: OpenSP docbook-dtds docbook-style-dsssl docbook-utils-print openjade sgml-common xml-common
# Automatically added by buildreq on Wed Sep 15 2004
BuildRequires: XFree86-devel flex fontconfig-devel gcc-c++ libjpeg-devel libungif-devel libuninameslist-devel zlib-devel
%if %{_vendor} == "alt"
BuildRequires: libtinfo-devel libncurses-devel
BuildRequires: freetype2-devel libssl-devel
BuildRequires: glib2-devel
%else
BuildRequires: freetype-devel > 2.0 openssl-devel
%endif
%if %{_vendor} != "RPM"
# Optionally:
BuildRequires: jackit-devel libGLU-devel libalsa-devel libarts-devel libcups-devel
BuildRequires: libgphoto2-devel libieee1284-devel libsane-devel libusb-devel liblcms-devel
BuildPreReq: ttmkfdir
# For fonts conversion
BuildPreReq: fontforge
%endif
BuildPreReq: gpm-devel xpm-devel util-linux
#docbook-utils
%if %{_vendor} != "RPM"
# for dlls/uuid build
BuildPreReq: glibc-devel-static
%endif
# for cross tests compiling
#BuildPreReq: i386-mingw32msvc-binutils i386-mingw32msvc-gcc
# internal requires
Requires: %name-utils = %version-%release
Requires: lib%name = %version-%release
%if %{_vendor} == "alt"
# For internal use in wrapper scripts
Requires: Xdialog, hd2u, iconv, webclient
%endif
#=========================================================================
%description
WINE Is Not Emulator. Wine is an Open Source implementation of the Windows
API on top of X and Unix. Think of Wine as a compatibility layer for
running Windows programs. Wine does not require Microsoft Windows,
as it is a completely free alternative implementation of the Windows
API consisting of 100% non-Microsoft code, however Wine can optionally
use native Windows DLLs if they are available. Wine provides both a
development toolkit for porting Windows source code to Unix as well as
a program loader, allowing many unmodified Windows programs to run on
x86-based Unixes, including Linux, FreeBSD, and Solaris.
It is still alpha level code; don't expect everything to work.
Check http://appdb.winehq.com/ for get info on application
compatibility with Wine.
%description -l ru_RU.KOI8-R
Wine Не Является Эмулятором. Это альтернативная реализация API Windows
3.x и Win32. Wine предоставляет как инструментарий разработки (Winelib)
для переноса унаследованных исходных кодов из среды Windows в среду
Unix, так и программный загрузчик, позволяющий бинарным кодам из среды
Windows 3.1/95/NT выполняться без изменения в среде разных вариантов
Unix на платформе Intel. Wine не требует наличия Microsoft Windows,
поскольку это полностью альтернативная реализация, состоящая на 100%
из свободного от Microsoft кода. В то же время возможно использование
"родных" системных DLL, если они доступны.
Эта программа всё ещё находится в стадии разработки, поэтому
не ожидайте, что всё будет работать.
База данных информации по запуску программ находится по адресу
http://appdb.winehq.com/
%package -n %name-utils
Summary: Wine Emulator (Utilities)
Summary(ru_RU.KOI8-R): Эмулятор Wine (Дополнительные программы)
Group: Emulators
Requires: %name = %version-%release
AutoReq: yes, noperl
%description -n %name-utils
This is an ALPHA release of Wine, the MS-Windows emulator. This is
still a developers release and many applications may still not work.
This package consists many of the utilities provided by wine, both
for compiling source using winelib and for running wine. This
package is not strictly necessary.
%description -n %name-utils -l ru_RU.KOI8-R
Это предварительный выпуск среды Wine, имитатора MS-Windows.
Он всё ещё в разработке, и многие приложения могут пока не работать.
Этот пакет содержит большинство утилит, предоставляемых в проекте Wine,
предназначенные для компилирования программ с использованием winelib
и для запуска Wine-программ. Данный пакет не всегда необходим для работы
Wine.
%package -n lib%name
Summary: Main library for wine
Group: System/Libraries
Requires(pre): /bin/sed, /bin/awk, /bin/egrep
Requires: wine-fonts-ttf
Provides: libntdll.dll.so
%description -n lib%name
This is an ALPHA release of Wine, the MS-Windows emulator. This is
still a developers release and many applications may still not work.
This package contains the library needed to run programs dynamically
linked with Wine.
%description -n lib%name -l ru_RU.KOI8-R
Это предварительный выпуск среды Wine, имитатора MS-Windows.
Он всё ещё в разработке, и многие приложения могут пока не работать.
Этот пакет состоит из библиотеки, которая реализует Windows API.
%define fname wine
%define ttfdir %_datadir/fonts/%fname
%package -n %fname-fonts-ttf
Summary: WINE TrueType fonts
Group: System/Fonts/True type
PreReq: chkfontpath fontconfig
%description -n %fname-fonts-ttf
Standart WINE ttf fonts
########## separate libraries
%package -n lib%name-arts
Summary: arts support library for wine
Group: System/Libraries
%description -n lib%name-arts
This package contains the library for arts sound output
%package -n lib%name-twain
Summary: twain support library for wine
Group: System/Libraries
%description -n lib%name-twain
This package contains the library for twain support
##########################################################################
%package -n lib%name-devel
Summary: Headers for lib%name-devel
Group: Development/C
Requires: lib%name = %version-%release
Obsoletes: wine-devel
Provides: wine-devel
%description -n lib%name-devel
This is an ALPHA release of Wine, the MS-Windows emulator. This is
still a developers release and many applications may still not work.
lib%name-devel contains the header files needed to
develop programs which make use of wine.
This package consists the utilities for compiling source using winelib.
%description -n lib%name-devel -l ru_RU.KOI8-R
Это предварительный выпуск среды Wine, имитатора MS-Windows.
Он всё ещё в разработке, и многие приложения могут пока не работать.
lib%name-devel содержит файлы для разработки программ, использующих Wine -
заголовочные файлы и утилиты, предназначенные
для компилирования программ с использованием winelib.
%package -n lib%name-devel-doc
Summary: Documentation for lib%name-devel
Group: Development/C
%description -n lib%name-devel-doc
Development documentation for WINE API.
%package -n lib%name-devel-static
Summary: Static libraries for lib%name-devel-static
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel-static
This is an ALPHA release of Wine, the MS-Windows emulator. This is
still a developers release and many applications may still not work.
lib%name-devel-static contains the static libraries needed to
develop programs which make use of wine.
##########################################################################
%prep
%setup -q
%patch1 -p1
%patch2 -p0
%patch3 -p0
#%patch4 -p0
%__cp -f %SOURCE5 ./tools/wineshelllink
%build
# add curses library for ALT build environment
%__subst "s|-lncurses|-lncurses -ltinfo|g" configure
# disable hard debugging for fast compiling
%__subst "s|-gstabs+||g" configure
%configure \
--enable-dll \
--with-x \
--prefix=%_prefix \
--enable-opengl
%make depend
%make_build
%if %{_vendor} == "alt"
# for new WINE
%make -C documentation htmlpages
%endif
##########################################################################
%install
%if %{_vendor} != "alt"
rm -rf $RPM_BUILD_ROOT
%endif
for i in programs/*/Makefile tools/*/Makefile; do
perl -pi -e 's|= ..DESTDIR.//|= '$RPM_BUILD_ROOT/'|g' $i
done
%makeinstall \
sysconfdir=%buildroot%_sysconfdir/wine \
dlldir=%buildroot%_libdir/wine \
includedir=%buildroot%_includedir/wine \
LDCONFIG=/bin/true
ln -sf wine/gdi32.dll.so %buildroot%_libdir/libgdi32.dll.so
ln -sf wine/kernel32.dll.so %buildroot%_libdir/libkernel32.dll.so
ln -sf wine/ntdll.dll.so %buildroot%_libdir/libntdll.dll.so
ln -sf wine/user32.dll.so %buildroot%_libdir/libuser32.dll.so
# TODO: remove chstk run?
%if %{_vendor} == "alt"
# Enable stack execution on wine binary
for i in -kthread -pthread
do
chstk -e %buildroot/%_bindir/wine$i
done
%endif
# Rename wine for our wrapper use
mv %buildroot/%_bindir/wine %buildroot/%_bindir/wine-glibc
# Install launcher
install -m755 %SOURCE2 %buildroot/%_bindir/wine
# if we have not fontforge
%if %{_vendor} != "alt"
cd %buildroot/%_datadir; tar xvfj %SOURCE4; cd -
%endif
# config is obsoleted since 28.06.05
#%__install -D -c -m 0644 %SOURCE3 $RPM_BUILD_ROOT/%_datadir/%name/wine.conf
# user helper scripts
install -m755 %SOURCE8 %buildroot/%_bindir/wineautorun
install -m755 %SOURCE9 %buildroot/%_bindir/winereboot
install -c -m 0755 tools/fnt2bdf %buildroot/%_bindir/fnt2bdf
# Install service script
install -D -m755 %SOURCE1 $RPM_BUILD_ROOT%_initdir/%name
%__install -D -m 644 %SOURCE7 $RPM_BUILD_ROOT/%_miconsdir/%name.png
%__install -D -m 644 %SOURCE6 $RPM_BUILD_ROOT/%_iconsdir/%name.png
%__install -D -m 644 %SOURCE6 $RPM_BUILD_ROOT/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT%_menudir
%define SECT "WINE Applications/Accessories"
cat >$RPM_BUILD_ROOT%_menudir/%name <<EOF
?package(wine): needs=x11 section="/" title="WINE Applications" icon="wine.png"
?package(wine): needs=x11 section="/WINE Applications" title="Accessories" icon="wine.png"
?package(%name): command="%{name}reboot -v" section=%SECT \\
title="Reboot WINE system" longtitle="Reboot wine system" \\
needs="text" icon="%name.png"
?package(%name): command="%{name}autorun" section=%SECT \\
title="CD Autorun" longtitle="Start CD autorun now" \\
needs="text" icon="%name.png"
?package(%name-utils): command="%{name}file" section=%SECT \\
title="File Manager" needs="x11" icon="%name.png"
?package(%name-utils): command="%{name} progman" section=%SECT \\
title="Program Manager" needs="x11" icon="%name.png"
?package(%name-utils): command="uninstaller" section=%SECT \\
title="Application Uninstaller" needs="text" icon="%name.png"
?package(%name): command="wine control" section=%SECT \\
title="Control Panel" needs="text" icon="%name.png"
?package(%name-utils): command="regedit" section=%SECT \\
title="Registry Editor" needs="text" icon="%name.png"
?package(%name): command="wcmd" section=%SECT \\
title="Command Prompt" needs="text" icon="%name.png"
?package(%name-utils): command="notepad" section=%SECT \\
title="Notepad" needs="x11" icon="%name.png"
?package(%name-utils): command="winemine" section=%SECT \\
title="Mine Sweeper" needs="x11" icon="%name.png"
?package(%name-utils): command="winecfg" section=%SECT \\
title="Wine Configuration" needs="x11" icon="%name.png"
EOF
mkdir -p %buildroot/%_sysconfdir/ld.so.conf.d
echo "%_libdir/%name" >%buildroot/%_sysconfdir/ld.so.conf.d/wine.conf
cd %buildroot%ttfdir
%_sbindir/ttmkfdir -f %fname -o fonts.dir >& /dev/null
touch fonts.cache-1
%if %{_vendor} == "alt"
%pre
/usr/sbin/groupadd -r -f %name &>/dev/null || :
%post
%post_service %name
%update_menus
%update_desktopdb
%postun
%clean_menus
%clean_desktopdb
%preun
%preun_service %name
%endif
%post -n lib%name
%post_ldconfig
%postun -n lib%name
# remove old entries
%triggerpostun -- %name <= 20040716-alt1
subst "s,%_libdir/%name,," /etc/ld.so.conf
%postun_ldconfig
%post -n lib%{name}-arts
%post_ldconfig
%postun -n lib%{name}-arts
%postun_ldconfig
%post -n lib%{name}-twain
%post_ldconfig
%postun -n lib%{name}-twain
%postun_ldconfig
%if %{_vendor} != "alt"
%clean
rm -rf $RPM_BUILD_ROOT
%endif
%post -n %fname-fonts-ttf
%_bindir/fc-cache %ttfdir
%_sbindir/chkfontpath -q --add %ttfdir
%postun -n %fname-fonts-ttf
%_sbindir/chkfontpath -q --remove %ttfdir
%files -n %fname-fonts-ttf
%dir %ttfdir
%ttfdir/*.ttf
%config %ttfdir/fonts.cache-1
%config %ttfdir/fonts.dir
%files
%doc ANNOUNCE AUTHORS BUGS LICENSE README
%config(noreplace) %_initdir/*
%_iconsdir/%name.png
%_liconsdir/%name.png
%_miconsdir/%name.png
%_bindir/wine
%_bindir/wine-*
%_bindir/regsvr32
%_bindir/wcmd
%_bindir/winecfg
%_bindir/wineprefixcreate
%_bindir/wineconsole*
%_bindir/wineserver
%_bindir/winelauncher
#%_bindir/wineclipsrv
%_bindir/wineshelllink
%_bindir/winereboot
%_bindir/wineautorun
#%_bindir/dosmod
%_man1dir/wine.1*
#%_man5dir/wine.conf.5*
%_menudir/%name
%_datadir/applications/*
%_datadir/%name
%files -n lib%name-arts
%_libdir/%name/winearts.drv.so
%files -n lib%name-twain
%_libdir/%name/twain*
%files -n lib%name
%doc LICENSE AUTHORS
%ttfdir/*.fon
%_sysconfdir/ld.so.conf.d/%name.conf
%_libdir/libwine*.so.*
%dir %_libdir/%name
#Danny: Only add libs not for utils:
%_libdir/%name/*.drv.so
%_libdir/%name/*.dll.so
%_libdir/%name/*.acm.so
%_libdir/%name/*.ocx.so
%_libdir/%name/*.vxd.so
%_libdir/%name/*.tlb.so
%exclude %_libdir/%name/twain*
%exclude %_libdir/%name/winearts.drv.so
%files -n lib%name-devel
%doc DEVELOPERS-HINTS ChangeLog BUGS LICENSE
%_libdir/%name/lib*.def
%_bindir/winebuild
%_bindir/wmc
%_bindir/wrc
%_bindir/widl
%_bindir/wineg++
%_bindir/winegcc
%_bindir/winecpp
%_bindir/winedump
%_bindir/winemaker
%_bindir/function_grep.pl
%_libdir/lib*.so
%_includedir/%name
%_datadir/aclocal/%name.m4
%_mandir/man1/wmc.1*
%_mandir/man1/wrc.1*
%_mandir/man1/widl.1*
%_mandir/man1/winebuild*
# for new WINE
%files -n lib%name-devel-doc
%doc documentation/html
%if %{_vendor} == "alt"
%files -n lib%name-devel-static
%_libdir/%name/lib*.a
%endif
%files utils
%doc LICENSE
%_bindir/msiexec
%_bindir/fnt2bdf
%_bindir/notepad
%_bindir/progman
%_bindir/regedit
%_bindir/uninstaller
%_bindir/winedbg
%_bindir/wineboot
%_bindir/winefile
%_bindir/winemine
%_bindir/winepath
%_bindir/winhelp
%_bindir/winebrowser
%attr (0755 root root) %_libdir/%name/*.exe.so
%_man1dir/wine*
%changelog
…
Полный changelog можно просмотреть здесь