# # Fedora spec file for package funguloids # # Adapted from the openSUSE spec file and patches, which are: # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. Name: funguloids Version: 1.06 Release: 1%{?dist} Summary: Space-Flying-Mushroom-Picking-Simulator game License: zlib Group: Amusements/Games URL: http://funguloids.sourceforge.net Source0: http://downloads.sourceforge.net/%{name}/%{name}-linux-%{version}-4.tar.bz2 # From Debian, as the openSUSE srpm has v1.4, which lacks a clear license Source1: mpak.py # README.openSUSE modified for Fedora Source2: README.Fedora Source3: funguloids.desktop Source4: funguloids.png # Shamelessly borrowed from Debian Source5: funguloids.6 # All the below patches where taken from the openSUSE srpm # funguloids-ogre-1.6.patch has been extended with some bits from the more # complete ogre-1.6.1.patch from Debian Patch0: %{name}-size_chunks_reverse.patch Patch1: %{name}-alc_error.patch Patch2: %{name}-missing_includes.patch Patch3: %{name}-ogre-1.6.patch Patch4: %{name}-lua.patch Patch5: %{name}-destdir.patch Patch6: %{name}-honor_autotools_paths.patch Patch7: %{name}-strcmp.patch Patch8: %{name}-optional_cg.patch Patch9: %{name}-ogre-1.7.0.patch Patch10: %{name}-gcc47.patch BuildRequires: automake desktop-file-utils python BuildRequires: freealut-devel libvorbis-devel lua-devel BuildRequires: ogre-devel ois-devel openal-devel Requires: hicolor-icon-theme %description Never before has collecting mushrooms been this mildly entertaining. At least not in outer space. It's more of a lifestyle than a game, really. Now with graphics and sound, too! Seriously though, we like to think the game as a space-flying-mushroom-picking-simulator. Well no, "Those Funny Funguloids!" is actually a nice little piece of entertainment. You collect mushrooms, bring them back to your home base and profit! That's the basic idea in a nutshell. It has smooth, appealing 3d graphics and nice atmospheric sound effects. Go ahead and try it out - it has sounds too! %prep %setup -q -n %{name} %patch0 %patch1 %patch2 %patch3 %patch4 %patch5 %patch6 %patch7 %patch8 %patch9 %patch10 autoreconf -fi # docs fixup sed -i 's/\r$//' bin/docs/stylesheet.css sed -i 's/\r$//' README # mpk file fixup %{SOURCE1} -e -f bin/bootstrap.mpk -p _bootstrap %{SOURCE1} -e -f bin/funguloids.mpk -p _gamedata sed -ri '/^[A-Z]/ s/(.*)/overlay \1/' _bootstrap/*.overlay _gamedata/*.overlay sed -ri '/^[A-Z]/ s/(.*)/particle_system \1/' _gamedata/*.particle # This last one looks like a bug in ogre, should be removed when fixed # The problem is that green and blue mushrooms have a square instead of a glow sed -ri 's/^(\t\t\t)(texture_unit) 1/\1\2\n\1{\n\1}\n\1\2/' _gamedata/materials.material %{SOURCE1} -c -f bin/bootstrap.mpk _bootstrap/* %{SOURCE1} -c -f bin/funguloids.mpk _gamedata/* rm -rf _bootstrap _gamedata %build %configure --docdir=%{_docdir}/%{name}-%{version} --without-mad --without-fmod make %{?_smp_mflags} AM_LDFLAGS=-lboost_system-mt %install %make_install cp -p COPYING README %{SOURCE2} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE3} mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{48x48,256x256}/apps mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man6 %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files %doc %{_docdir}/%{name}-%{version} %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_mandir}/man6/%{name}.6* %changelog * Mon May 13 2013 Hans de Goede <hdegoede@redhat.com> - 1.06-1 - Initial Fedora package based on openSUSE pkg + some Debian bits