LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File freegish.spec of Package freegish (Project games)

# spec file for package freegish
# Copyright (c) 2011 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

%define gituser FrozenCow
%define gitname gish
%define gitversion 1.53
%define gitrev 145
%define gitcommit b0e9f7d

Name:           freegish
Version:        %{gitversion}.%{gitrev}
Release:        0
License:        GPL-2.0+
Summary:        Sticky and slick logic game
Url:            http://www.chroniclogic.com/gish.htm
Group:          Amusements/Games/Logic
Source0:        %{gituser}-%{gitname}-v%{gitversion}-%{gitrev}-g%{gitcommit}.tar.bz2
Source1:        %{name}.png
# PATCH-FIX-OPENSUSE freegish-v1.53-140-user_data_path.patch adam@mizerski.pl -- Store user data in ~/.freegish (instead of ~/.gish)
Patch0:         %{name}-v1.53-140-user_data_path.patch
# PATCH-FIX-OPENSUSE freegish-v1.53-140-Makefile_linux.patch adam@mizerski.pl -- Look for datafiles in /usr/share/freegish and use RPM_OPT_FLAGS for building
Patch1:         %{name}-v1.53-140-Makefile_linux.patch
# PATCH-FIX-UPSTREAM freegish-png14.patch
Patch2:         %{name}-png14.patch
BuildRequires:  Mesa-devel
%if 0%{?suse_version} > 1030
BuildRequires:  fdupes
BuildRequires:  libSDL-devel
BuildRequires:  libpng-devel
BuildRequires:  libvorbis-devel
BuildRequires:  openal-soft-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This is gish engine, which was released under GPL license (http://crypticsea.blogspot.com/2010/05/gish-open-source.html),  with free assests. It won't work with original ones.
It's not finished and may crash due to lack of some levels.

Available levels:
 - Sewer 1, 2, 3, 4, 5
 - Dragster 1
 - Duel 1, 2
 - Football 1
 - Sumo 1, 2

%setup0 -q -n %{gituser}-%{gitname}-%{gitcommit}
%patch0 -p1
%patch1 -p0
%patch2 -p1

make -f Makefile.linux %{?_smp_mflags}

install -D gish %{buildroot}%{_bindir}/%{name}
install -D -d %{buildroot}%{_datadir}/%{name}/
mv music/License.txt License_music.txt
cp -r animation gish.bmp level music sound texture texturesets tile01 tile02 tile03 %{buildroot}%{_datadir}/%{name}/
%if 0%{?suse_version} > 1030
%fdupes %{buildroot}%{_datadir}/%{name}/
ln -s freegish.lvl %{buildroot}%{_datadir}/%{name}/level/playroom.lvl
install -D %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%if 0%{?suse_version}
%suse_update_desktop_file -c %{name} %{name} "%{summary}" %{name} %{name} Game LogicGame

%doc COPYING.txt License.txt License_music.txt