This commit is contained in:
parent
594b10e4f8
commit
1bc99b03f3
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 7 13:41:48 CEST 2008 - meissner@suse.de
|
||||||
|
|
||||||
|
- removed fontforge, audiofile, libtiff-devel from buildrequires,
|
||||||
|
added libjpeg-devel
|
||||||
|
- more winetricks bugfixes regarding fonts.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 2 19:51:11 CEST 2008 - meissner@suse.de
|
Fri May 2 19:51:11 CEST 2008 - meissner@suse.de
|
||||||
|
|
||||||
|
10
wine.spec
10
wine.spec
@ -12,12 +12,12 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: wine
|
Name: wine
|
||||||
BuildRequires: alsa-devel audiofile bison capi4linux-devel cups-devel desktop-file-utils fdupes flex fontforge freeglut-devel freetype2-devel giflib-devel hal-devel jack-devel libgphoto2-devel liblcms-devel libpng-devel libtiff-devel libxslt-devel ncurses-devel openldap2-devel prelink sane-backends update-desktop-files
|
BuildRequires: alsa-devel bison capi4linux-devel cups-devel desktop-file-utils fdupes flex freeglut-devel freetype2-devel giflib-devel hal-devel jack-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
|
License: LGPL v2.1 or later
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 0.9.61
|
Version: 0.9.61
|
||||||
Release: 1
|
Release: 3
|
||||||
Summary: An MS Windows Emulator
|
Summary: An MS Windows Emulator
|
||||||
Url: http://www.winehq.com
|
Url: http://www.winehq.com
|
||||||
Source0: wine-%version.tar.bz2
|
Source0: wine-%version.tar.bz2
|
||||||
@ -67,7 +67,7 @@ test -d dlls/winemp3.acm && (
|
|||||||
rm -f ./config.cache
|
rm -f ./config.cache
|
||||||
autoconf
|
autoconf
|
||||||
CFLAGS="$RPM_OPT_FLAGS" \
|
CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr --verbose
|
||||||
make %{?jobs:-j%jobs} depend
|
make %{?jobs:-j%jobs} depend
|
||||||
make %{?jobs:-j%jobs} all
|
make %{?jobs:-j%jobs} all
|
||||||
|
|
||||||
@ -120,6 +120,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
/usr/share/aclocal/wine.m4
|
/usr/share/aclocal/wine.m4
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 07 2008 meissner@suse.de
|
||||||
|
- removed fontforge, audiofile, libtiff-devel from buildrequires,
|
||||||
|
added libjpeg-devel
|
||||||
|
- more winetricks bugfixes regarding fonts.
|
||||||
* Fri May 02 2008 meissner@suse.de
|
* Fri May 02 2008 meissner@suse.de
|
||||||
- Upgraded to upstream 0.9.61
|
- Upgraded to upstream 0.9.61
|
||||||
- Automatic updating of the WINEPREFIX directory.
|
- Automatic updating of the WINEPREFIX directory.
|
||||||
|
51
winetricks
51
winetricks
@ -20,7 +20,7 @@ WINETRICKS_TMP=$WINEPREFIX/drive_c/winetrickstmp
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-V|--version)
|
-V|--version)
|
||||||
echo "Winetricks version 20080423. (C) Dan Kegel. LGPL."
|
echo "Winetricks version 20080502. (C) Dan Kegel. LGPL."
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -238,20 +238,6 @@ rm -rf $WINETRICKS_TMP/*
|
|||||||
programfilesdir_win=`$WINE cmd.exe /c echo "%ProgramFiles%"`
|
programfilesdir_win=`$WINE cmd.exe /c echo "%ProgramFiles%"`
|
||||||
programfilesdir_unix=`$WINE winepath -u "$programfilesdir_win"`
|
programfilesdir_unix=`$WINE winepath -u "$programfilesdir_win"`
|
||||||
|
|
||||||
# Mac folks tend to have curl rather than wget
|
|
||||||
if which curl > /dev/null
|
|
||||||
then
|
|
||||||
WGET="curl -L -O -C -"
|
|
||||||
else
|
|
||||||
# Use -nd to insulate ourselves from people who set -x in WGETRC
|
|
||||||
# [*] --retry-connrefused works around the broken sf.net mirroring
|
|
||||||
# system when downloading corefonts
|
|
||||||
# [*] --read-timeout is useful on the adobe server that doesn't
|
|
||||||
# close the connection unless you tell it to (control-C or closing
|
|
||||||
# the socket)
|
|
||||||
WGET="wget -nd -c --read-timeout=300 --retry-connrefused"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Mac folks tend to not have sha1sum, but we can make do with openssl
|
# Mac folks tend to not have sha1sum, but we can make do with openssl
|
||||||
if which sha1sum > /dev/null
|
if which sha1sum > /dev/null
|
||||||
then
|
then
|
||||||
@ -305,12 +291,26 @@ download() {
|
|||||||
else
|
else
|
||||||
file=`basename "$2"`
|
file=`basename "$2"`
|
||||||
fi
|
fi
|
||||||
cache=$WINETRICKS_CACHE/$1
|
cache="$WINETRICKS_CACHE/$1"
|
||||||
mkdir -p $cache
|
mkdir -p "$cache"
|
||||||
if ! test -f $cache/$file
|
if ! test -f "$cache/$file"
|
||||||
then
|
then
|
||||||
cd $cache
|
cd "$cache"
|
||||||
try $WGET "$2"
|
# Mac folks tend to have curl rather than wget
|
||||||
|
if which wget > /dev/null
|
||||||
|
then
|
||||||
|
# Use -nd to insulate ourselves from people who set -x in WGETRC
|
||||||
|
# [*] --retry-connrefused works around the broken sf.net mirroring
|
||||||
|
# system when downloading corefonts
|
||||||
|
# [*] --read-timeout is useful on the adobe server that doesn't
|
||||||
|
# close the connection unless you tell it to (control-C or closing
|
||||||
|
# the socket)
|
||||||
|
try wget -nd -c --read-timeout=300 --retry-connrefused "$2"
|
||||||
|
else
|
||||||
|
# curl doesn't get filename from the location given by the server!
|
||||||
|
# fortunately, we know it
|
||||||
|
try curl -L -o $file -C - "$2"
|
||||||
|
fi
|
||||||
cd $olddir
|
cd $olddir
|
||||||
fi
|
fi
|
||||||
if [ "$3"x != ""x ]
|
if [ "$3"x != ""x ]
|
||||||
@ -625,7 +625,8 @@ load_gecko() {
|
|||||||
|
|
||||||
if ! test -f $WINETRICKS_CACHE/wine_gecko-$GECKO_VERSION.cab
|
if ! test -f $WINETRICKS_CACHE/wine_gecko-$GECKO_VERSION.cab
|
||||||
then
|
then
|
||||||
download . "http://source.winehq.org/winegecko.php?v=$GECKO_VERSION"
|
# FIXME: busted if using curl!
|
||||||
|
download . "http://source.winehq.org/winegecko.php?v=$GECKO_VERSION" c16f1072dc6b0ced20935662138dcf019a38cd56 wine_gecko-$GECKO_VERSION.cab
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat > $WINETRICKS_TMP/geckopath.reg <<_EOF_
|
cat > $WINETRICKS_TMP/geckopath.reg <<_EOF_
|
||||||
@ -689,7 +690,9 @@ load_jet40() {
|
|||||||
load_liberation() {
|
load_liberation() {
|
||||||
# http://www.redhat.com/promo/fonts/
|
# http://www.redhat.com/promo/fonts/
|
||||||
download . http://www.redhat.com/f/fonts/liberation-fonts.tar.gz 38276ab5e4322e131217d26f193bfce396195c0a
|
download . http://www.redhat.com/f/fonts/liberation-fonts.tar.gz 38276ab5e4322e131217d26f193bfce396195c0a
|
||||||
tar --wildcards -C $WINEPREFIX/drive_c/windows/fonts -xvzf $WINETRICKS_CACHE/liberation-fonts.tar.gz '*.ttf'
|
# Fixme: get fonts path from SHGetFolderPath
|
||||||
|
# see also http://blogs.msdn.com/oldnewthing/archive/2003/11/03/55532.aspx
|
||||||
|
tar --wildcards -C $WINEPREFIX/drive_c/windows/Fonts -xvzf $WINETRICKS_CACHE/liberation-fonts.tar.gz '*.ttf'
|
||||||
}
|
}
|
||||||
|
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
@ -909,7 +912,9 @@ load_tahoma() {
|
|||||||
download . http://downloads.sourceforge.net/corefonts/wd97vwr32.exe 8edf758f92513094a94e50b7826cd6f2b7696b8c
|
download . http://downloads.sourceforge.net/corefonts/wd97vwr32.exe 8edf758f92513094a94e50b7826cd6f2b7696b8c
|
||||||
try cabextract --directory=$WINETRICKS_TMP $WINETRICKS_CACHE/wd97vwr32.exe
|
try cabextract --directory=$WINETRICKS_TMP $WINETRICKS_CACHE/wd97vwr32.exe
|
||||||
try cabextract --directory=$WINETRICKS_TMP $WINETRICKS_TMP/Viewer1.cab
|
try cabextract --directory=$WINETRICKS_TMP $WINETRICKS_TMP/Viewer1.cab
|
||||||
try cp -f $WINETRICKS_TMP/tahoma.ttf $WINEPREFIX/drive_c/windows/fonts/tahoma.ttf
|
# Fixme: get fonts path from SHGetFolderPath
|
||||||
|
# see also http://blogs.msdn.com/oldnewthing/archive/2003/11/03/55532.aspx
|
||||||
|
try cp -f $WINETRICKS_TMP/tahoma.ttf $WINEPREFIX/drive_c/windows/Fonts/tahoma.ttf
|
||||||
rm -rf $WINETRICKS_TMP/*
|
rm -rf $WINETRICKS_TMP/*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user