%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define gettext_package gnome-games %define glib2_version 2.24.0 %define pango_version 1.28.0 %define gtk2_version 2.20.0 %define libgnomeui_version 2.24.3 %define desktop_file_utils_version 0.2.90 %define gnome_python_desktop 2.30.0 %define gstreamer_version 0.10.3 Summary: GNOME games Summary(ja): GNOME ゲーム集 Name: gnome-games %define major 2.30 Version: %{major}.2 Release: 1%{_dist_release} License: GPLv2+ and GFDL+ Group: Applications/Games Source: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/%{major}/%{name}-%{version}.tar.bz2 Patch1: gnome-games-2.19.4-gnometris-rebrand.patch ## patch from FC-package Patch2: gnome-games-libs.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root Obsoletes: gnome gnome-games-devel URL: http://www.gnome.org Requires(post,postun): scrollkeeper >= 0.1.4 Requires(pre,post,preun): GConf2 Requires(post,preun): ggz-client-libs Requires: GConf2 Requires: pygtk2 Requires: gnome-python-desktop >= %{gnome_python_desktop} Requires: gnome-python-gnomeprint Requires: pygtkglext PyOpenGL Requires: gnuchess Requires: hicolor-icon-theme Requires: seed BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: pango-devel >= %{pango_version} BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: pygtk2-devel BuildRequires: pygtkglext-devel BuildRequires: gnome-python-desktop >= %{gnome_python_desktop} BuildRequires: libgnomeui-devel >= %{libgnomeui_version} BuildRequires: desktop-file-utils >= %{desktop_file_utils_version} BuildRequires: scrollkeeper BuildRequires: librsvg2-devel BuildRequires: guile-devel >= 1.6.5 BuildRequires: expat-devel BuildRequires: gstreamer-devel >= %{gstreamer_version} BuildRequires: clutter-devel, clutter-gtk-devel BuildRequires: libSM-devel BuildRequires: check-devel BuildRequires: libcanberra-devel BuildRequires: gobject-introspection-devel BuildRequires: gir-repository-devel BuildRequires: docbook-dtds # Newer than internal gettext needed BuildRequires: gettext # Needed by intltool BuildRequires: perl(XML::Parser) BuildRequires: autoconf >= 2.60 BuildRequires: gnome-doc-utils >= 0.3.2 BuildRequires: libggz-devel BuildRequires: ggz-client-libs-devel Provides: gnome-sudoku Obsoletes: gnome-sudoku Provides: glchess Obsoletes: glchess < 2.0 BuildRequires: gcc-c++ %description The gnome-games package includes some small games that come with the GNOME desktop environment but can be used under any desktop. %description -l ja gnome-games パッケージにはいくつかの小さなゲームが入っています。 これらは GNOME に由来するものですが、他のデスクトップ環境でも動きます。 %prep %setup -q # rebrand gnometris as some think the name is to similar to a trademark ## %patch1 -p1 -b .rebrand %patch2 -p1 -b .libs ## sed -i -e 's/Gnometris/GnomeFallingBlocks/g' \ ## -e 's/GNOMEtris/GnomeFallingBlocks/g' \ ## po/*.po gnometris/help/*/*.po gnometris/help/C/gnometris.xml \ ## gnometris/*.cpp gnometris/gnometris.desktop.in.in %build autoconf export CFLAGS="$RPM_OPT_FLAGS -DNO_HOWL" %configure --with-sound=gstreamer --localstatedir=/var/lib --disable-gnuchess make # strip unneeded translations from .mo files # ideally intltool (ha!) would do that for us # http://bugzilla.gnome.org/show_bug.cgi?id=474987 cd po grep -v ".*[.]desktop[.]in[.]in$\|.*[.]server[.]in[.]in$" POTFILES.in > POTFILES.keep mv POTFILES.keep POTFILES.in intltool-update --pot for p in *.po; do msgmerge $p %{gettext_package}.pot > $p.out msgfmt -o `basename $p .po`.gmo $p.out done %install rm -rf $RPM_BUILD_ROOT export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=$RPM_BUILD_ROOT unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL ## mv $RPM_BUILD_ROOT%{_bindir}/gnometris \ ## $RPM_BUILD_ROOT%{_bindir}/gnome-falling-blocks ## things we just don't want in the package rm -rf $RPM_BUILD_ROOT%{_libdir}/libgdkcardimage.*a rm -rf $RPM_BUILD_ROOT/var/lib/scrollkeeper ## install desktop files desktop-file-install --vendor gnome --delete-original \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --remove-category Application \ --remove-category PuzzleGame \ $RPM_BUILD_ROOT%{_datadir}/applications/* desktop-file-install --vendor gnome --delete-original \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-only-show-in GNOME \ $RPM_BUILD_ROOT%{_datadir}/applications/gnome-sol.desktop \ $RPM_BUILD_ROOT%{_datadir}/applications/gnome-freecell.desktop \ $RPM_BUILD_ROOT%{_datadir}/applications/gnome-glines.desktop \ $RPM_BUILD_ROOT%{_datadir}/applications/gnome-gnect.desktop perl -pi -e 's@@[Joe,Jim,James]@g' \ $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/gtali.schemas # we need this in %%post ## cp gnect/data/gnect-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz ## cp gnibbles/gnibbles-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz ## cp iagno/iagno-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz # but we don't want this rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules %find_lang %{gettext_package} --all-name --with-gnome %clean rm -rf $RPM_BUILD_ROOT %post scrollkeeper-update -q export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` (cd %{_sysconfdir}/gconf/schemas; \ gconftool-2 --makefile-install-rule \ aisleriot.schemas \ glchess.schemas \ glines.schemas \ gnect.schemas \ gnibbles.schemas \ gnobots2.schemas \ gnome-sudoku.schemas \ gnomine.schemas \ gnotravex.schemas \ gnotski.schemas \ gtali.schemas \ iagno.schemas \ lightsoff.schemas \ mahjongg.schemas \ quadrapassel.schemas \ swell-foop.schemas \ > /dev/null || : ) touch %{_datadir}/icons/hicolor if [ -x /usr/bin/gtk-update-icon-cache ]; then /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor fi ggz-config -i -f -m %{_datadir}/ggz/gnect-client.dsc >& /dev/null || : ggz-config -i -f -m %{_datadir}/ggz/gnibbles-client.dsc >& /dev/null || : ggz-config -i -f -m %{_datadir}/ggz/iagno-client.dsc >& /dev/null || : %pre if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` (cd %{_sysconfdir}/gconf/schemas; \ gconftool-2 --makefile-uninstall-rule \ aisleriot.schemas \ glchess.schemas \ glines.schemas \ gnect.schemas \ gnibbles.schemas \ gnobots2.schemas \ gnome-sudoku.schemas \ gnomine.schemas \ gnotravex.schemas \ gnotski.schemas \ gtali.schemas \ iagno.schemas \ lightsoff.schemas \ mahjongg.schemas \ quadrapassel.schemas \ swell-foop.schemas \ > /dev/null || : ) fi %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` (cd %{_sysconfdir}/gconf/schemas; \ gconftool-2 --makefile-uninstall-rule \ aisleriot.schemas \ glchess.schemas \ glines.schemas \ gnect.schemas \ gnibbles.schemas \ gnobots2.schemas \ gnome-sudoku.schemas \ gnomine.schemas \ gnotravex.schemas \ gnotski.schemas \ gtali.schemas \ iagno.schemas \ lightsoff.schemas \ mahjongg.schemas \ quadrapassel.schemas \ swell-foop.schemas \ > /dev/null || : ) ggz-config -r -m %{_datadir}/ggz/gnect-client.dsc >& /dev/null || : ggz-config -r -m %{_datadir}/ggz/gnibbles-client.dsc >& /dev/null || : ggz-config -r -m %{_datadir}/ggz/iagno-client.dsc >& /dev/null || : fi %postun scrollkeeper-update -q touch %{_datadir}/icons/hicolor if [ -x /usr/bin/gtk-update-icon-cache ]; then /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor fi %files -f %{gettext_package}.lang %defattr(-, root, root) %doc AUTHORS COPYING README %{_datadir}/applications/* %{_datadir}/gnome-games %{_datadir}/gnome-games-common %{_datadir}/glchess %{_datadir}/gnome-sudoku %{_datadir}/icons/hicolor/*/*/* %{_mandir}/man6/* %{_sysconfdir}/gconf/schemas/* %verify(not md5 size mtime) %config(noreplace) %attr(664, games, games) /var/lib/games/* %{_libdir}/gnome-games %{_libdir}/girepository-1.0/GnomeGamesSupport-1.0.typelib %{_datadir}/gir-1.0/GnomeGamesSupport-1.0.gir %{python_sitelib}/glchess %{python_sitelib}/gnome_sudoku # these are not setgid games %{_bindir}/gnect %{_bindir}/sol ## %{_bindir}blackjack %{_bindir}/glchess %{_bindir}/gnome-sudoku %{_bindir}/lightsoff %{_bindir}/swell-foop ## %{_datadir}/ggz # these are setgid games %attr(2551, root, games) %{_bindir}/gnomine %attr(2551, root, games) %{_bindir}/mahjongg %attr(2551, root, games) %{_bindir}/gtali %attr(2551, root, games) %{_bindir}/gnobots2 %attr(2551, root, games) %{_bindir}/quadrapassel %attr(2551, root, games) %{_bindir}/gnotravex %attr(2551, root, games) %{_bindir}/gnotski %attr(2551, root, games) %{_bindir}/gnibbles %attr(2551, root, games) %{_bindir}/glines %attr(2551, root, games) %{_bindir}/iagno ## %attr(2551, root, games) %{_bindir}/same-gnome ## %attr(2551, root, games) %{_bindir}/gnome-falling-blocks %changelog * Sat Jun 26 2010 Yoji TOYODA 2.30.2-1 - new upstream release * Thu May 20 2010 Yoji TOYODA 2.30.1-2 - add BuildRequires: gobject-introspection-devel, gir-repository-devel - add Requires: seed - add Patch2(gnome-games-libs.patch) from FC package - remove configure option (--disable-introspection) * Sat May 01 2010 Yoji TOYODA 2.30.1-1 - new upstream release * Sun Apr 11 2010 Yoji TOYODA 2.30.0-1 - new upstream release - add BuildRequires: libcanberra-devel - drop Patch1 * Thu Feb 04 2010 Shu KONNO 2.28.2-2 - rebuilt with python-2.6.4-3 * Mon Dec 28 2009 Yoji TOYODA 2.28.2-1 - new upstream release - add BuildRequires: docbook-dtds * Fri Dec 4 2009 MATSUBAYASHI Kohji - 2.28.1-2 - add BuildRequires: clutter-gtk-devel * Tue Dec 01 2009 Takemikaduchi 2.28.1-1 - new upstream release - add BuildRequires: clutter-devel, libSM-devel, check-devel * Sat Jul 04 2009 Daisuke SUZUKI 2.26.3-1 - new upstream release * Thu May 28 2009 Daisuke SUZUKI 2.26.2-1 - new upstream release * Sat Apr 25 2009 Daisuke SUZUKI 2.26.1-1 - new upstream release * Mon Mar 23 2009 Daisuke SUZUKI 2.26.0-1 - new upstream release * Sat Jan 17 2009 Shu KONNO 2.24.1-3 - rebuilt (with guile-1.8.6) * Mon Jan 12 2009 Kazutaka HARADA 2.24.1-2 - rebuild with guile-1.8.6 * Wed Oct 28 2008 Daisuke SUZUKI 2.24.1-1 - new upstream release * Sat Sep 27 2008 Daisuke SUZUKI 2.24.0-1 - new upstream release * Sun Jul 20 2008 Shu KONNO 2.22.1.1-2vl5 - rebuilt with python-2.5.2 * Mon Apr 21 2008 Ryoichi INAGAKI 2.22.1.1-1vl5 - new upstream release - added Patch1 * Sat Jul 21 2007 Hans de Goede - 1:2.19.4-3 - Rename / rebrand Gnometris to GnomeFallingBlocks, so that it stays clear of the Tetris trademark, and include it (bz 238651) * Mon Dec 18 2006 KAZUKI SHIMURA 2.14.13-0vl2 - add BuildRequires: librsvg2-devel * Sat Sep 2 2006 Ryoichi INAGAKI 2.14.3-0vl1 - new upstream release - changed Group to Applications/Games * Fri Apr 14 2006 Daisuke SUZUKI 2.14.1-0vl1 - new upstream release * Tue Mar 07 2006 Daisuke SUZUKI 2.13.8-0vl1 - new upstream release * Sat Oct 08 2005 Daisuke SUZUKI 2.12.1-0vl1 - new upstream release * Mon Sep 19 2005 Daisuke SUZUKI 2.12.0-0vl2 - fixed gtali schemas * Mon Sep 19 2005 Daisuke SUZUKI 2.12.0-0vl1 - new upstream release * Mon Mar 28 2005 Daisuke SUZUKI 2.10.0-0vl1 - new upstream release * Thu Nov 11 2004 Daisuke SUZUKI 2.8.1-0vl1 - new upstream release * Wed Sep 29 2004 NISHIMURA Daisuke 2.6.2-0vl1 - new upstream release - Patch: fix the bug which leads to failure in starting Freecell from menu. - add Japanese description - correct License - add docs - add missing BuildRequires: gcc-c++ - disable libtoolize: version mismatch is bad - Patch1: Fix typo, causing gconf warning at %%post * Sun Feb 1 2004 Daisuke SUZUKI 2.4.2-0vl2 - fix kanji code in spec file. * Sat Jan 31 2004 Daisuke SUZUKI 2.4.2-0vl1 - new upstream release * Thu Sep 11 2003 Daisuke SUZUKI 2.4.0-0vl1 - new upstream release * Thu Sep 04 2003 Daisuke SUZUKI 2.3.90-0vl2 - add missing files * Thu Sep 04 2003 Daisuke SUZUKI 2.3.90-0vl1 - new upstream release * Sat Feb 22 2003 Daisuke SUZUKI 2.2.0-0vl2 - rebuild with new guile * Tue Jan 21 2003 Daisuke SUZUKI 2.2.0-0vl1 - new upstream release * Sat Jan 4 2003 Daisuke SUZUKI 2.1.5-0vl1 - new upstream release * Thu Dec 26 2002 Daisuke SUZUKI 2.1.4-0vl1 - new upstream release - build for Vine Linux * Tue Aug 13 2002 Havoc Pennington - add some OnlyShowIn * Mon Aug 12 2002 Havoc Pennington - 2.0.3 from gnome 2.0.1 * Tue Aug 6 2002 Havoc Pennington - 2.0.2 * Tue Jul 23 2002 Havoc Pennington - gnect doesn't like being setgid games - obsolete gnome-games-devel * Fri Jul 12 2002 Havoc Pennington - add gnect * Fri Jun 21 2002 Tim Powers - automated rebuild * Sun Jun 16 2002 Havoc Pennington - 2.0.0 - remove noreplace from the .soundlist files - add missing schemas - get rid of gnometris again - use desktop-file-install * Fri Jun 07 2002 Havoc Pennington - rebuild in different environment * Wed Jun 5 2002 Havoc Pennington - 1.93.0 - remove empty NEWS/README - fix ldconfig in post * Sun May 26 2002 Tim Powers - automated rebuild * Tue May 21 2002 Havoc Pennington - rebuild in different environment * Tue May 21 2002 Havoc Pennington - 1.92.0 * Fri May 3 2002 Havoc Pennington - 1.91.0 * Fri Apr 19 2002 Havoc Pennington - GNOME 2 version - spec file cleanups - no devel package - don't run auto*, just use the "rm from buildroot" approach to lose xbill * Tue Apr 09 2002 Phil Knirsch - Bumped version number for rebuild and relink agains new guile lib * Tue Aug 14 2001 Jonathan Blandford - Add BuildRequires on ncurses-devel * Mon Jul 23 2001 Jonathan Blandford - Add BuildRequires * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Fri Apr 20 2001 - New version (1.4.0) * Tue Apr 17 2001 Jonathan Blandford - New Version. * Tue Feb 27 2001 Trond Eivind Glomsr藷? - use %%{_tmppath} - langify * Mon Aug 21 2000 Nalin Dahyabhai - run ldconfig in post and postun (#16589) - don't put the post and postun scripts in the middle of the files list -- that tends to break things (oops) * Fri Aug 11 2000 Jonathan Blandford - Up Epoch and release * Fri Aug 04 2000 Havoc Pennington - Remove .desktop for gturing * Mon Jul 17 2000 Jonathan Blandford - Mark high-score files as %config(noreplace). * Thu Jul 13 2000 Prospector - automatic rebuild * Tue Jul 11 2000 Nalin Dahyabhai - rebuild in new environment * Sat Jul 8 2000 Havoc Pennington - Remove Docdir * Tue Jul 03 2000 Nalin Dahyabhai - rebuild in new environment * Thu Jun 15 2000 Owen Taylor - 1.2.0 - remove gnometris, xbill from subdirs since we don't install them and they cause problems with new C compiler - update autoconf stuff - remove gturing, add gnotski to the file list * Thu May 11 2000 Matt Wilson - 1.1.90 * Thu Feb 10 2000 Preston Brown - mark sound event files as config files * Tue Sep 21 1999 Michael Fulbright - fixed gnotravex to not loop infinitely * Mon Sep 20 1999 Elliot Lee - Update to 1.0.40 * Sat Apr 10 1999 Jonathan Blandford - added new sol games and a fix for the old ones. * Mon Mar 29 1999 Michael Fulbright - removed more offending t*tris stuff * Thu Mar 18 1999 Michael Fulbright - version 1.0.2 - made gnibbles have correct attr since its setgid - strip binaries * Sun Mar 14 1999 Michael Fulbright - added score files to file list * Thu Mar 04 1999 Michael Fulbright - Version 1.0.1 * Fri Feb 19 1999 Michael Fulbright - removed *tris games * Mon Feb 15 1999 Michael Fulbright - version 0.99.8 - added sound event lists to file list - touched up file list some more * Wed Feb 03 1999 Michael Fulbright - added gnibbles data to file list * Wed Feb 03 1999 Michael Fulbright - updated to 0.99.7 * Wed Feb 03 1999 Michael Fulbright - updated to 0.99.5 * Mon Jan 18 1999 Michael Fulbright - updated to 0.99.3 * Wed Jan 06 1999 Michael Fulbright - updated to 0.99.1 * Thu Dec 16 1998 Michael Fulbright - updated to 0.99.0 in prep for GNOME 1.0 * Sat Nov 21 1998 Michael Fulbright - updated for 0.30 tree * Fri Nov 20 1998 Pablo Saratxaga - use --localstatedir=/var/lib in config state (score files for games for exemple will go there). * Mon Mar 16 1998 Marc Ewing - Integrate into gnome-games CVS source tree