Name: toppler Version: 1.1.3 Release: 3%{?dist} Summary: Platform game Group: Amusements/Games License: GPLv2+ URL: http://toppler.sf.net Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch1: toppler-1.1.3-fix_highscore_lockfile_creation.patch Patch2: toppler-1.1.3-move_hiscores_to_own_dir.patch Patch3: toppler-1.1.3-fix_czech_locale.patch Patch4: toppler-1.1.3-create_hiscores_file.patch Patch5: toppler-1.1.3-fix_buffer_overflow_leveleditor_help.patch BuildRequires: SDL-devel BuildRequires: SDL_mixer-devel BuildRequires: zlib-devel BuildRequires: gettext BuildRequires: desktop-file-utils %description Help a cute little green animal switch off some kind of "evil" mechanism. The "power off switch" is hidden somewhere in high towers. On your way to the target you need to avoid a lot of strange robots that guard the tower. %prep %setup -q %patch1 -p0 %patch2 -p0 %patch3 -p0 %patch4 -p0 %patch5 -p0 mv po/cz.po po/cs.po mv po/cz.gmo po/cs.gmo sed -i 's/cz/cs'/ po/LINGUAS for i in AUTHORS ChangeLog toppler.6; do { iconv -f iso8859-1 -t utf-8 $i > $i.utf8 && \ touch -r $i $i.utf8 && \ mv -f $i.utf8 $i; }; done; %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT desktop-file-install --remove-category="Application" \ --delete-original \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}/%{_datadir}/applications/toppler.desktop rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/toppler %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog README %attr(-,root,games) %{_bindir}/toppler %{_datadir}/toppler %{_datadir}/applications/toppler.desktop %{_datadir}/pixmaps/toppler.xpm %attr(0775,root,games) %dir %{_localstatedir}/games/toppler %ghost %{_localstatedir}/games/toppler/toppler.hsc %{_mandir}/man6/toppler.6.gz %changelog * Fri Oct 02 2009 Xavier Bachelot 1.1.3-3 - Fix License. - Fix buffer overflow in level editor. * Tue Sep 22 2009 Xavier Bachelot 1.1.3-2 - Fix Source0 URL. - Fix BuildRequires. - Keep timestamp on files encoding conversion. - Fix highscores directory ownership and mode. - Add patch to create highscores file if missing. - Ghost highscores file. * Sat Nov 29 2008 Xavier Bachelot 1.1.3-1 - Initial build.