pingus/pingus.spec

117 lines
3.6 KiB
RPMSpec

Name: pingus
Version: 0.7.6
Release: 3mamba
Summary: A free Lemmings clone for GNU/Linux
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pingus.seul.org/
Source: http://pingus.googlecode.com/files/pingus-%{version}.tar.bz2
Patch1: pingus-0.7.6-gcc-4.7.patch
Patch2: pingus-0.7.6-scons-4.7.0.patch
Patch3: pingus-0.7.6-boost-1.69.patch
Patch4: pingus-0.7.6-gcc-13.2.0.patch
Patch5: pingus-0.7.6-gcc-13.2.0-missing-header.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libSDL_image-devel
BuildRequires: libSDL_mixer-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libpng-devel
BuildRequires: libsdl12-compat-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: libboost-devel
BuildRequires: libXi-devel
BuildRequires: scons
%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.
%debug_package
%prep
%setup -q
%patch 1 -p1
%patch 2 -p1 -b .scons-4.7.0
%patch 3 -p0 -b .boost-1.69
%patch 4 -p1 -b .gcc-13.2.0
%patch 5 -p1 -b .gcc-13.2.0-missing-header
# 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=/usr/share/pingus/images/core/editor/actions.png
Terminal=0
Type=Application
Categories=Application;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
* Tue May 07 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.6-3mamba
- rebuilt with current libboost, patches added
* 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