pingus/pingus.spec

107 lines
3.2 KiB
RPMSpec

Name: pingus
Version: 0.7.6
Release: 2mamba
Summary: A free Lemmings clone for GNU/Linux
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Tiziana Ferro <tiziana.ferro@email.it>
URL: http://pingus.seul.org/
Source: http://pingus.googlecode.com/files/pingus-%{version}.tar.bz2
Patch0: %{name}-0.7.2-gcc44.patch
Patch1: pingus-0.7.6-gcc-4.7.patch
License: GPL
## AUTOBUILDREQ-BEGIN
#BuildRequires: file /usr/lib/libboost_signals-mt.so is not owned by any package
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libpng-devel
BuildRequires: libSDL-devel
BuildRequires: libSDL_image-devel
BuildRequires: libSDL_mixer-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: libboost-devel
BuildRequires: scons
BuildRequires: libXi-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%description
Pingus is a free Lemmings clone for GNU/Linux. The player takes command in the game of a bunch of small animals and has to guide them around in levels. Since the animals walk on their own, the player can only influence them by giving them commands, like build a bridge, dig a hole or redirect all animals in the other direction. The goal of each level is to reach the exit, for fix multiple combination of commands are necessary.
%prep
%setup -q
#%patch0 -p1
%patch1 -p1
# note: it loads *.po files directly, no need to use msgfmt
mv -f data/po/sr{,@latin}.po
rm -f data/po/pingus.pot
%build
scons
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall PREFIX=%{_prefix}
# Create the system menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Pingus
Comment=A Lemmings clone
GenericName=A Lemmings clone
Comment[it]=Un clone di Lemmings
GenericName[it]=Un clone di Lemmings
Exec=pingus
Icon=tux
Terminal=0
Type=Application
Categories=KDE;Game;ArcadeGame;
EOF
mv %{buildroot}%{_mandir}/man1 %{buildroot}%{_mandir}/man6
#install -d %{buildroot}{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
#install %{name} %{buildroot}%{_bindir}
#cp -r data %{buildroot}%{_datadir}/%{name}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/pingus
%{_bindir}/pingus.bin
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/pingus/
%{_datadir}/pingus/*
%{_mandir}/man6/pingus.*
%doc AUTHORS COPYING
# ChangeLog NEWS README TODO
%changelog
* Sat Dec 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.6-2mamba
- libboost 1.52 mass rebuild
* Fri Jul 06 2012 Automatic Build System <autodist@mambasoft.it> 0.7.6-1mamba
- update to 0.7.6
* Tue Dec 14 2010 Automatic Build System <autodist@mambasoft.it> 0.7.2-4mamba
- automatic rebuild by autodist
* Sun Jun 13 2010 Automatic Build System <autodist@mambasoft.it> 0.7.2-3mamba
- automatic rebuild by autodist
* Thu Jun 04 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.2-2mamba
- rebuilt with libboost 1.39.0
* Sat May 03 2008 Tiziana Ferro <tiziana.ferro@email.it> 0.7.2-1mamba
- update to 0.7.2, switch from ClanLib to SDL
* Thu Aug 18 2005 Massimo Pintore <massimo.pintore@qilinux.it> 0.6.0-1qilnx
- first build