]> git.pld-linux.org Git - packages/enigma.git/blobdiff - enigma.spec
- added gettext patch (add external arg to allow gettext 0.20+)
[packages/enigma.git] / enigma.spec
index 2e51181bf41b09d50478d55bcaad786039148e5e..ede8b218d2e0e9320307fcf1ccd0aeee63768415 100644 (file)
@@ -1,20 +1,34 @@
 Summary:       Oxyd clone
 Summary:       Oxyd clone
-Summary(pl):   Klon gry Oxyd
+Summary(pl.UTF-8):     Klon gry Oxyd
 Name:          enigma
 Name:          enigma
-Version:       0.81
-Release:       1
-License:       GPL
+Version:       1.21
+Release:       2
+License:       GPL v2+
 Group:         X11/Applications/Games
 Group:         X11/Applications/Games
-Source0:       http://freesoftware.fsf.org/download/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: d200891cde56d9bdbac65aa65fb4aa34
-Source1:       %{name}.desktop
+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
+Patch3:                %{name}-gettext.patch
+URL:           http://www.nongnu.org/enigma/
+BuildRequires: SDL-devel >= 1.2.0
 BuildRequires: SDL_image-devel >= 1.2.0
 BuildRequires: SDL_image-devel >= 1.2.0
-BuildRequires: SDL_mixer-devel >= 1.2.0
-Buildrequires: SDL_ttf-devel
-BuildRequires: autoconf
+BuildRequires: SDL_mixer-devel >= 1.2.5
+BuildRequires: SDL_ttf-devel >= 2.0.6
+BuildRequires: autoconf >= 2.59
 BuildRequires: automake
 BuildRequires: automake
-BuildRequires: lua40-devel >= 4.0
-URL:           http://www.freesoftware.fsf.org/enigma/
+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)
 
 %description
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -25,63 +39,75 @@ 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...
 
 mazes, insurmountable obstacles and lots of hairy puzzles, blocking
 your direct way to the Oxyd stones...
 
-%description -l pl
-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.
-
-%description -l de
+%description -l de.UTF-8
 Bei Enigma handelt es sich um ein Remake des 1990 erschienen
 Bei Enigma handelt es sich um ein Remake des 1990 erschienen
-Spiele-Klassikers Oxyd. Das Ziel des Spiels ist schnell erklärt:
+Spiele-Klassikers Oxyd. Das Ziel des Spiels ist schnell erklärt:
 Versuchen Sie alle gleichfarbigen "Oxyd"-Steine in jeder Landschaft zu
 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...
+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.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
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 
 %build
-rm -f missing
-%{__aclocal}
-%{__autoheader}
+%{__gettextize}
+%{__aclocal} -I m4
 %{__autoconf}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %{__automake}
-%configure \
-       CXX="%{__cxx}"
+%configure
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/enigma/{fonts,sound,gfx,levels},%{_bindir},%{_mandir}/man6,%{_pixmapsdir},%{_applnkdir}/Games}
 
 
-install doc/enigma.6                   $RPM_BUILD_ROOT%{_mandir}/man6
-install src/enigma                     $RPM_BUILD_ROOT%{_bindir}
-install data/fonts/*.{png,txt,bmf}     $RPM_BUILD_ROOT%{_datadir}/enigma/fonts
-install data/gfx/*.png                 $RPM_BUILD_ROOT%{_datadir}/enigma/gfx
-install data/levels/*.{lua,png,txt}    $RPM_BUILD_ROOT%{_datadir}/enigma/levels
-install data/sound/*.{wav,s3m}         $RPM_BUILD_ROOT%{_datadir}/enigma/sound
-install data/*.lua                     $RPM_BUILD_ROOT%{_datadir}/enigma
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT{%{_libdir}/libenet.a,%{_includedir}/enet}
 
 
-install %{SOURCE1}             $RPM_BUILD_ROOT%{_applnkdir}/Games
-install etc/enigma.png         $RPM_BUILD_ROOT%{_pixmapsdir}
+# generic license texts
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/enigma/{COPYING,gpl.txt,lgpl.txt}
 
 
-rm -f doc/manual/{images,}/Makefile*
-rm -f doc/manual/enigma.texi
+%find_lang %{name} --all-name
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %defattr(644,root,root,755)
-%doc AUTHORS CHANGES ChangeLog NEWS README doc/{TODO,functions.*,manual}
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/enigma
 %{_datadir}/%{name}
 %{_datadir}/%{name}
-%{_mandir}/man6/*
-%{_pixmapsdir}/*
-%{_applnkdir}/Games/*
+%{_datadir}/appdata/enigma.appdata.xml
+%{_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
This page took 0.085882 seconds and 4 git commands to generate.