Summary: Oxyd clone
-Summary(pl): Klon gry Oxyd
+Summary(pl.UTF-8): Klon gry Oxyd
Name: enigma
-Version: 0.40a
+Version: 1.21
Release: 1
-License: GPL
+License: GPL v2+
Group: X11/Applications/Games
-Source0: http://freesoftware.fsf.org/download/enigma/%{name}-%{version}.tar.gz
-Source1: %{name}.desktop
-Source2: %{name}.png
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: lua-devel >= 4.0
-BuildRequires: SDL-devel >= 1.2
+Source0: http://downloads.sourceforge.net/enigma-game/%{name}-%{version}.tar.gz
+# Source0-md5: d2f4a099a704fdf7f12d024d2b7e6d1b
+Patch0: %{name}-desktop.patch
+Patch1: 0003-prevent-ImageMagick-inserting-timestamps-to-PNGs.patch
+Patch2: 0004-src-lev-Proxy.cc-fix-check-for-basic_ifstream-s-read.patch
+URL: http://www.nongnu.org/enigma/
+BuildRequires: SDL-devel >= 1.2.0
BuildRequires: SDL_image-devel >= 1.2.0
-BuildRequires: SDL_mixer-devel >= 1.2.0
-URL: http://www.freesoftware.fsf.org/enigma/
+BuildRequires: SDL_mixer-devel >= 1.2.5
+BuildRequires: SDL_ttf-devel >= 2.0.6
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake
+BuildRequires: curl-devel
+BuildRequires: gettext-tools
+BuildRequires: libpng-devel
+BuildRequires: libstdc++-devel
+BuildRequires: xerces-c-devel >= 2.4
+BuildRequires: zlib-devel
+Requires: SDL >= 1.2.0
+Requires: SDL_image >= 1.2.0
+Requires: SDL_mixer >= 1.2.5
+Requires: SDL_ttf >= 2.0.6
+Requires: xerces-c >= 2.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-%define _mandir %{_prefix}/man
-
%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...
+Enigma is a puzzle game inspired by Oxyd on the Atari ST and
+Rock'n'Roll on the Amiga: You control a small black marble and have to
+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 lots of hairy puzzles, blocking
+your direct way to the Oxyd stones...
-So far, Enigma implements about 80% of the game engine and a couple of
-simple objects, but a great deal is still missing. In particular, the
-game currently lacks game objects, graphics and sound effects, and,
-most importantly, the 200 levels that made Oxyd so entertaining.
+%description -l de.UTF-8
+Bei Enigma handelt es sich um ein Remake des 1990 erschienen
+Spiele-Klassikers Oxyd. Das Ziel des Spiels ist schnell erklärt:
+Versuchen Sie alle gleichfarbigen "Oxyd"-Steine in jeder Landschaft zu
+finden und aufzudecken. Hört sich einfach an? Wäre es vielleicht auch,
+würden nicht versteckte Fallen, gewaltige Irrgärten, scheinbar
+unüberwindliche Hindernisse und viele, viele Rätsel den direkten Weg
+zu den Steinen blockieren...
-%description -l pl
-Enigma jest ho³dem dla i reimplementacj± jednej z najoryginalniejszych
-i najbardziej intryguj±cych gier komputerowych lat
-dziewiêædziesi±tych, Oxyd. Zadanie jest proste: znajd¼ i odkryj
-wszystkie pary identycznych Oxydowych kamieni na ka¿dej planszy. Brzmi
-³atwo? Tak by by³o, gdyby nie ukryte pu³apki, obszerne labirynty,
-niepokonane przeszkody i niezliczone ³amig³ówki blokuj±ce drogê do
-Oxydowych kamieni...
-
-Jak na razie Enigma implementuje oko³o 80% silnika gry i kilka
-prostych obiektów, lecz wiele rzeczy jeszcze brakuje, szczególnie
-obiektów, grafiki, efektów d¼wiêkowych, i, co najwa¿niejsze, 200
-poziomów dziêki którym Oxyd by³ tak przyjemny.
+%description -l pl.UTF-8
+Enigma jest grą logiczną zainspirowaną przez Oxyd z Atari ST i
+Rock'n'Roll z Amigi. Kontroluje się małą czarną kulkę mając za zadanie
+odnaleźć i odkryć wszystkie pary identycznych kamieni Oxyd na każdej
+planszy. Proste? Było by, gdyby nie ukryte pułapki, przepastne
+labirynty, niepokonane przeszkody i mnóstwo włochatych zagadek
+blokujących drogę do kamieni Oxyd.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
-aclocal
-autoheader
+%{__gettextize}
+%{__aclocal}
+%{__autoheader}
%{__autoconf}
%{__automake}
-
-%configure \
- CXX="%{__cxx}"
+%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/enigma/{fonts,sound,gfx,levels},%{_bindir},%{_mandir}/man6,%{_pixmapsdir},%{_applnkdir}/Games}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT{%{_libdir}/libenet.a,%{_includedir}/enet}
-install enigma.6 $RPM_BUILD_ROOT%{_mandir}/man6
-install enigma $RPM_BUILD_ROOT%{_bindir}
-install fonts/*.{png,txt,bmf} $RPM_BUILD_ROOT%{_datadir}/enigma/fonts
-install gfx/*.png $RPM_BUILD_ROOT%{_datadir}/enigma/gfx
-install levels/*.{lua,png} $RPM_BUILD_ROOT%{_datadir}/enigma/levels
-install sound/*.{wav,s3m} $RPM_BUILD_ROOT%{_datadir}/enigma/sound
-install *.lua $RPM_BUILD_ROOT%{_datadir}/enigma
+# generic license texts
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/enigma/{COPYING,gpl.txt,lgpl.txt}
-install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Games
-install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+%find_lang %{name} --all-name
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS NEWS README TODO
-%attr(755,root,root) %{_bindir}/*
-%{_datadir}/enigma
-%{_mandir}/man6/*
-%{_pixmapsdir}/*
-%{_applnkdir}/Games/*
+%attr(755,root,root) %{_bindir}/enigma
+%{_datadir}/%{name}
+%{_desktopdir}/enigma.desktop
+%{_iconsdir}/hicolor/48x48/apps/enigma.png
+%{_pixmapsdir}/enigma.png
+%{_mandir}/man6/enigma.6*
+%dir %{_docdir}/enigma
+%{_docdir}/enigma/ACKNOWLEDGEMENTS
+%{_docdir}/enigma/CHANGES
+%{_docdir}/enigma/README
+%{_docdir}/enigma/index.html
+%{_docdir}/enigma/images
+%dir %{_docdir}/enigma/manual
+%{_docdir}/enigma/manual/enigma.html
+%lang(de) %{_docdir}/enigma/manual/enigma_de.html
+%lang(fr) %{_docdir}/enigma/manual/enigma_fr.html
+%lang(ru) %{_docdir}/enigma/manual/enigma_ru.html
+%{_docdir}/enigma/manual/images
+%{_docdir}/enigma/reference