-Summary: GNOME games
-Summary(pl): GNOME - Gry
-Name: gnome-games
-Version: 0.30
-Release: 1
-Copyright: LGPL
-Group: X11/Libraries
-Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}-%{version}.tar.gz
-Icon: %{name}.gif
-Requires: gnome-libs >= %{version}
-URL: http://www.gnome.org
-BuildRoot: /tmp/%{name}-%{version}-root
-Obsoletes: gnome
+Summary: GNOME games
+Summary(es): Juegos de GNOME
+Summary(fr): Jeux pour GNOME
+Summary(pl): GNOME - Gry
+Summary(wa): Djeus po GNOME
+Name: gnome-games
+Version: 1.4.0.3
+Release: 1
+Epoch: 1
+License: LGPL
+Group: X11/Applications/Games
+Group(de): X11/Applikationen/Spiele
+Group(pl): X11/Aplikacje/Gry
+Source0: ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-games/%{name}-%{version}.tar.gz
+Patch0: %{name}-DESTDIR.patch
+Patch1: %{name}-scrollkeeper.patch
+Patch2: %{name}-ac_fix.patch
+Patch3: %{name}-pixbuf_cflags.patch
+Icon: gnome-games.gif
+BuildRequires: ORBit >= 0.4.3
+BuildRequires: audiofile-devel >= 0.1.5
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: esound-devel >= 0.2.7
+BuildRequires: gettext-devel
+BuildRequires: gnome-libs-devel >= 1.2.13
+BuildRequires: gtk+-devel >= 1.2.0
+BuildRequires: guile-devel >= 1.3
+BuildRequires: libtool
+BuildRequires: ncurses-devel >= 5.0
+BuildRequires: readline-devel
+BuildRequires: scrollkeeper
+Prereq: /sbin/ldconfig
+Prereq: scrollkeeper
+URL: http://www.gnome.org/
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes: gnome
+
+%define _prefix /usr/X11R6
+%define _sysconfdir /etc/X11/GNOME
+%define _localstatedir /var
+%define _omf_dest_dir %(scrollkeeper-config --omfdir)
%description
GNOME games.
-GNOME is the GNU Network Object Model Environment. That's a fancy
-name but really GNOME is a nice GUI desktop environment. It makes
-using your computer easy, powerful, and easy to configure.
+GNOME is the GNU Network Object Model Environment. That's a fancy name
+but really GNOME is a nice GUI desktop environment. It makes using
+your computer easy, powerful, and easy to configure.
%description -l pl
Gry pod GNOME.
%package devel
-Summary: GNOME games libraries - header files
-Summary(pl): Pliki nag³ówkowedo tworzenia programów opartych o GNOME games
-Group: X11/Libraries
-Requires: %{name} = %{version}
+Summary: GNOME games libraries - header files
+Summary(pl): Pliki nag³ówkowe do tworzenia programów opartych o GNOME games
+Group: X11/Development/Libraries
+Group(de): X11/Entwicklung/Libraries
+Group(pl): X11/Programowanie/Biblioteki
+Requires: %{name} = %{version}
+Requires: gtk+-devel
%description devel
GNOME games libraries - header files.
Right now this is just stuff to develop care games. I think.
-%description -l pl devel
-Pliki nag³ówkowedo tworzenia programów opartych o GNOME games.
+%description devel -l pl
+Pliki nag³ówkowe do tworzenia programów opartych o GNOME games.
%package static
-Summary: GNOME games static libraries
-Summary(pl): Biblioteki statyczne do GNOME games
-Group: X11/Libraries
-Requires: %{name}-devel = %{version}
+Summary: GNOME games static libraries
+Summary(pl): Biblioteki statyczne do GNOME games
+Group: X11/Development/Libraries
+Group(de): X11/Entwicklung/Libraries
+Group(pl): X11/Programowanie/Biblioteki
+Requires: %{name}-devel = %{version}
%description static
GNOME games static libraries.
-%description static
-Biblioteki statyczne do GNOME games
+%description static -l pl
+Biblioteki statyczne do GNOME games.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
-CFLAGS="$RPM_OPT_FLAGS" ./configure \
- --prefix=/usr/X11R6 \
- --localstatedir=/var
+rm -f missing
+libtoolize --copy --force
+gettextize --copy --force
+aclocal -I %{_aclocaldir}/gnome
+autoconf
+automake -a -c
+%configure
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make install \
- prefix=$RPM_BUILD_ROOT/usr/X11R6 \
- localstatedir=$RPM_BUILD_ROOT/var
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ Gamesdir=%{_applnkdir}/Games \
+ omf_dest_dir=%{_omf_dest_dir}/omf/%{name}
+
+gzip -9nf AUTHORS ChangeLog NEWS README
-strip $RPM_BUILD_ROOT/usr/X11R6/{bin/*,lib/lib*so.*.*}
+%find_lang %{name} --with-gnome --all-name
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+/usr/bin/scrollkeeper-update
+
+%postun
+/sbin/ldconfig
+/usr/bin/scrollkeeper-update
%clean
rm -rf $RPM_BUILD_ROOT
-%files
-%defattr(644, root, root, 755)
-%doc AUTHORS ChangeLog NEWS README
-%attr(2755, root, games) /usr/X11R6/bin/*
-%attr(0755, root, root) /usr/X11R6/lib/lib*.so.*.*
-/usr/X11R6/share/pixmaps/*
-/usr/X11R6/share/sol-games
-/usr/X11R6/share/apps/Games/*
-/usr/X11R6/share/gnome/help/*
-%lang(cs) /usr/X11R6/share/locale/cs/LC_MESSAGES/gnome-games.mo
-%lang(da) /usr/X11R6/share/locale/da/LC_MESSAGES/gnome-games.mo
-%lang(de) /usr/X11R6/share/locale/de/LC_MESSAGES/gnome-games.mo
-%lang(es) /usr/X11R6/share/locale/es/LC_MESSAGES/gnome-games.mo
-%lang(fr) /usr/X11R6/share/locale/fr/LC_MESSAGES/gnome-games.mo
-%lang(ga) /usr/X11R6/share/locale/ga/LC_MESSAGES/gnome-games.mo
-%lang(it) /usr/X11R6/share/locale/it/LC_MESSAGES/gnome-games.mo
-%lang(ja) /usr/X11R6/share/locale/ja/LC_MESSAGES/gnome-games.mo
-%lang(ko) /usr/X11R6/share/locale/ko/LC_MESSAGES/gnome-games.mo
-%lang(no) /usr/X11R6/share/locale/no/LC_MESSAGES/gnome-games.mo
-%lang(pt) /usr/X11R6/share/locale/pt/LC_MESSAGES/gnome-games.mo
-%attr(664, root, games) /var/games/*
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc *.gz
+%config %{_sysconfdir}/sound/events/*
+
+%attr(755,root,root) %{_bindir}/ctali
+%attr(755,root,root) %{_bindir}/freecell
+%attr(755,root,root) %{_bindir}/gataxx
+%attr(755,root,root) %{_bindir}/sol
+%attr(2755,root,games) %{_bindir}/glines
+%attr(2755,root,games) %{_bindir}/gnibbles
+%attr(2755,root,games) %{_bindir}/gnobots2
+%attr(2755,root,games) %{_bindir}/gnome-stones
+%attr(2755,root,games) %{_bindir}/gnome-xbill
+%attr(2755,root,games) %{_bindir}/gnometris
+%attr(2755,root,games) %{_bindir}/gnomine
+%attr(2755,root,games) %{_bindir}/gnotravex
+%attr(2755,root,games) %{_bindir}/gnotski
+%attr(2755,root,games) %{_bindir}/gtali
+%attr(2755,root,games) %{_bindir}/iagno
+%attr(2755,root,games) %{_bindir}/mahjongg
+%attr(2755,root,games) %{_bindir}/same-gnome
+
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%dir %{_libdir}/gnome-stones
+%dir %{_libdir}/gnome-stones/objects
+%attr(755,root,root) %{_libdir}/gnome-stones/objects/lib*.so*
+%attr(755,root,root) %{_libdir}/gnome-stones/objects/lib*.la
+
+%{_datadir}/gnibbles
+%{_datadir}/gnobots2
+%{_datadir}/gnome-stones
+%{_datadir}/sol-games
+%{_datadir}/xbill
+
+%{_datadir}/gnome-stonesrc
+%lang(ko) %{_datadir}/gnome-stonesrc.ko
+
+%{_datadir}/mime-info/*
+%{_pixmapsdir}/*
+%{_datadir}/sounds/*
+
+%{_applnkdir}/Games/*.desktop
+
+%{_omf_dest_dir}/omf/%{name}
+%attr(664,root,games) %ghost %{_localstatedir}/games/*
%files devel
-%defattr(644, root, root, 755)
-
-/usr/X11R6/lib/lib*.so
-/usr/X11R6/include/*
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.la
+%{_includedir}/*
%files static
-%attr(664, root, root) /usr/X11R6/lib/lib*.a
-
-%changelog
-* Fri Sep 18 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.27-3]
-- added package Icon,
-- changed prefix to /usr/X11R6.
-
-* Mon Aug 31 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [0.27-2]
-- added pl translation.
-
-* Mon Aug 24 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [0.27-1]
-- added -q %setup parameter,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- added using %%{name} and %%{version} in Source,
-- added static subpackage,
-- changed dependencies to "Requires: %%{name} = %%{version}" in devel
- subpackage,
-- added %post{un} with runing /sbin/ldconfig,
-- added "Requires: gnome-libs >= %%{version}" to main package,
-- added stripping shared libraries.
-
-* Mon Mar 16 1998 Marc Ewing <marc@redhat.com>
-- Integrate into gnome-games CVS source tree
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+%{_libdir}/gnome-stones/objects/lib*.a