-#
-# TODO:
-# - system libggz (http://www.ggzgamingzone.org/)
-# - pl summary and description for glchess subpackage
-#
Summary: GNOME games
Summary(es.UTF-8): Juegos de GNOME
Summary(fr.UTF-8): Jeux pour GNOME
Summary(uk.UTF-8): Ігри під GNOME
Summary(wa.UTF-8): Djeus po GNOME
Name: gnome-games
-Version: 2.18.0
+Version: 2.24.0
Release: 1
Epoch: 1
License: LGPL
Group: X11/Applications/Games
-Source0: http://ftp.gnome.org/pub/gnome/sources/gnome-games/2.18/%{name}-%{version}.tar.bz2
-# Source0-md5: ef00cec63ca8b4e328c1975377f98f11
+Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-games/2.24/%{name}-%{version}.tar.bz2
+# Source0-md5: 23bf4e795725a74ebb37daacda784adb
Patch0: %{name}-schemas.patch
-Patch1: %{name}-include.patch
-Patch2: %{name}-desktop.patch
URL: http://www.gnome.org/
-BuildRequires: GConf2-devel >= 2.18.0.1
+BuildRequires: GConf2-devel >= 2.22.0
BuildRequires: autoconf >= 2.53
BuildRequires: automake >= 1:1.9
-BuildRequires: avahi-glib-devel >= 0.6.15
BuildRequires: check >= 0.9.4
-BuildRequires: esound-devel
-BuildRequires: gnome-common >= 2.12.0
-BuildRequires: gnome-doc-utils >= 0.10.1
-BuildRequires: gnome-vfs2-devel >= 2.18.0.1
-BuildRequires: gtk+2-devel >= 2:2.10.10
+BuildRequires: gettext-devel
+BuildRequires: ggz-client-libs-devel >= 0.0.14
+BuildRequires: ggz-server-devel >= 0.0.14
+BuildRequires: gnome-common >= 2.20.0
+BuildRequires: gnome-doc-utils >= 0.12.0
+BuildRequires: gnome-vfs2-devel >= 2.22.0
+BuildRequires: gstreamer-devel >= 0.10.15
+BuildRequires: gtk+2-devel >= 2:2.12.9
BuildRequires: guile-devel >= 5:1.6.5
-BuildRequires: intltool >= 0.35.5
-BuildRequires: libglade2-devel >= 1:2.6.0
-BuildRequires: libgnomeui-devel >= 2.18.0
-BuildRequires: libltdl-devel
-BuildRequires: librsvg-devel >= 1:2.16.1
+BuildRequires: intltool >= 0.37.0
+BuildRequires: libgnomeui-devel >= 2.22.0
+BuildRequires: librsvg-devel >= 1:2.22.0
BuildRequires: libstdc++-devel
BuildRequires: libtool
-BuildRequires: libxml2-devel >= 1:2.6.27
-BuildRequires: pkgconfig
-BuildRequires: python-devel >= 2.4
-BuildRequires: python-gnome-desktop-devel >= 2.18.0
-BuildRequires: python-pygtk-devel >= 2:2.10.4
+BuildRequires: libxml2-devel >= 1:2.6.31
+BuildRequires: pkgconfig >= 1:0.15
+BuildRequires: python-devel >= 1:2.4
+BuildRequires: python-gnome-desktop-devel >= 2.22.0
+BuildRequires: python-pygtk-devel >= 2:2.12.0
+BuildRequires: rpmbuild(find_lang) >= 1.23
BuildRequires: rpmbuild(macros) >= 1.311
BuildRequires: scrollkeeper >= 0.3.8
+BuildRequires: sed >= 4.0
Requires(post,preun): GConf2
-Requires: gnome-vfs2 >= 2.18.0.1
+Requires: gnome-vfs2 >= 2.22.0
Requires: hicolor-icon-theme
-Requires: libgnomeui >= 2.18.0
-Requires: librsvg >= 1:2.16.1
+Requires: libgnomeui >= 2.22.0
+Requires: librsvg >= 1:2.22.0
Obsoletes: gnect
Obsoletes: gnome
Obsoletes: gnome-games-devel
Obsoletes: gnome-games-gataxx
Obsoletes: gnome-games-static
Obsoletes: gnome-games-stones
+# sr@Latn vs. sr@latin
+Conflicts: glibc-misc < 6:2.7
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _localstatedir /var
-%define _gnomehelpdir %{_datadir}/gnome/help
%define _gamesdir %{_localstatedir}/games
%description
%package glchess
Summary: GNOME glChess - a 2D/3D chess interface
+Summary(pl.UTF-8): GNOME glChess - dwu i trójwymiarowy interfejs do szachów
Group: X11/Applications/Games
Requires(post,postun): desktop-file-utils
Requires(post,postun): scrollkeeper
Requires(post,preun): GConf2
Requires: %{name} = %{epoch}:%{version}-%{release}
+Suggests: crafty
+Suggests: gnuchess
+Suggests: python-PyOpenGL
+Suggests: python-pygtkglext >= 1.1.0-2
Obsoletes: glchess
%description glchess
Communication Protocol (CECP) by Tim Mann. This means it can currently
use engines such as GNUChess, Sjeng, Faile, Amy, Crafty and Phalanx.
+%description glchess -l pl.UTF-8
+glChess to dwu i trójwymiarowa gra w szachy komunikująca się za pomocą
+protokołu CECP (Chess Engine Communication Protocol) Tima Manna.
+Oznacza to, że aktualnie może używać silników takich jak GNUChess,
+Sjeng, Faile, Amy, Crafty i Phalanx.
+
%package glines
Summary: Five or more game
Summary(pl.UTF-8): Gra "Pięć albo więcej"
Requires(post,postun): gtk+2
Requires(post,postun): scrollkeeper
Requires(post,preun): GConf2
+Requires(post,preun): ggz-client-libs
Requires: %{name} = %{epoch}:%{version}-%{release}
%description gnect
Requires(post,postun): gtk+2
Requires(post,postun): scrollkeeper
Requires(post,preun): GConf2
+Requires(post,preun): ggz-client-libs
Requires: %{name} = %{epoch}:%{version}-%{release}
%description gnibbles
Summary(pl.UTF-8): Prosty interfejs do grania, zapisywania, drukowania i rozwiązywania Sudoku
Group: X11/Applications/Games
Requires: %{name} = %{epoch}:%{version}-%{release}
-Requires: python-gnome-desktop-print >= 2.17.93
+Requires: python-gnome-desktop-print >= 2.22.0
Obsoletes: gnome-sudoku
%description sudoku
GNOME Sudoku dostarcza prosty interfejs do grania, zapisywania,
drukowania i rozwiązywania Sudoku.
+%package servers
+Summary: GGZ Gaming Zone servers for the GNOME games
+Summary(pl.UTF-8): Serwery GGZ Gaming Zone dla gier GNOME
+Group: Applications
+Requires: ggz-server >= 0.0.14
+
+%description servers
+GGZ Gaming Zone servers for the GNOME games.
+
+%description servers -l pl.UTF-8
+Serwery GGZ Gaming Zone dla gier GNOME.
+
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
-%patch2 -p1
%build
%{__glib_gettextize}
%{__intltoolize}
%{__libtoolize}
%{__aclocal} -I m4
-%{__autoheader}
%{__autoconf}
+%{__autoheader}
%{__automake}
%configure \
- --disable-bonjour \
- --disable-howl \
+ --enable-games=all \
+ --with-ggzd-confdir=%{_sysconfdir}/ggzd \
+ --with-sound=gstreamer \
--disable-scrollkeeper \
+ --disable-schemas-install \
--disable-static
+
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/ggz
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+ ggzserver_dscdir=%{_sysconfdir}/ggzd/games \
+ ggzroomdir=%{_sysconfdir}/ggzd/rooms
+
+install gnect/data/gnect-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz
+install gnibbles/gnibbles-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz
+install iagno/iagno-client.dsc $RPM_BUILD_ROOT%{_datadir}/ggz
-rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-stones/objects/lib*.la
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
%py_postclean
%find_lang %{name} --all-name
-%find_lang gnect --with-gnome
-%find_lang gnomine --with-gnome
-%find_lang same-gnome --with-gnome
-%find_lang mahjongg --with-gnome
-%find_lang glchess --with-gnome
-%find_lang gtali --with-gnome
-%find_lang gnome-sudoku --with-gnome
-%find_lang gnotravex --with-gnome
-%find_lang gnotski --with-gnome
-%find_lang glines --with-gnome
-%find_lang iagno --with-gnome
-%find_lang gnobots2 --with-gnome
-%find_lang gnibbles --with-gnome
-%find_lang gnometris --with-gnome
-%find_lang blackjack --with-gnome
-%find_lang aisleriot --with-gnome
+%find_lang gnect --with-gnome --with-omf
+%find_lang gnomine --with-gnome --with-omf
+%find_lang same-gnome --with-gnome --with-omf
+%find_lang mahjongg --with-gnome --with-omf
+%find_lang glchess --with-gnome --with-omf
+%find_lang gtali --with-gnome --with-omf
+%find_lang gnome-sudoku --with-gnome --with-omf
+%find_lang gnotravex --with-gnome --with-omf
+%find_lang gnotski --with-gnome --with-omf
+%find_lang glines --with-gnome --with-omf
+%find_lang iagno --with-gnome --with-omf
+%find_lang gnobots2 --with-gnome --with-omf
+%find_lang gnibbles --with-gnome --with-omf
+%find_lang gnometris --with-gnome --with-omf
+%find_lang blackjack --with-gnome --with-omf
+%find_lang aisleriot --with-gnome --with-omf
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-%gconf_schema_install libgnomegames.schemas
-
-%preun
-%gconf_schema_uninstall libgnomegames.schemas
-
%post blackjack
%scrollkeeper_update_post
%gconf_schema_install blackjack.schemas
%gconf_schema_install gnect.schemas
%update_icon_cache hicolor
+/usr/bin/ggz-config -i -f -m %{_datadir}/ggz/gnect-client.dsc
+
%preun gnect
%gconf_schema_uninstall gnect.schemas
+if [ "$1" = "0" ]; then
+ /usr/bin/ggz-config -r -m %{_datadir}/ggz/gnect-client.dsc
+fi
+
%postun gnect
%scrollkeeper_update_postun
%update_icon_cache hicolor
fi
done
+/usr/bin/ggz-config -i -f -m %{_datadir}/ggz/gnibbles-client.dsc
+
%preun gnibbles
%gconf_schema_uninstall gnibbles.schemas
+if [ "$1" = "0" ]; then
+ /usr/bin/ggz-config -r -m %{_datadir}/ggz/gnibbles-client.dsc
+fi
+
%postun gnibbles
%scrollkeeper_update_postun
%update_icon_cache hicolor
%gconf_schema_install iagno.schemas
%update_icon_cache hicolor
+/usr/bin/ggz-config -i -f -m %{_datadir}/ggz/iagno-client.dsc
+
%preun iagno
%gconf_schema_uninstall iagno.schemas
+if [ "$1" = "0" ]; then
+ /usr/bin/ggz-config -r -m %{_datadir}/ggz/iagno-client.dsc
+fi
+
%postun iagno
%scrollkeeper_update_postun
%update_icon_cache hicolor
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
-%{_sysconfdir}/gconf/schemas/libgnomegames.schemas
+%dir %{_libdir}/%{name}
+%attr(755,root,root) %{_libdir}/%{name}/gnome-games-render-cards
%dir %{_datadir}/%{name}
-%dir %{_omf_dest_dir}/%{name}
-%{_pixmapsdir}/gnome-games-common
-%dir %{_pixmapsdir}/iagno
-%{_pixmapsdir}/iagno/classic.png
-%dir %{_datadir}/ggz
+%{_datadir}/%{name}/icons
+%{_datadir}/%{name}/sounds
+%{_datadir}/%{name}/pixmaps
+%{_datadir}/gnome-games-common
%{_datadir}/ggz/gnome-games
+%dir %{_omf_dest_dir}/%{name}
%files blackjack -f blackjack.lang
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/blackjack
%{_sysconfdir}/gconf/schemas/blackjack.schemas
-%{_datadir}/blackjack
+%{_datadir}/%{name}/blackjack
%{_desktopdir}/blackjack.desktop
-%{_omf_dest_dir}/%{name}/blackjack-C.omf
-%{_pixmapsdir}/blackjack
-%{_iconsdir}/hicolor/*/*/gnome-blackjack.png
+%{_iconsdir}/hicolor/*/*/gnome-blackjack.*
%files glchess -f glchess.lang
%defattr(644,root,root,755)
%{_desktopdir}/glchess.desktop
%{_datadir}/glchess
%{py_sitescriptdir}/glchess
-%{_pixmapsdir}/glchess.svg
%{_pixmapsdir}/glchess
-%dir %{_omf_dest_dir}/glchess
-%{_omf_dest_dir}/glchess/glchess-C.omf
+%{_iconsdir}/hicolor/*/*/gnome-glchess.*
%files glines -f glines.lang
%defattr(644,root,root,755)
%{_sysconfdir}/gconf/schemas/glines.schemas
%{_desktopdir}/glines.desktop
%{_pixmapsdir}/glines
-%{_iconsdir}/hicolor/*/*/gnome-five-or-more.png
-%dir %{_omf_dest_dir}/glines
-%{_omf_dest_dir}/glines/glines-C.omf
-%lang(fr) %{_omf_dest_dir}/glines/glines-fr.omf
-%lang(ru) %{_omf_dest_dir}/glines/glines-ru.omf
-%lang(sv) %{_omf_dest_dir}/glines/glines-sv.omf
+%{_iconsdir}/hicolor/*/*/gnome-glines.*
%attr(664,root,games) %ghost %{_localstatedir}/games/glines.*
%files gnect -f gnect.lang
%attr(755,root,games) %{_bindir}/gnect
%{_sysconfdir}/gconf/schemas/gnect.schemas
%{_datadir}/gnect
+%{_datadir}/ggz/gnect-client.dsc
%{_desktopdir}/gnect.desktop
%{_pixmapsdir}/gnect
-%{_iconsdir}/hicolor/*/*/gnome-four-in-a-row.png
-%dir %{_omf_dest_dir}/gnect
-%{_omf_dest_dir}/gnect/gnect-C.omf
-%lang(sv) %{_omf_dest_dir}/gnect/gnect-sv.omf
+%{_iconsdir}/hicolor/*/*/gnome-gnect.*
%files gnibbles -f gnibbles.lang
%defattr(644,root,root,755)
%attr(2755,root,games) %{_bindir}/gnibbles
%{_sysconfdir}/gconf/schemas/gnibbles.schemas
-%{_sysconfdir}/sound/events/gnibbles.soundlist
%{_datadir}/gnibbles
-%{_datadir}/sounds/gnibbles
+%{_datadir}/ggz/gnibbles-client.dsc
%{_desktopdir}/gnibbles.desktop
-%{_omf_dest_dir}/%{name}/gnibbles-C.omf
%{_pixmapsdir}/gnibbles
-%{_iconsdir}/hicolor/*/*/gnome-nibbles.*
+%{_iconsdir}/hicolor/*/*/gnome-gnibbles.*
%attr(664,root,games) %ghost %{_localstatedir}/games/gnibbles.*
%files gnobots2 -f gnobots2.lang
%defattr(644,root,root,755)
%attr(2755,root,games) %{_bindir}/gnobots2
%{_sysconfdir}/gconf/schemas/gnobots2.schemas
-%{_sysconfdir}/sound/events/gnobots2.soundlist
%{_datadir}/gnobots2
-%{_datadir}/sounds/gnobots2
%{_desktopdir}/gnobots2.desktop
-%{_omf_dest_dir}/%{name}/gnobots2-C.omf
-%lang(da) %{_omf_dest_dir}/%{name}/gnobots2-da.omf
-%lang(es) %{_omf_dest_dir}/%{name}/gnobots2-es.omf
-%lang(it) %{_omf_dest_dir}/%{name}/gnobots2-it.omf
%{_pixmapsdir}/gnobots2
%{_iconsdir}/hicolor/*/*/gnome-robots.*
%attr(664,root,games) %ghost %{_localstatedir}/games/gnobots2.*
%attr(2755,root,games) %{_bindir}/gnometris
%{_sysconfdir}/gconf/schemas/gnometris.schemas
%{_desktopdir}/gnometris.desktop
-%{_omf_dest_dir}/%{name}/gnometris-C.omf
%{_pixmapsdir}/gnometris
-%{_iconsdir}/hicolor/*/*/gnome-gnometris.png
-%{_datadir}/sounds/gnometris
+%{_iconsdir}/hicolor/*/*/gnome-gnometris.*
%attr(664,root,games) %ghost %{_localstatedir}/games/gnometris.*
%files gnomine -f gnomine.lang
%attr(2755,root,games) %{_bindir}/gnomine
%{_sysconfdir}/gconf/schemas/gnomine.schemas
%{_desktopdir}/gnomine.desktop
-%{_omf_dest_dir}/%{name}/gnomine-C.omf
%{_pixmapsdir}/gnomine
-%{_iconsdir}/hicolor/*/*/gnome-gnomine.*
+%{_iconsdir}/hicolor/*/*/gnome-mines.*
%attr(664,root,games) %ghost %{_localstatedir}/games/gnomine.*
%files gnotravex -f gnotravex.lang
%attr(2755,root,games) %{_bindir}/gnotravex
%{_sysconfdir}/gconf/schemas/gnotravex.schemas
%{_desktopdir}/gnotravex.desktop
-%{_omf_dest_dir}/%{name}/gnotravex-C.omf
%{_pixmapsdir}/gnotravex
-%{_iconsdir}/hicolor/*/*/gnome-tetravex.png
+%{_iconsdir}/hicolor/*/*/gnome-tetravex.*
%attr(664,root,games) %ghost %{_localstatedir}/games/gnotravex.*
%files gnotski -f gnotski.lang
%attr(2755,root,games) %{_bindir}/gnotski
%{_sysconfdir}/gconf/schemas/gnotski.schemas
%{_desktopdir}/gnotski.desktop
-%{_omf_dest_dir}/%{name}/gnotski-C.omf
-%{_pixmapsdir}/gnotski.svg
-%{_iconsdir}/hicolor/*/*/gnome-klotski.png
+%dir %{_datadir}/%{name}/gnotski
+%{_datadir}/%{name}/gnotski/gnotski.svg
+%{_iconsdir}/hicolor/*/*/gnome-klotski.*
%attr(664,root,games) %ghost %{_localstatedir}/games/gnotski.*
%files gtali -f gtali.lang
%attr(2755,root,games) %{_bindir}/gtali
%{_sysconfdir}/gconf/schemas/gtali.schemas
%{_desktopdir}/gtali.desktop
-%{_omf_dest_dir}/%{name}/gtali-C.omf
-%lang(da) %{_omf_dest_dir}/%{name}/gtali-da.omf
%{_pixmapsdir}/gtali
%{_iconsdir}/hicolor/*/*/gnome-tali.*
%attr(664,root,games) %ghost %{_localstatedir}/games/gtali.*
%files iagno -f iagno.lang
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/iagno
+%{_datadir}/ggz/iagno-client.dsc
%{_sysconfdir}/gconf/schemas/iagno.schemas
-%{_sysconfdir}/sound/events/iagno.soundlist
-%{_datadir}/sounds/iagno
%{_desktopdir}/iagno.desktop
-%{_omf_dest_dir}/%{name}/iagno-C.omf
%{_iconsdir}/hicolor/*/*/gnome-iagno.*
-%{_pixmapsdir}/iagno/woodtrim.png
+%{_pixmapsdir}/iagno
%files mahjongg -f mahjongg.lang
%defattr(644,root,root,755)
%attr(2755,root,games) %{_bindir}/mahjongg
%{_sysconfdir}/gconf/schemas/mahjongg.schemas
%{_desktopdir}/mahjongg.desktop
-%{_omf_dest_dir}/%{name}/mahjongg-C.omf
%{_pixmapsdir}/mahjongg
%{_iconsdir}/hicolor/*/*/gnome-mahjongg.png
%{_datadir}/%{name}/mahjongg
%{_sysconfdir}/gconf/schemas/same-gnome.schemas
%{_desktopdir}/same-gnome.desktop
%{_datadir}/%{name}/same-gnome
-%{_iconsdir}/hicolor/*/*/gnome-same-gnome.png
-%dir %{_omf_dest_dir}/same-gnome
-%{_omf_dest_dir}/same-gnome/same-gnome-C.omf
-%lang(ru) %{_omf_dest_dir}/same-gnome/same-gnome-ru.omf
-%lang(sv) %{_omf_dest_dir}/same-gnome/same-gnome-sv.omf
+%{_iconsdir}/hicolor/*/*/gnome-samegnome.*
%attr(664,root,games) %ghost %{_localstatedir}/games/same-gnome.*
%files sol -f aisleriot.lang
%defattr(644,root,root,755)
%attr(755,root,games) %{_bindir}/sol
%{_sysconfdir}/gconf/schemas/aisleriot.schemas
-%{_datadir}/sol-games
+%{_datadir}/%{name}/aisleriot
%{_desktopdir}/freecell.desktop
%{_desktopdir}/sol.desktop
-%{_omf_dest_dir}/%{name}/aisleriot-C.omf
-%lang(fr) %{_omf_dest_dir}/%{name}/aisleriot-fr.omf
-%{_pixmapsdir}/cards
-%{_iconsdir}/hicolor/*/*/gnome-aisleriot.png
-%{_iconsdir}/hicolor/*/*/gnome-freecell.png
+%{_iconsdir}/hicolor/*/*/gnome-aisleriot.*
+%{_iconsdir}/hicolor/*/*/gnome-freecell.*
%files sudoku -f gnome-sudoku.lang
%defattr(644,root,root,755)
%{py_sitescriptdir}/gnome_sudoku/gtk_goodies/*.py[co]
%{_datadir}/gnome-sudoku
%{_pixmapsdir}/gnome-sudoku
-%{_pixmapsdir}/sudoku.png
+%{_iconsdir}/hicolor/*/*/gnome-sudoku.*
+
+%files servers
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/ggz/gnectd
+%attr(755,root,root) %{_libdir}/ggz/gnibblesd
+%attr(755,root,root) %{_libdir}/ggz/iagnod
+%{_sysconfdir}/ggzd/games/gnect-server.dsc
+%{_sysconfdir}/ggzd/games/gnibbles-server.dsc
+%{_sysconfdir}/ggzd/games/iagno-server.dsc
+%{_sysconfdir}/ggzd/rooms/gnect.room
+%{_sysconfdir}/ggzd/rooms/gnibbles.room
+%{_sysconfdir}/ggzd/rooms/iagno.room