OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src openpkg-web openpkg$ Date: 17-Jul-2003 22:53:45
Branch: HEAD Handle: 2003071721534302
Added files:
openpkg-re/vcheck vc.wine
openpkg-src/wine wine.patch wine.spec winesetup.sh
Modified files:
openpkg-web news.txt
Log:
first cut for a Wine (Wine Is Not an Emulator) package
Summary:
Revision Changes Path
1.1 +9 -0 openpkg-re/vcheck/vc.wine
1.1 +12 -0 openpkg-src/wine/wine.patch
1.1 +146 -0 openpkg-src/wine/wine.spec
1.1 +46 -0 openpkg-src/wine/winesetup.sh
1.5619 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-re/vcheck/vc.wine
============================================================================
$ cvs diff -u -r0 -r1.1 vc.wine
--- /dev/null 2003-07-17 22:53:43.000000000 +0200
+++ vc.wine 2003-07-17 22:53:43.000000000 +0200
@@ -0,0 +1,9 @@
+config = {
+}
+
+prog wine = {
+ version = 20030709
+ url = http://www.ibiblio.org/pub/Linux/ALPHA/wine/development/
+ regex = Wine-(__VER__)\.tar\.gz
+}
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/wine/wine.patch
============================================================================
$ cvs diff -u -r0 -r1.1 wine.patch
--- /dev/null 2003-07-17 22:53:45.000000000 +0200
+++ wine.patch 2003-07-17 22:53:45.000000000 +0200
@@ -0,0 +1,12 @@
+--- Makefile.in.orig Wed Apr 9 08:10:49 2003
++++ Makefile.in Wed Apr 9 08:14:06 2003
+@@ -82,8 +82,7 @@
+ install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__)
$(INSTALLBOTHSUBDIRS:%=%/__install-dev__) install-aclocal
+
+ install:: install-lib install-dev install-aclocal
+- -$(LDCONFIG)
+- @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
++ @if false ; \
+ then \
+ echo "*************************************************" ; \
+ echo "*************************************************" ; \
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/wine/wine.spec
============================================================================
$ cvs diff -u -r0 -r1.1 wine.spec
--- /dev/null 2003-07-17 22:53:45.000000000 +0200
+++ wine.spec 2003-07-17 22:53:45.000000000 +0200
@@ -0,0 +1,146 @@
+##
+## wine.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2003 Ralf S. Engelschall <[EMAIL PROTECTED]>
+## Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: wine
+Summary: Wine Is Not an Emulator (WINE)
+URL: http://www.wine.org/
+Vendor: Bob Amstadt, Alexandre Julliard et al
+Packager: The OpenPKG Project
+Distribution: OpenPKG [EVAL]
+Group: X11
+License: LGPL
+Version: 20030709
+Release: 20030717
+
+# list of sources
+Source0:
http://www.ibiblio.org/pub/Linux/ALPHA/wine/development/Wine-%{version}.tar.gz
+Source1: winesetup.sh
+Patch0: wine.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20030103, X11, xpm, perl, gcc, make, flex, bison
+PreReq: OpenPKG, openpkg >= 20030103, X11, xpm, perl
+AutoReq: no
+AutoReqProv: no
+
+%description
+ The Wine project started in 1993 as a way to support running Win16
+ and Win32 API based programs on Intel x86. Wine does not emulate
+ the Intel x86 processor. Instead the applications run natively on
+ the Intel x86 with just all Windows API calls implemented by Wine
+ through a mapping onto the Unix/X11 API. An original Microsoft
+ Windows(tm) installation is not required, because the goal of Wine
+ is the full reimplementation of the Windows APIs which makes the
+ original Windows implementation unnecessary. Wine is still under
+ heavy development, but many people find it already useful in running
+ a growing number of Windows applications.
+
+%prep
+ %setup -q
+ %patch -p0
+
+ # pre-check the build platform in advance
+ case "%{l_target}" in
+ *x86-linux* | *x86-freebsd* | *x86-netbsd* | *x86-solaris* ) ;;
+ * ) echo "Linux/FreeBSD/NetBSD/Solaris on Intel x86 supported only"; exit 1
;;
+ esac
+
+%build
+ # configure package
+ CC="%{l_cc}" \
+ CXX="%{l_cxx}" \
+ CFLAGS="%{l_cflags -O}" \
+ CXXFLAGS="%{l_cxxflags -O}" \
+ CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --disable-trace \
+ --disable-debug
+
+ # build package
+ %{l_make} %{l_mflags -O}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+
+ # install package
+ %{l_make} %{l_mflags} install \
+ prefix=$RPM_BUILD_ROOT%{l_prefix} \
+ exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
+
+ # install default configuration files
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/share/wine
+ %{l_shtool} install -c -m 644 \
+ documentation/samples/* \
+ $RPM_BUILD_ROOT%{l_prefix}/share/wine/
+
+ # install default registry
+ %{l_shtool} install -c -m 644 \
+ winedefault.reg \
+ $RPM_BUILD_ROOT%{l_prefix}/lib/wine/
+
+ # post-adjust installation
+ mv $RPM_BUILD_ROOT%{l_prefix}/bin/function_grep.pl \
+ $RPM_BUILD_ROOT%{l_prefix}/bin/function_grep
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/man3w
+ %{l_shtool} subst \
+ -e 's;#!/usr/bin/perl;#!%{l_prefix}/bin/perl;' \
+ $RPM_BUILD_ROOT%{l_prefix}/bin/winemaker
+
+ # make sure the shared libraries are found
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wine
+ for prog in wine wineserver wmc wrc; do
+ mv $RPM_BUILD_ROOT%{l_prefix}/bin/$prog \
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/wine/$prog
+ ( echo "#!/bin/sh"
+ echo "LD_LIBRARY_PATH=\"%{l_prefix}/lib:\${LD_LIBRARY_PATH:-/usr/lib}\""
+ echo "export LD_LIBRARY_PATH"
+ echo "exec %{l_prefix}/libexec/wine/$prog \${1+\"[EMAIL PROTECTED]"}"
+ ) >$prog.sh && %{l_shtool} install -c -m 755 \
+ $prog.sh $RPM_BUILD_ROOT%{l_prefix}/libexec/wine/$prog
+ done
+
+ # install a small utility for setting up $HOME/.wine
+ %{l_shtool} install -c -m 755 \
+ %{SOURCE winesetup.sh} \
+ $RPM_BUILD_ROOT%{l_prefix}/bin/winesetup
+
+ # determine installation files
+ %{l_rpmtool} files-wine -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%not %dir %{l_prefix}/share/aclocal'
+
+%files -f files-wine
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/wine/winesetup.sh
============================================================================
$ cvs diff -u -r0 -r1.1 winesetup.sh
--- /dev/null 2003-07-17 22:53:45.000000000 +0200
+++ winesetup.sh 2003-07-17 22:53:45.000000000 +0200
@@ -0,0 +1,46 @@
+#!/bin/sh
+##
+## winesetup -- Wine setup utility for users
+##
+
+l_prefix="@l_prefix@"
+
+# create important directory structure under $HOME/.wine
+umask 022
+for dir in \
+ "$HOME/.wine" \
+ "$HOME/.wine/c_drive" \
+ "$HOME/.wine/c_drive/Windows" \
+ "$HOME/.wine/c_drive/Windows/Fonts" \
+ "$HOME/.wine/c_drive/Windows/Start Menu" \
+ "$HOME/.wine/c_drive/Windows/Start Menu/Programs" \
+ "$HOME/.wine/c_drive/Windows/System" \
+ "$HOME/.wine/c_drive/Windows/System32" \
+ "$HOME/.wine/c_drive/Windows/Temp" \
+ "$HOME/.wine/c_drive/Program Files" \
+ "$HOME/.wine/c_drive/Program Files/Common Files"; \
+do
+ if [ ! -d "$dir" ]; then
+ echo "++ creating directory \"$dir\""
+ mkdir "$dir"
+ fi
+done
+
+# install important configuration files into $HOME/.wine
+if [ ! -f "$HOME/.wine/system.ini" ]; then
+ echo "++ creating file \"$HOME/.wine/system.ini\""
+ cp $l_prefix/share/wine/system.ini $HOME/.wine/system.ini
+fi
+if [ ! -f "$HOME/.wine/win.ini" ]; then
+ echo "++ creating file \"$HOME/.wine/win.ini\""
+ cp $l_prefix/share/wine/win.ini $HOME/.wine/win.ini
+fi
+if [ ! -f "$HOME/.wine/generic.ppd" ]; then
+ echo "++ creating file \"$HOME/.wine/generic.ppd\""
+ cp $l_prefix/share/wine/generic.ppd $HOME/.wine/generic.ppd
+fi
+if [ ! -f "$HOME/.wine/config" ]; then
+ echo "++ creating file \"$HOME/.wine/config\""
+ cp $l_prefix/share/wine/config $HOME/.wine/config
+fi
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.5618 -r1.5619 news.txt
--- openpkg-web/news.txt 17 Jul 2003 18:29:50 -0000 1.5618
+++ openpkg-web/news.txt 17 Jul 2003 20:53:43 -0000 1.5619
@@ -1,3 +1,4 @@
+17-Jul-2003: New package: P<wine-20030709-20030717>
17-Jul-2003: Upgraded package: P<xterm-1.79-20030717>
17-Jul-2003: Upgraded package: P<traceroute-1.4a12-20030717>
17-Jul-2003: Upgraded package: P<jitterbug-1.6.2.3-20030717>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]