rpms/xu4/devel u4download.txt, NONE, 1.1 xu4-1.0beta3-desktop.patch, NONE, 1.1 xu4-zipfile.patch, NONE, 1.1 xu4.autodlrc, NONE, 1.1 xu4.sh, NONE, 1.1 xu4.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Sat May 12 08:23:32 UTC 2007


Author: jwrdegoede

Update of /cvs/extras/rpms/xu4/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22181/devel

Modified Files:
	.cvsignore sources 
Added Files:
	u4download.txt xu4-1.0beta3-desktop.patch xu4-zipfile.patch 
	xu4.autodlrc xu4.sh xu4.spec 
Log Message:
initial xu4 import



--- NEW FILE u4download.txt ---

(Punt's note: "Boomer" is Mike McCoy of Origin / Jane's Combat sims
he's often seen posting to rec.games.computer.ultima.*,
comp.sys.ibm.pc.games.rpg and possibly others. Full headers and
 "extra recipients" snipped for brevity and privacy.)

---mailed to moi. Some non-Ultima-download stuff snipped--
Date: Tue, 21 Oct 1997 07:18:26 -0500
To: mfleming at powerup.com.au
From: Mike McCoy <boomer at cris.com>
Subject: Re: UIV - you mean we can *distribute* it?
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Status: O

At 07:37 AM 10/19/97 +1000, you wrote:
>Boomer,
>
>I've been the recipient of a forward from Edward Franks (Fortran)
>regarding the distribution of Ultima IV and I'm mighty confused..

sorry for the confusion... let's see if I can clarify

1. the U4 distribution in the magazine was intended to be an 'exclusive'
for the mag.  
2. Once the mag distribution was over, it was felt nothing much could be
done to stop redistribution of U4 after that
3. KickAss was offering U4 for d/l, but the Dragons couldn't (per a
previous 'restriction' by Origin?)
4. I said, that's not fair to the Dragons... They've been honest about
this.  Why not let them offer it as well.. Answer: Your absolutely right.. 
5. Ergo: email to Fortran Dragon 'OK'ing' the ability to offer U4 for free
d/l by Dragons


----forward from Fortran----
From: Edward Franks <xyzzy at ponyexpress.net>
Subject: Fwd: Ultima IV
Cc: mfleming at powerup.com.au,

<snip>

Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Status: O

>Return-Path: <boomer at cris.com>
>Received: from darius.concentric.net by sleepy.ponyexpress.net
(SMI-8.6/SMI-SVR4)
>id RAA20780; Fri, 17 Oct 1997 17:42:48 -0500
>Received: from mcfeely.concentric.net (mcfeely.concentric.net
[207.155.184.83])
>by darius.concentric.net (8.8.7/(97/09/12 5.7))
>id SAA13835; Fri, 17 Oct 1997 18:45:53 -0400 (EDT)
>[1-800-745-2747 The Concentric Network]
>Errors-To: <boomer at cris.com>
>Received: from crc3.concentric.net (ts001d03.aus-tx.concentric.net
[206.173.144.15])
>by mcfeely.concentric.net (8.8.7)
>id SAA24560; Fri, 17 Oct 1997 18:45:51 -0400 (EDT)
>Message-Id: <3.0.32.19971017174430.0086b100 at pop3.cris.com>
>X-Sender: boomer at pop3.cris.com
>X-Mailer: Windows Eudora Pro Version 3.0 (32)
>Date: Fri, 17 Oct 1997 17:44:32 -0500
>To: xyzzy at ponyexpress.net
>From: Mike McCoy <boomer at cris.com>
>Subject: Ultima IV
>Mime-Version: 1.0
>Content-Type: text/plain; charset=3D"us-ascii"
>Content-Length: 285
>Status: =A0=A0
>
>
>Frotran,
>
>Not sure if this should go to you or not. If not, please forward it to the
>appropriate Dragon.
>
>I just got a decision about allowing the Dragons to offer Ultima IV as a
>free d/l (i.e. re-distributing the game on the CGW CD).
>
>Go for it (and kick ass on KickAss ;)
>
>Boomer

Fortran Dragon    | "There isn't enough darkness in the world
-=3D=3D{MDLAM}=3D=3D-  | to quench the light of one small candle."
Hidalgo Trading Company: http://www.ponyexpress.net/~xyzzy/index.html

xu4-1.0beta3-desktop.patch:

--- NEW FILE xu4-1.0beta3-desktop.patch ---
--- u4/u4.desktop~	2007-04-29 20:36:20.000000000 +0200
+++ u4/u4.desktop	2007-04-29 20:37:20.000000000 +0200
@@ -2,8 +2,8 @@
 Encoding=UTF-8
 Name=Ultima 4
 Comment=Ultima 4 (xu4)
-Exec=u4
+Exec=u4 -f
 Icon=u4.png
-Terminal=0
+Terminal=false
 Type=Application
-Categories=Application;Game;RolePlaying;
+Categories=Game;RolePlaying;

xu4-zipfile.patch:

--- NEW FILE xu4-zipfile.patch ---
diff -ur u4.orig/src/u4file.cpp u4/src/u4file.cpp
--- u4.orig/src/u4file.cpp	2004-11-29 06:38:26.000000000 +0100
+++ u4/src/u4file.cpp	2007-02-02 15:59:34.000000000 +0100
@@ -236,6 +236,9 @@
         if (!pathname.empty()) {
             /* original u4 zip is present */
             add(new U4ZipPackage(pathname, "ultima4/", false));
+            /* add twice as sometimes the zip contains an ultima4 dir
+               and sometimes not */
+            add(new U4ZipPackage(pathname, "", false));
         }
     }
 


--- NEW FILE xu4.autodlrc ---
[MESSAGELIST]
[MESSAGE]
	[TITLE]Please click 'Accept' to allow internet access.[/TITLE]
	[TEXT]XU4 is a remake of the computer game Ultima IV. This game requires the original Ultima IV datafiles, which can be freely downloaded from the internet but may not be (re)distributed.

Please click Accept to allow XU4 to access the internet to download the necessary datafiles.[/TEXT]
[/MESSAGE]
[MESSAGE]
	[TITLE]License Information[/TITLE]
	[TEXT]Ultima4 is released as Dragonware by Origin, this means that it may only be distributed by Ultima Dragons® through Ultima Dragons® websites.

For the original permission notice from Origin for this see:
http://martin.brenner.de/ultima/u4download.txt
or:
/usr/share/doc/xu4-1.1/u4download.txt[/TEXT]
[/MESSAGE]
[/MESSAGELIST]

[FILELIST]
[FILE]
	[FILENAME]ultima4.zip[/FILENAME]
	[MD5]5092e11579f2093bca2d67c1d1788c88[/MD5]
	[PATH]$HOME/.xu4[/PATH]
	[MIRRORS]
		[URL]http://martin.brenner.de/ultima/ultima4.zip[/URL]
		[URL]http://www.geocities.com/noble_tea/ultima4.zip[/URL]
	[/MIRRORS]
[/FILE]
[FILE]
	[FILENAME]u4upgrad.zip[/FILENAME]
	[MD5]4ce9c9cd9dab111275e0ebfde7a482c4[/MD5]
	[PATH]$HOME/.xu4[/PATH]
	[MIRRORS]
		[URL]http://www.moongates.com/u4/upgrade/files/u4upgrad.zip[/URL]
	[/MIRRORS]
[/FILE]
[/FILELIST]


--- NEW FILE xu4.sh ---
#!/bin/bash

set -e

if [ ! -f $HOME/.xu4/ultima4.zip -o \
     ! -f $HOME/.xu4/u4upgrad.zip ]; then
  if [ -f /usr/lib64/u4/xu4.autodlrc ]; then
    /usr/share/autodl/AutoDL.py /usr/lib64/u4/xu4.autodlrc
  else
    /usr/share/autodl/AutoDL.py /usr/lib/u4/xu4.autodlrc
  fi
fi

cd $HOME/.xu4
exec /usr/bin/u4.bin "$@"


--- NEW FILE xu4.spec ---
%define cvsdate 20070510

Name:           xu4
Version:        1.1
Release:        0.1.%{cvsdate}%{?dist}
Summary:        Ultima IV recreated
Group:          Amusements/Games
License:        GPL
URL:            http://xu4.sourceforge.net/
# This was generated as follows:
# cvs -d:pserver:anonymous at xu4.cvs.sourceforge.net:/cvsroot/xu4 login
# cvs -z3 -d:pserver:anonymous at xu4.cvs.sourceforge.net:/cvsroot/xu4 co -P u4
# rm -r `find u4 -name CVS`
# rm `find u4 -name .cvsignore`
# rm -r u4/vc6
# tar cvfz xu4-%{cvsdate}.tar.gz u4
Source0:        xu4-%{cvsdate}.tar.gz
Source1:        xu4.sh
Source2:        xu4.autodlrc
Source3:        u4download.txt
Patch0:         xu4-zipfile.patch
Patch1:         xu4-1.0beta3-desktop.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  SDL_mixer-devel libxml2-devel libpng-devel desktop-file-utils
Requires:       hicolor-icon-theme autodownloader

%description
XU4 is a remake of the computer game Ultima IV. This game requires the
original Ultima IV datafiles, which can be freely downloaded from the internet
but may not be (re)distributed. When you start xu4 for the first time it will
offer to download the datafiles for you.

XU4 isn't a new game based on the Ultima IV story -- it is a faithful
recreation of the old game, right up to the crappy graphics.  If you
are looking for a game with modern gameplay and graphics, this is not
it -- yet.  New features that improve the gameplay and keep with the
spirit of the original game will be added.


%prep
%setup -q -n u4
%patch0 -p1 -z .zipfile
%patch1 -p1 -z .desktop
if [ "%{_lib}" = "lib64" ]; then
  sed -i 's|/usr/lib|%{_libdir}|g' src/u4file.cpp
fi
cp %{SOURCE3} .


%build
pushd src
make DEBUGCXXFLAGS="$RPM_OPT_FLAGS" \
  bindir=%{_bindir} datadir=%{_datadir} libdir=%{_libdir}
popd


%install
rm -rf $RPM_BUILD_ROOT
pushd src
# Note: make install DESTDIR=$RPM_BUILD_ROOT, doesn't work
%{makeinstall}
find $RPM_BUILD_ROOT%{_libdir}/u4 -name '*.xml' -o -name '*.dtd'|xargs chmod -x
popd

# mv u4 to u4.bin and install our autodl wrapper script
mv $RPM_BUILD_ROOT%{_bindir}/u4 $RPM_BUILD_ROOT%{_bindir}/u4.bin
install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/u4
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/u4

# below is the desktop file and icon stuff.
desktop-file-install --vendor fedora            \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  --delete-original                             \
  $RPM_BUILD_ROOT%{_datadir}/applications/u4.desktop

mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps
mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/u4.png \
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps


%clean
rm -rf $RPM_BUILD_ROOT


%post
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :

%postun
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README doc/Algorithms.* doc/*FileFormats.txt
%doc doc/U4Notes.txt doc/tools.txt u4download.txt
%{_bindir}/u4*
%{_libdir}/u4
%{_datadir}/pixmaps/u4.bmp
%{_datadir}/applications/fedora-u4.desktop
%{_datadir}/icons/hicolor/64x64/apps/u4.png


%changelog
* Fri May 11 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 1.1-0.1.20070510
- Update to latest CVS, as this actually makes the game finishable
- Add missing BuildRequires: desktop-file-utils
- Add u4download.txt to the docs

* Thu Feb  1 2007 Hans de Goede <j.w.r.degoede at hhs.nl> 1.0-0.1.beta3
- Initial Fedora Extras package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/xu4/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	11 May 2007 21:15:02 -0000	1.1
+++ .cvsignore	12 May 2007 08:22:58 -0000	1.2
@@ -0,0 +1 @@
+xu4-20070510.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/xu4/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	11 May 2007 21:15:02 -0000	1.1
+++ sources	12 May 2007 08:22:58 -0000	1.2
@@ -0,0 +1 @@
+4f1d92d56268977346a48e0da26ec683  xu4-20070510.tar.gz




More information about the fedora-extras-commits mailing list