| 1 |
Summary: Space combat game
|
| 2 |
Name: Maelstrom
|
| 3 |
Version: 3.0.6
|
| 4 |
Release: 18
|
| 5 |
License: GPLv2+
|
| 6 |
Group: Amusements/Games
|
| 7 |
Source0: http://www.devolution.com/~slouken/Maelstrom/src/Maelstrom-%{version}.tar.gz
|
| 8 |
Source1: maelstrom.png
|
| 9 |
Source2: Maelstrom.desktop
|
| 10 |
Patch0: Maelstrom-3.0.6-setgid.patch
|
| 11 |
Patch1: Maelstrom-3.0.6-gcc34.patch
|
| 12 |
Patch2: Maelstrom-3.0.6-64bit.patch
|
| 13 |
Patch3: Maelstrom-3.0.6-install.patch
|
| 14 |
Patch4: Maelstrom-open.patch
|
| 15 |
URL: http://www.devolution.com/~slouken/Maelstrom/
|
| 16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 17 |
BuildRequires: SDL_net-devel, desktop-file-utils, libtool
|
| 18 |
Requires(post): coreutils
|
| 19 |
Requires(postun): coreutils
|
| 20 |
|
| 21 |
%description
|
| 22 |
Maelstrom is a space combat game, originally ported from the Macintosh
|
| 23 |
platform. Brave pilots get to dodge asteroids and fight off other
|
| 24 |
ships at the same time.
|
| 25 |
|
| 26 |
%prep
|
| 27 |
|
| 28 |
%setup -q
|
| 29 |
%patch0 -p1 -b .setgid
|
| 30 |
%patch1 -p1 -b .gcc34
|
| 31 |
%patch2 -p1 -b .64bit
|
| 32 |
%patch3 -p1 -b .install
|
| 33 |
%patch4 -p1 -b .open
|
| 34 |
|
| 35 |
%build
|
| 36 |
cp /usr/share/libtool/config/config.{sub,guess} .
|
| 37 |
%configure
|
| 38 |
|
| 39 |
make %{?_smp_mflags}
|
| 40 |
|
| 41 |
%install
|
| 42 |
rm -rf $RPM_BUILD_ROOT
|
| 43 |
%makeinstall
|
| 44 |
|
| 45 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
|
| 46 |
|
| 47 |
desktop-file-install --vendor fedora --dir \
|
| 48 |
$RPM_BUILD_ROOT%{_datadir}/applications \
|
| 49 |
--add-category X-Fedora %{SOURCE2}
|
| 50 |
|
| 51 |
# remove unpackaged files from the buildroot
|
| 52 |
rm -f $RPM_BUILD_ROOT%{_bindir}/{Maelstrom-netd,macres,playwave,snd2wav}
|
| 53 |
|
| 54 |
mkdir -p -m 755 $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps
|
| 55 |
|
| 56 |
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps
|
| 57 |
|
| 58 |
mkdir -p -m 755 $RPM_BUILD_ROOT%{_localstatedir}/lib/games
|
| 59 |
mv $RPM_BUILD_ROOT%{_datadir}/Maelstrom/*Scores $RPM_BUILD_ROOT%{_localstatedir}/lib/games
|
| 60 |
|
| 61 |
find $RPM_BUILD_ROOT -name "Makefile*" -exec rm -f {} \;
|
| 62 |
|
| 63 |
%clean
|
| 64 |
rm -rf $RPM_BUILD_ROOT
|
| 65 |
|
| 66 |
%post
|
| 67 |
touch --no-create %{_datadir}/icons/hicolor || :
|
| 68 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
| 69 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
| 70 |
fi
|
| 71 |
|
| 72 |
%postun
|
| 73 |
touch --no-create /usr/share/icons/hicolor
|
| 74 |
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
| 75 |
gtk-update-icon-cache -q /usr/share/icons/hicolor
|
| 76 |
fi
|
| 77 |
|
| 78 |
|
| 79 |
%files
|
| 80 |
%defattr(-, root, root)
|
| 81 |
%doc COPYING* CREDITS README* Changelog Docs
|
| 82 |
%attr(2755,root,games) %{_bindir}/Maelstrom
|
| 83 |
%{_datadir}/Maelstrom
|
| 84 |
%{_datadir}/applications/*
|
| 85 |
%{_datadir}/icons/hicolor/48x48/apps/*
|
| 86 |
%config(noreplace) %attr(0664,root,games) %{_localstatedir}/lib/games/Maelstrom-Scores
|
| 87 |
|
| 88 |
%changelog
|
| 89 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6-18
|
| 90 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 91 |
|
| 92 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6-17
|
| 93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 94 |
|
| 95 |
* Thu Dec 11 2008 Bill Nottingham <notting@redhat.com> 3.0.6-16
|
| 96 |
- fix requirements for scriptlets (#475922)
|
| 97 |
|
| 98 |
* Thu Feb 14 2008 Bill Nottingham <notting@redhat.com> 3.0.6-15
|
| 99 |
- rebuild for gcc-4.3
|
| 100 |
|
| 101 |
* Wed Oct 10 2007 Bill Nottingham <notting@redhat.com> 3.0.6-14
|
| 102 |
- rebuild for buildid
|
| 103 |
|
| 104 |
* Fri Aug 3 2007 Bill Nottingham <notting@redhat.com>
|
| 105 |
- tweak license tag
|
| 106 |
|
| 107 |
* Mon Sep 11 2006 Bill Nottingham <notting@redhat.com> 3.0.6-13
|
| 108 |
- fix build
|
| 109 |
|
| 110 |
* Fri Jun 2 2006 Bill Nottingham <notting@redhat.com> 3.0.6-12
|
| 111 |
- more fixes from review (#189375)
|
| 112 |
|
| 113 |
* Tue May 9 2006 Bill Nottingham <notting@redhat.com> 3.0.6-11
|
| 114 |
- various fixes from review:
|
| 115 |
- update the icon cache
|
| 116 |
- move out of /usr/games
|
| 117 |
- move scores to /var
|
| 118 |
- rework setuid code
|
| 119 |
- use desktop-file-install
|
| 120 |
|
| 121 |
* Mon Feb 13 2006 Bill Nottingham <notting@redhat.com> 3.0.6-10
|
| 122 |
- rebuild
|
| 123 |
|
| 124 |
* Thu May 26 2005 Bill Nottingham <notting@redhat.com>
|
| 125 |
- fix x86_64 build
|
| 126 |
|
| 127 |
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
| 128 |
- rebuilt
|
| 129 |
- Add gcc34.patch
|
| 130 |
|
| 131 |
* Sun May 23 2004 Florian La Roche <Florian.LaRoche@redhat.de>
|
| 132 |
- make some files again owned by root
|
| 133 |
|
| 134 |
* Tue Mar 23 2004 Bill Nottingham <notting@redhat.com> 3.0.6-3
|
| 135 |
- make score file %config (#108386)
|
| 136 |
- move icon (#111583)
|
| 137 |
|
| 138 |
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
| 139 |
- rebuilt
|
| 140 |
|
| 141 |
* Tue Sep 30 2003 Bill Nottingham <notting@redhat.com> 3.0.6-1
|
| 142 |
- tweak desktop file (#79668, #105792 <ville.skytta@iki.fi>)
|
| 143 |
- update to 3.0.6
|
| 144 |
|
| 145 |
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
| 146 |
- rebuilt
|
| 147 |
|
| 148 |
* Tue Feb 18 2003 Bill Nottingham <notting@redhat.com> 3.0.5-8
|
| 149 |
- fix desktop (#81096)
|
| 150 |
|
| 151 |
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
| 152 |
- rebuilt
|
| 153 |
|
| 154 |
* Thu Dec 12 2002 Tim Powers <timp@redhat.com> 3.0.5-6
|
| 155 |
- remove unpackaged files from the buildroot
|
| 156 |
|
| 157 |
* Fri Aug 23 2002 Tim Powers <timp@redhat.com>
|
| 158 |
- bump release number and rebuild
|
| 159 |
|
| 160 |
* Thu Aug 22 2002 Preston Brown <pbrown@redhat.com>
|
| 161 |
- set maelstrom to setgid and access high score file safely (#70768)
|
| 162 |
- BuildReq on SDL_net-devel (#69105)
|
| 163 |
|
| 164 |
* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
|
| 165 |
- rebuilt with gcc-3.2 (we hope)
|
| 166 |
|
| 167 |
* Tue Jul 23 2002 Tim Powers <timp@redhat.com> 3.0.5-2
|
| 168 |
- build using gcc-3.2-0.1
|
| 169 |
|
| 170 |
* Mon Jun 24 2002 Bill Nottingham <notting@redhat.com> 3.0.5-1
|
| 171 |
- update to 3.0.5
|
| 172 |
|
| 173 |
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
| 174 |
- automated rebuild
|
| 175 |
|
| 176 |
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
| 177 |
- automated rebuild
|
| 178 |
|
| 179 |
* Fri Jan 25 2002 Bill Nottingham <notting@redhat.com>
|
| 180 |
- rebuild
|
| 181 |
|
| 182 |
* Wed Sep 12 2001 Tim Powers <timp@redhat.com>
|
| 183 |
- rebuild with new gcc and binutils
|
| 184 |
|
| 185 |
* Tue Jul 10 2001 Elliot Lee <sopwith@redhat.com>
|
| 186 |
- Rebuild to remove libXv/libXxf86dga deps
|
| 187 |
|
| 188 |
* Mon Jun 25 2001 Bill Nottingham <notting@redhat.com>
|
| 189 |
- add buildprereq (#44884)
|
| 190 |
|
| 191 |
* Tue Jun 12 2001 Nalin Dahyabhai <nalin@redhat.com>
|
| 192 |
- rebuild in new environment
|
| 193 |
|
| 194 |
* Mon May 7 2001 Bill Nottingham <notting@redhat.com>
|
| 195 |
- fix some prototypes in the network daemon
|
| 196 |
- rebuild against fixed SDL (#24119)
|
| 197 |
|
| 198 |
* Mon Apr 30 2001 Bill Nottingham <notting@redhat.com>
|
| 199 |
- use official tarball, fixes a minor /tmp issue (#38393)
|
| 200 |
|
| 201 |
* Fri Apr 27 2001 Bill Nottingham <notting@redhat.com>
|
| 202 |
- rebuild for C++ exception handling on ia64
|
| 203 |
|
| 204 |
* Mon Mar 12 2001 Bill Nottingham <notting@redhat.com>
|
| 205 |
- move desktop file to /etc/X11/applnk (#31492)
|
| 206 |
|
| 207 |
* Tue Feb 27 2001 Bill Nottingham <notting@redhat.com>
|
| 208 |
- fix Packager: tag
|
| 209 |
|
| 210 |
* Fri Dec 1 2000 Bill Nottingham <notting@redhat.com>
|
| 211 |
- Maelstrom is cool. Let's put it in the base distro.
|
| 212 |
|
| 213 |
* Mon Jul 24 2000 Prospector <prospector@redhat.com>
|
| 214 |
- rebuilt
|
| 215 |
|
| 216 |
* Mon Jul 10 2000 Tim Powers <timp@redhat.com>
|
| 217 |
- rebuilt
|
| 218 |
|
| 219 |
* Wed Jul 05 2000 Tim Powers <timp@redhat.com>
|
| 220 |
- cleaned up spec file, shoudln't try to install files in the post or preun
|
| 221 |
sections
|
| 222 |
- use %%configure and %%makeinstall
|
| 223 |
- use predefined RPM macros whenever possible
|
| 224 |
- don't use redundant defines at top of spec
|
| 225 |
- patched to buld with gcc-2.96
|
| 226 |
|
| 227 |
* Mon Apr 24 2000 Tim Powers <timp@redhat.com>
|
| 228 |
- rebuilt for 7.0
|
| 229 |
|
| 230 |
* Tue Feb 08 2000 Tim Powers <timp@redhat.com>
|
| 231 |
- strip binaries
|
| 232 |
|
| 233 |
* Fri Jan 28 2000 Tim Powers <timp@redhat.com>
|
| 234 |
- changed to valid group
|
| 235 |
|
| 236 |
* Wed Dec 8 1999 Bill Nottingham <notting@redhat.com>
|
| 237 |
- don't echo in %pre/%post, don't add desktop entries to $HOME
|
| 238 |
|
| 239 |
* Tue Sep 21 1999 Sam Lantinga <slouken@devolution.com>
|
| 240 |
|
| 241 |
- first attempt at a spec file
|
| 242 |
|