Filewatcher File Search
FTP Search
  
Directory (beta)
  
Content Search (beta)
   
pkg://wine-20000213-1.src.rpm:3489981/wine.spec  info  downloads

Summary: A Windows 16/32 bit emulator.
Name: wine
%define version 20000213
Version: %{version}
Release: 1
Group: Applications/Emulators
Copyright: Freely distributable
URL: http://www.winehq.com/
Source: ftp://metalab.unc.edu/pub/Linux/ALPHA/wine/development/Wine-%{version}.tar.bz2
Source1: urlmon-wininet.tar
Source2: wine.userreg
Source3: wine.systemreg
Patch: wine-redhat.patch
Patch1: urlmon-wininet.diff
Buildroot: /var/tmp/%{name}-root
ExclusiveArch: i386 i486 i586 i686

%description
While Wine is usually thought of as a Windows(TM) emulator, the Wine
developers would prefer that users thought of Wine as a Windows
compatibility layer for UNIX. This package includes a program loader,
which allows unmodified Windows 3.1/95/NT binaries to run under Intel
Unixes.  Wine doesn't require MS Windows, but it can use native system
.dll files if they're available.

%package devel
Summary: Wine development environment.
Group: System Environment/Libraries
Requires: wine

%description devel
Header and include files for developing applications with the Wine
Windows(TM) emulation libraries.

%prep
%setup -q -n wine
cd ..
tar xf %{SOURCE1}
cd wine
%patch -p1 -b .redhat
%patch1 -p1 -b .urlmon

%build
tools/make_debug
autoconf
%configure \
	--enable-dll \
	--with-x \
	--prefix=/usr \
	--sysconfdir=/etc 

make depend
make

%install
rm -rf $RPM_BUILD_ROOT

make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc install

# Take care of wine and windows configuration files...
mkdir -p $RPM_BUILD_ROOT/etc
install wine.ini $RPM_BUILD_ROOT/etc/wine.conf
install -c -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/etc/wine.userreg
install -c -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/etc/wine.systemreg

for i in system Desktop Favorites Fonts NetHood "Start Menu/Programs/Startup" \
         Recent SendTo ShellNew system32 Profiles/Administrator; do
	mkdir -p "$RPM_BUILD_ROOT/usr/share/wine-c/windows/$i"
done
mkdir -p "$RPM_BUILD_ROOT/usr/share/wine-c/Program Files"
mkdir -p "$RPM_BUILD_ROOT/usr/share/wine-c/My Documents"

for i in shell.dll shell32.dll winsock.dll wnsock32.dll; do
	touch $RPM_BUILD_ROOT/usr/share/wine-c/windows/system/$i
done
touch $RPM_BUILD_ROOT/usr/share/wine-c/autoexec.bat
touch $RPM_BUILD_ROOT/usr/share/wine-c/config.sys
touch $RPM_BUILD_ROOT/usr/share/wine-c/windows/win.ini

cat >$RPM_BUILD_ROOT/usr/share/wine-c/windows/system.ini <<EOF
[mci]
cdaudio=mcicda.drv
sequencer=mciseq.drv
waveaudio=mciwave.drv
avivideo=mciavi.drv
videodisc=mcipionr.drv
vcr=mciviscd.drv
MPEGVideo=mciqtz.drv
EOF

cat >$RPM_BUILD_DIR/wine/RedHat <<EOF
Wine directory structure used in Red Hat Linux:
===============================================

/usr/share/wine-c is the root directory (aka C: drive) wine looks for
by default. It contains (empty) C:\windows and C:\windows\system
directories, needed to operate Wine without an existing Windows installation.

If you want to use Wine with an existing Windows installation that is mounted,
for example, in /mnt/windows-c, edit /etc/wine.conf to say

[Drive C]
Path=/mnt/windows-c
Type=hd
Label=Whatever
Filesystem=win95

instead of the defaults set by installation.

If you do this, you can safely remove /usr/share/wine-c.
(Alternatively, just mount your Windows partition to /usr/share/wine-c.)
EOF

%clean
rm -r $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%dir /usr/share/wine-c
%dir /usr/share/wine-c/windows
%dir /usr/share/wine-c/windows/system
%dir /usr/share/wine-c/windows/Profiles
%dir /usr/share/wine-c/windows/Profiles/Administrator
%dir /usr/share/wine-c/windows/Desktop
%dir /usr/share/wine-c/windows/Favorites
%dir /usr/share/wine-c/windows/Fonts
%dir /usr/share/wine-c/windows/NetHood
%dir "/usr/share/wine-c/windows/Start Menu"
%dir "/usr/share/wine-c/windows/Start Menu/Programs"
%dir "/usr/share/wine-c/windows/Start Menu/Programs/Startup"
%dir /usr/share/wine-c/windows/Recent
%dir /usr/share/wine-c/windows/SendTo
%dir /usr/share/wine-c/windows/ShellNew
%dir /usr/share/wine-c/windows/system32
%dir "/usr/share/wine-c/Program Files"
%dir "/usr/share/wine-c/My Documents"
/usr/lib/lib*.so.*
/usr/lib/wine.sym
/usr/bin/*
/usr/man/man?/*
/usr/share/wine-c/windows/system/*dll
%config /usr/share/wine-c/autoexec.bat
%config /usr/share/wine-c/config.sys
%config /usr/share/wine-c/windows/win.ini
%config /usr/share/wine-c/windows/system.ini
%config /etc/wine.conf
%config(missingok) /etc/wine.userreg
%config(missingok) /etc/wine.systemreg
%doc ANNOUNCE BUGS ChangeLog DEVELOPERS-HINTS LICENSE README
%doc AUTHORS WARRANTY documentation RedHat

%files devel
%defattr(-,root,root)
/usr/include/*
/usr/lib/lib*.so

%changelog
* Sun Feb 13 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- newer version
- Improve the system.ini file - all multimedia stuff should work now.

* Wed Feb  2 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- enable and fix up the urlmon/wininet patch
- add: autoexec.bat, config.sys, windows/win.ini windows/system.ini
  windows/Profiles/Administrator
- allow i[456]86 arches
- add some system.ini configuration

* Wed Feb  2 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- update current
- add urlmon and wininet patches from Corel (don't apply them for now though)
- create empty shell*dll and winsock*dll files (as mentioned in the HOWTO)

* Mon Jan 17 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- update to current (lots of important fixes)
- Fix up the default wine.conf file (We really don't want it to look
  for CD-ROMs in /cdrom!)
- create a "root filesystem" with everything required to run wine without
  windows in /usr/share/wine-c (drive c:)
- add RedHat file in /usr/doc/wine-%{version} explaining the new directory
  layout
- wine-devel requires wine

* Tue Dec 14 1999 Preston Brown <pbrown@redhat.com>
- updated source for Powertools 6.2
- better files list

* Fri Jul 23 1999 Tim Powers <timp@redhat.com>
- updated source
- built for 6.1

* Tue Apr 13 1999 Michael Maher <mike@redhat.com>
- built package for 6.0
- updated package and spec file

* Mon Oct 26 1998 Preston Brown <pbrown@redhat.com>
- updated to 10/25/98 version.  There is really no point in keeping the
- older one, it is full of bugs and the newer one has fewer.
- commented out building of texinfo manual, it is horrendously broken.

* Mon Oct 12 1998 Michael Maher <mike@redhat.com>
- built package for 5.2
- pressured by QA, not updating.

* Fri May 22 1998 Cristian Gafton <gafton@redhat.com>
- repackaged for PowerTools

Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2008 IT MARUHN