Summary(pl): GNOME - Gry
Summary(wa): Djeus po GNOME
Name: gnome-games
-Version: 1.0.51
-Release: 3
-Copyright: LGPL
-Group: X11/GNOME
-Group(pl): X11/GNOME
-Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-games/%{name}-%{version}.tar.gz
-Patch: gnome-games-applnk.patch
+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: gnome-libs-devel >= 1.0.0
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: esound-devel >= 0.2.7
-BuildRequires: readline-devel
+BuildRequires: libtool
BuildRequires: ncurses-devel >= 5.0
+BuildRequires: readline-devel
+BuildRequires: scrollkeeper
+Prereq: /sbin/ldconfig
+Prereq: scrollkeeper
URL: http://www.gnome.org/
-BuildRoot: /tmp/%{name}-%{version}-root
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes: gnome
%define _prefix /usr/X11R6
%define _sysconfdir /etc/X11/GNOME
%define _localstatedir /var
-%define _applnkdir %{_datadir}/applnk
+%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/GNOME/Development/Libraries
-Group(pl): X11/GNOME/Programowanie/Biblioteki
+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
+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/GNOME/Development/Libraries
-Group(pl): X11/GNOME/Programowanie/Biblioteki
+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
-%patch -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
+rm -f missing
+libtoolize --copy --force
gettextize --copy --force
-automake
+aclocal -I %{_aclocaldir}/gnome
autoconf
-LDFLAGS="-s"; export LDFLAGS
-%configure
+automake -a -c
+%configure
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ Gamesdir=%{_applnkdir}/Games \
+ omf_dest_dir=%{_omf_dest_dir}/omf/%{name}
gzip -9nf AUTHORS ChangeLog NEWS README
-%find_lang %{name}
+%find_lang %{name} --with-gnome --all-name
+
+%post
+/sbin/ldconfig
+/usr/bin/scrollkeeper-update
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
+/usr/bin/scrollkeeper-update
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS.gz ChangeLog.gz NEWS.gz README.gz
-%config /etc/X11/GNOME/sound/events/*
+%doc *.gz
+%config %{_sysconfdir}/sound/events/*
-%attr(755,root,root) %{_bindir}/GnomeScott
%attr(755,root,root) %{_bindir}/ctali
%attr(755,root,root) %{_bindir}/freecell
%attr(755,root,root) %{_bindir}/gataxx
%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}/gturing
%attr(2755,root,games) %{_bindir}/iagno
%attr(2755,root,games) %{_bindir}/mahjongg
%attr(2755,root,games) %{_bindir}/same-gnome
%{_datadir}/gnibbles
%{_datadir}/gnobots2
%{_datadir}/gnome-stones
-%{_datadir}/gturing
%{_datadir}/sol-games
%{_datadir}/xbill
-%{_datadir}/mime-info/*
-%{_datadir}/pixmaps/*
-%{_datadir}/sounds/*
-
%{_datadir}/gnome-stonesrc
%lang(ko) %{_datadir}/gnome-stonesrc.ko
-%{_applnkdir}/Games/*.desktop
-
-%dir %{_datadir}/gnome/help/aisleriot
-%{_datadir}/gnome/help/aisleriot/C
-
-%dir %{_datadir}/gnome/help/gnobots2
-%{_datadir}/gnome/help/gnobots2/C
-%lang(es) %{_datadir}/gnome/help/gnobots2/es
-%lang(it) %{_datadir}/gnome/help/gnobots2/it
-
-%dir %{_datadir}/gnome/help/gtali
-%{_datadir}/gnome/help/gtali/C
-
-%dir %{_datadir}/gnome/help/gturing
-%{_datadir}/gnome/help/gturing/C
+%{_datadir}/mime-info/*
+%{_pixmapsdir}/*
+%{_datadir}/sounds/*
-%dir %{_datadir}/gnome/help/samegnome
-%{_datadir}/gnome/help/samegnome/C
+%{_applnkdir}/Games/*.desktop
-%attr(664,root,games) %{_localstatedir}/games/*
+%{_omf_dest_dir}/omf/%{name}
+%attr(664,root,games) %ghost %{_localstatedir}/games/*
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so
%attr(755,root,root) %{_libdir}/lib*.la
-%attr(755,root,root) %{_libdir}/gnome-stones/objects/lib*.so
%{_includedir}/*
%files static
-%defattr(664,root,root,755)
+%defattr(644,root,root,755)
%{_libdir}/lib*.a
%{_libdir}/gnome-stones/objects/lib*.a