Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > c70f15cdaab5779e4a874c7dbf9a78ac > files > 10

Maelstrom-3.0.6-19.fc13.src.rpm

Name:			Maelstrom
Summary:		A space combat game
Version:		3.0.6
Release:		19%{?dist}
# See Maelstrom-Content-License.txt for details on the updated content licensing
License:		GPLv2+ and CC-BY
Group:			Amusements/Games
Source0:		http://www.devolution.com/~slouken/Maelstrom/src/Maelstrom-%{version}.tar.gz
Source1:		maelstrom.png
Source2:		Maelstrom.desktop
Source3:		Maelstrom-Content-License.txt
Patch0:			Maelstrom-3.0.6-setgid.patch
Patch1:			Maelstrom-3.0.6-gcc34.patch
Patch2:			Maelstrom-3.0.6-64bit.patch
Patch3:			Maelstrom-3.0.6-install.patch
Patch4:			Maelstrom-open.patch
Patch5:			Maelstrom-3.0.6-DESTDIR.patch
URL:			http://www.devolution.com/~slouken/Maelstrom/
BuildRequires:		SDL_net-devel, desktop-file-utils, libtool
Requires(post):		coreutils
Requires(postun):	coreutils

%description
Maelstrom is a space combat game, originally ported from the Macintosh 
platform. Brave pilots get to dodge asteroids and fight off other ships 
at the same time.

%prep
%setup -q
%patch0 -p1 -b .setgid
%patch1 -p1 -b .gcc34
%patch2 -p1 -b .64bit
%patch3 -p1 -b .install
%patch4 -p1 -b .open
%patch5 -p1 -b .destdir
cp %{SOURCE3} .

%build
cp %{_datadir}/libtool/config/config.{sub,guess} .
%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --vendor fedora --dir \
	%{buildroot}%{_datadir}/applications \
	%{SOURCE2}

# remove unpackaged files from the buildroot
rm -f %{buildroot}%{_bindir}/{Maelstrom-netd,macres,playwave,snd2wav}

mkdir -p -m 755 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps

mkdir -p -m 755 %{buildroot}%{_localstatedir}/lib/games
mv %{buildroot}%{_datadir}/Maelstrom/*Scores %{buildroot}%{_localstatedir}/lib/games

find %{buildroot} -name "Makefile*" -exec rm -f {} \;

%clean
rm -rf %{buildroot}

%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
touch --no-create /usr/share/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
  gtk-update-icon-cache -q /usr/share/icons/hicolor
fi


%files
%defattr(-, root, root, -)
%doc COPYING* CREDITS README* Changelog Docs
%doc Maelstrom-Content-License.txt
%attr(2755,root,games) %{_bindir}/Maelstrom
%{_datadir}/Maelstrom
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/48x48/apps/*
%config(noreplace) %attr(0664,root,games) %{_localstatedir}/lib/games/Maelstrom-Scores

%changelog
* Sun Dec  6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 3.0.6-19
- Revived and cleaned up, license issues resolved

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.6-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Thu Dec 11 2008 Bill Nottingham <notting@redhat.com> 3.0.6-16
- fix requirements for scriptlets (#475922)

* Thu Feb 14 2008 Bill Nottingham <notting@redhat.com> 3.0.6-15
- rebuild for gcc-4.3

* Wed Oct 10 2007 Bill Nottingham <notting@redhat.com> 3.0.6-14
- rebuild for buildid

* Fri Aug  3 2007 Bill Nottingham <notting@redhat.com>
- tweak license tag

* Mon Sep 11 2006 Bill Nottingham <notting@redhat.com> 3.0.6-13
- fix build

* Fri Jun  2 2006 Bill Nottingham <notting@redhat.com> 3.0.6-12
- more fixes from review (#189375)

* Tue May  9 2006 Bill Nottingham <notting@redhat.com> 3.0.6-11
- various fixes from review:
  - update the icon cache
  - move out of /usr/games
  - move scores to /var
  - rework setuid code
  - use desktop-file-install
  
* Mon Feb 13 2006 Bill Nottingham <notting@redhat.com> 3.0.6-10
- rebuild

* Thu May 26 2005 Bill Nottingham <notting@redhat.com>
- fix x86_64 build

* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
- Add gcc34.patch

* Sun May 23 2004 Florian La Roche <Florian.LaRoche@redhat.de>
- make some files again owned by root

* Tue Mar 23 2004 Bill Nottingham <notting@redhat.com> 3.0.6-3
- make score file %%config (#108386)
- move icon (#111583)

* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Tue Sep 30 2003 Bill Nottingham <notting@redhat.com> 3.0.6-1
- tweak desktop file (#79668, #105792 <ville.skytta@iki.fi>)
- update to 3.0.6

* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt

* Tue Feb 18 2003 Bill Nottingham <notting@redhat.com> 3.0.5-8
- fix desktop (#81096)

* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt

* Thu Dec 12 2002 Tim Powers <timp@redhat.com> 3.0.5-6
- remove unpackaged files from the buildroot

* Fri Aug 23 2002 Tim Powers <timp@redhat.com>
- bump release number and rebuild

* Thu Aug 22 2002 Preston Brown <pbrown@redhat.com>
- set maelstrom to setgid and access high score file safely (#70768)
- BuildReq on SDL_net-devel (#69105)

* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
- rebuilt with gcc-3.2 (we hope)

* Tue Jul 23 2002 Tim Powers <timp@redhat.com> 3.0.5-2
- build using gcc-3.2-0.1

* Mon Jun 24 2002 Bill Nottingham <notting@redhat.com> 3.0.5-1
- update to 3.0.5

* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Thu May 23 2002 Tim Powers <timp@redhat.com>
- automated rebuild

* Fri Jan 25 2002 Bill Nottingham <notting@redhat.com>
- rebuild

* Wed Sep 12 2001 Tim Powers <timp@redhat.com>
- rebuild with new gcc and binutils

* Tue Jul 10 2001 Elliot Lee <sopwith@redhat.com>
- Rebuild to remove libXv/libXxf86dga deps

* Mon Jun 25 2001 Bill Nottingham <notting@redhat.com>
- add buildprereq (#44884)

* Tue Jun 12 2001 Nalin Dahyabhai <nalin@redhat.com>
- rebuild in new environment

* Mon May  7 2001 Bill Nottingham <notting@redhat.com>
- fix some prototypes in the network daemon
- rebuild against fixed SDL (#24119)

* Mon Apr 30 2001 Bill Nottingham <notting@redhat.com>
- use official tarball, fixes a minor /tmp issue (#38393)

* Fri Apr 27 2001 Bill Nottingham <notting@redhat.com>
- rebuild for C++ exception handling on ia64

* Mon Mar 12 2001 Bill Nottingham <notting@redhat.com>
- move desktop file to /etc/X11/applnk (#31492)

* Tue Feb 27 2001 Bill Nottingham <notting@redhat.com>
- fix Packager: tag

* Fri Dec  1 2000 Bill Nottingham <notting@redhat.com>
- Maelstrom is cool. Let's put it in the base distro.

* Mon Jul 24 2000 Prospector <prospector@redhat.com>
- rebuilt

* Mon Jul 10 2000 Tim Powers <timp@redhat.com>
- rebuilt

* Wed Jul 05 2000 Tim Powers <timp@redhat.com>
- cleaned up spec file, shoudln't try to install files in the post or preun
  sections
- use %%configure and %%makeinstall
- use predefined RPM macros whenever possible
- don't use redundant defines at top of spec
- patched to buld with gcc-2.96

* Mon Apr 24 2000 Tim Powers <timp@redhat.com>
- rebuilt for 7.0

* Tue Feb 08 2000 Tim Powers <timp@redhat.com>
- strip binaries

* Fri Jan 28 2000 Tim Powers <timp@redhat.com>
- changed to valid group

* Wed Dec  8 1999 Bill Nottingham <notting@redhat.com>
- don't echo in %%pre/%%post, don't add desktop entries to $HOME

* Tue Sep 21 1999 Sam Lantinga <slouken@devolution.com>

- first attempt at a spec file