File toppler.spec of Package toppler
Name: toppler
Version: 1.1.3
Release: 0
Summary: Reimplementation of the 1987 game Nebulous also known as Tower Toppler
License: GPLv2+
Group: Amusements/Games
URL: http://%{name}.sourceforge.net/
# http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-%{version}-rpmlintrc
Patch0: %{name}-%{version}-desktopfile.patch
Patch1: %{name}-%{version}-gcc43.patch
Patch2: %{name}-%{version}-build_system.patch
Patch3: %{name}-%{version}-buffer_overflow.patch
Patch4: %{name}-%{version}-french.patch
Patch5: %{name}-%{version}-lock_dir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: SDL_mixer-devel SDL-devel >= 1.2.0 gcc-c++ update-desktop-files
%description
In this game you have to 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.
That sounds all like a normal jump and run game. What makes this game different
is that you walk arond the tower which is revolving on the screen, so that you
only see the 180° that are currently visible.
The game is a reimplementation of the old game known as Tower Toppler or
Nebulus. It was available for PC, Atari, C64. The author was J.M.Phillips and
was published by Hewson software. I have seen the PC version on quite a few
abandonware sites. But it is only a DOS version and uses ugly graphics.
%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
iconv -f WINDOWS-1252 -t UTF-8 -o AUTHORS.UTF-8 AUTHORS && \
%{__mv} -f AUTHORS.UTF-8 AUTHORS
iconv -f WINDOWS-1252 -t UTF-8 -o ChangeLog.UTF-8 ChangeLog && \
%{__mv} -f ChangeLog.UTF-8 ChangeLog
iconv -f WINDOWS-1252 -t UTF-8 -o %{name}.6.UTF-8 %{name}.6 && \
%{__mv} -f %{name}.6.UTF-8 %{name}.6
sed -i '/^cz$/ s/cz/cs/' po/LINGUAS
%{__mv} -f po/cz.po po/cs.po
%build
%configure --bindir="%{_prefix}/games" --datadir="%{_datadir}/games" \
--docdir="%{_docdir}" --localstatedir="%{_localstatedir}/games"
%{__make} %{?jobs:-j%{jobs}}
%install
%{__make} DESTDIR="%{buildroot}" install
%find_lang %{name}
%suse_update_desktop_file %{name}
%clean
%{__rm} -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(0644, root, root, 0755)
# Empty file
%exclude %{_docdir}/%{name}/NEWS
%{_docdir}/%{name}
%attr(2755, root, games) %{_prefix}/games/%{name}
%{_datadir}/games/%{name}
%{_mandir}/man6/%{name}.6%{ext_man}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%dir %{_localstatedir}/games/%{name}
%config(noreplace) %verify(not size md5 mtime) %attr(0664, root, games) %{_localstatedir}/games/%{name}/%{name}.hsc
%changelog
* Tue May 27 2008 - cmorve69@yahoo.es
- initial package