Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
games
kiki
kiki.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kiki.spec of Package kiki
# # spec file for package kiki # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright Vincent Petry <PVince81@yahoo.fr> # # 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/ # Name: kiki Version: 1.0.2 Release: 0 Summary: The nano bot License: SUSE-Public-Domain Group: Amusements/Games/3D/Other Url: http://%{name}.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.tgz Source1: %{name}.desktop Source2: %{name}.png # PATCH-FIX-UPSTREAM Patches by Gentoo community kiki-1.0.2-gcc41.patch Patch0: kiki-1.0.2-gcc41.patch # PATCH-FIX-UPSTREAM Patches by Gentoo community kiki-1.0.2-freeglut.patch Patch1: kiki-1.0.2-freeglut.patch # PATCH-FIX-UPSTREAM Patches by Gentoo community kiki-1.0.2-gcc43.patch Patch2: kiki-1.0.2-gcc43.patch # PATCH-FIX-UPSTREAM kiki-1.0.2-fr-lang.patch Patch3: kiki-1.0.2-fr-lang.patch # PATCH-FIX-UPSTREAM Patches by Gentoo community kiki-1.0.2-build.patch Patch4: kiki-1.0.2-build.patch # PATCH-FIX-UPSTREAM kiki-1.0.2-64bit.patch Patch5: kiki-1.0.2-64bit.patch # PATCH-FIX-UPSTREAM Patches by Gentoo community kiki-1.0.2-gcc46.patch Patch6: kiki-1.0.2-gcc46.patch BuildRequires: dos2unix BuildRequires: freeglut-devel BuildRequires: gcc-c++ BuildRequires: libSDL-devel BuildRequires: libSDL_image-devel BuildRequires: libSDL_mixer-devel BuildRequires: python BuildRequires: python-devel BuildRequires: swig Requires: opengl-games-utils BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildRequires: update-desktop-files %endif %description Kiki the nano bot is a 3-D puzzle game, Basically a mixture of the games Sokoban and Kula-World. %prep %setup -q -n kiki %patch0 %patch1 %patch2 -p1 %patch3 %patch4 %patch5 -p1 # Fix permissions and end-of-line chars find py -type f -exec dos2unix \{\} \; -exec chmod 0644 \{\} \; find -name "*.txt" -type f -exec dos2unix \{\} \; -exec chmod 0644 \{\} \; # Need to change the end-of-line of the Makefile # else the sed command later will produce wrong results find . -name Makefile -exec dos2unix \{\} \; chmod 0644 *.txt sound/* dos2unix *.txt # Adapted from the Gentoo ebuild sed -i \ -e "s:kiki_home += \"/\";:kiki_home = \"%{_datadir}/%{name}/\";:g" \ -e "s:KConsole\:\:printf(\"WARNING \:\: environment variable KIKI_HOME not set ...\");::g" \ -e "s:KConsole\:\:printf(\" ... assuming resources in current directory\");::g" \ src/main/KikiController.cpp sed -i \ -e "/^PYTHON_VERSION/s/.*/PYTHON_VERSION=%{py_ver}/" \ -e "/^PYTHONHOME/s|.*|PYTHONHOME=%{py_libdir}|" \ -e '/lib-dynload/d' \ -e '/^PYTHONLIBS/s:\\:-lpython%{py_ver}:' \ linux/Makefile sed -i \ -e "/^CXXFLAGS/s:$:%{optflags}:" \ kodilib/linux/Makefile \ linux/Makefile %build # Adapter from the Gentoo ebuild # Bug 139570 cd SWIG swig -c++ -python -globals kiki -o KikiPy_wrap.cpp KikiPy.i cp -f kiki.py ../py cd .. patch -p0 < %{PATCH6} # Make kodilib cd kodilib/linux/ make %{?_smp_mflags} # Make kiki cd ../../linux/ make %{?_smp_mflags} cd .. %install install -D -d -m 755 %{buildroot}%{_bindir}/ install -D -m 755 linux/%{name} %{buildroot}%{_bindir}/ ln -s opengl-game-wrapper.sh %{buildroot}%{_bindir}/%{name}-wrapper export DATADIR="%{buildroot}%{_datadir}/%{name}" install -D -d -m 755 "$DATADIR/sound/" install -D -m 644 sound/* "$DATADIR/sound/" install -D -d -m 755 "$DATADIR/py/" install -D -d -m 755 "$DATADIR/py/levels" install -D -d -m 755 "$DATADIR/py/lang" cp -R py "$DATADIR/" find $DATADIR/py/ -type f -exec chmod -R 644 \{\} \; chmod 0755 $DATADIR/py/runkiki install -D -d -m 755 %{buildroot}%{_datadir}/applications/ install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop install -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png %if 0%{?suse_version} %suse_update_desktop_file %{name} %endif %files %defattr(-,root,root,-) %doc Readme.txt Thanks.txt %{_bindir}/%{name} %{_bindir}/%{name}-wrapper %dir %{_datadir}/%{name}/ %{_datadir}/%{name}/* %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor