-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
4,233 additions
and
1,513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
The source code to Maelstrom 3.0 and higher has been released under | ||
the GNU General Public License which can be found in COPYING.GPL. | ||
|
||
The artwork and sounds used by Maelstrom are copyright Ambrosia Software | ||
(http://www.ambrosiasw.com) and may not be redistributed separately from | ||
the Maelstrom public GPL release. | ||
The artwork and animations in Maelstrom may be used under the terms | ||
of the Creative Commons Attribution 3.0 license (unported): | ||
http://creativecommons.org/licenses/by/3.0/legalcode | ||
|
||
The following files must accompany any distribution of Maeltrom 3.0: | ||
Ambrosia_Software,_Inc._FAQ | ||
MaelstromGPL_press_release | ||
They can be found in the Docs directory. | ||
|
||
Copying, modifying, bundling, and burning to new ROMs is encouraged! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# Note that this is NOT a relocatable package | ||
%define name Maelstrom | ||
%define version 3.0.6 | ||
%define release 1 | ||
%define prefix /usr | ||
|
||
Summary: Simple DirectMedia Layer | ||
Name: %{name} | ||
Version: %{version} | ||
Release: %{release} | ||
Source0: %{name}-%{version}.tar.gz | ||
URL: http://www.devolution.com/~slouken/Maelstrom/ | ||
Copyright: GPL | ||
Group: Games | ||
BuildRoot: /var/tmp/%{name}-buildroot | ||
|
||
%description | ||
Maelstrom is a rockin' asteroids game ported from the Macintosh | ||
Originally written by Andrew Welch of Ambrosia Software, and ported | ||
to UNIX and then SDL by Sam Lantinga <slouken@devolution.com> | ||
|
||
%prep | ||
rm -rf ${RPM_BUILD_ROOT} | ||
|
||
%setup -q | ||
|
||
%build | ||
# Needed for snapshot releases. | ||
if [ ! -f configure ]; then | ||
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix | ||
else | ||
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix | ||
fi | ||
|
||
if [ "$SMP" != "" ]; then | ||
(make "MAKE=make -k -j $SMP"; exit 0) | ||
make | ||
else | ||
make | ||
fi | ||
|
||
%install | ||
rm -rf $RPM_BUILD_ROOT | ||
make install prefix=$RPM_BUILD_ROOT/%{prefix} | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%post | ||
# Add desktop menu bar items | ||
function Add_DeskTop_MenuItem | ||
{ | ||
desktop=$1; deskfile=$2 | ||
if [ -d "$desktop" ]; then | ||
desktop="$desktop/Games" | ||
if [ ! -d "$desktop" ]; then | ||
mkdir "$desktop" 2>/dev/null | ||
fi | ||
if [ -w "$desktop" ]; then | ||
echo "Creating $desktop/$deskfile" | ||
cat >"$desktop/$deskfile" <<__EOF__ | ||
# KDE Config File | ||
[KDE Desktop Entry] | ||
Name=Maelstrom | ||
Comment=Maelstrom | ||
Exec=/usr/bin/Maelstrom | ||
Icon=/usr/games/Maelstrom/icon.xpm | ||
Terminal=0 | ||
Type=Application | ||
__EOF__ | ||
fi | ||
fi | ||
} | ||
echo "=============================================================" | ||
echo "Adding desktop menu items ..." | ||
for gnomedir in "/opt/gnome" "/usr/share/gnome" "$HOME/.gnome" | ||
do Add_DeskTop_MenuItem "$gnomedir/apps" "maelstrom.desktop" | ||
done | ||
for kdedir in "/opt/kde" "/usr/share/kde" "$HOME/.kde" | ||
do Add_DeskTop_MenuItem "$kdedir/share/applnk" "maelstrom.kdelnk" | ||
done | ||
|
||
%postun | ||
echo "=============================================================" | ||
echo "Removing desktop menu items ..." | ||
for gnomedir in "/opt/gnome" "/usr/share/gnome" "$HOME/.gnome" | ||
do rm -f "$gnomedir/apps/Games/maelstrom.desktop" | ||
done | ||
for kdedir in "/opt/kde" "/usr/share/kde" "$HOME/.kde" | ||
do rm -f "$kdedir/share/applnk/Games/maelstrom.kdelnk" | ||
done | ||
|
||
%files | ||
%defattr(-, root, root) | ||
%doc COPYING* CREDITS README* Changelog Docs | ||
%{prefix}/bin/Maelstrom | ||
%{prefix}/games/Maelstrom | ||
|
||
%changelog | ||
* Tue Sep 21 1999 Sam Lantinga <slouken@devolution.com> | ||
|
||
- first attempt at a spec file | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.