Blob Blame History Raw
Name:           enigma
Version:        0.81
Release:        3
Summary:        Clone of the ATARI game Oxyd

Group:          Amusements/Games
License:        GPL
URL:            http://www.nongnu.org/enigma/
Source0:        http://savannah.nongnu.org/download/enigma/enigma-%{version}.tar.gz
Patch:          enigma-0.81-gcc34.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  SDL-devel >= 1.2  SDL_image-devel >= 1.2 SDL_mixer-devel >= 1.2
BuildRequires:  desktop-file-utils zlib-devel >= 1.2.0 tetex >= 2.0.2

%description
Enigma is a tribute to and a re-implementation of one of the most
original and intriguing computer games of the 1990's: Oxyd.  Your
objective is easily explained: find and uncover all pairs of identical
Oxyd stones in each landscape.  Sounds simple?  It would be, if it
weren't for hidden traps, vast mazes, insurmountable obstacles and
innumerable puzzles blocking your direct way to the Oxyd stones...

%prep
%setup -q
%patch -p1 -b .gcc34

%build
%configure --enable-optimize
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall pngdir=${RPM_BUILD_ROOT}/%{_docdir}/enigma-%{version}/html/images htmldir=${RPM_BUILD_ROOT}/%{_docdir}/enigma-%{version}/html/ docdir=${RPM_BUILD_ROOT}/%{_docdir}/enigma-%{version}/html/reference
mv $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/html .

desktop-file-install \
  --delete-original                                        \
  --vendor fedora                                          \
  --dir ${RPM_BUILD_ROOT}%{_datadir}/applications            \
  --add-category "X-Fedora"                                 \
  $RPM_BUILD_ROOT%{_datadir}/applications/enigma.desktop


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README AUTHORS ChangeLog COPYING NEWS doc/TODO html/
%{_datadir}/enigma
%{_bindir}/enigma
%{_mandir}/man?/enigma.*
%{_datadir}/icons/hicolor/48x48/apps/enigma.png
%{_datadir}/pixmaps/enigma.png
%{_datadir}/applications/*enigma.desktop

%changelog
* Thu Nov 11 2004 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.81-3
- Fix a number of C++ issues for FC3/GCC 3.4.

* Fri Jun 11 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:0.81-0.fdr.2
- Build-Require zlib-devel, tetex
- Don't install INSTALL

* Wed Dec 24 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:0.81-0.fdr.1
- Initial RPM release based on spec-file in source
  package by Daniel Heck <dheck[AT]gmx.de>