Name: atomix
Version: 2.14.0
Release: 2%{?dist}
Summary: Little mind game where you have to build molecules out of atoms lying around
Group: Amusements/Games
License: GPL
URL: http://ftp.gnome.org/pub/GNOME/sources/atomix/2.14/
# Old URL: http://www.informatik.uni-oldenburg.de/~pearl/gnome/atomix.html
# Official URL: http://www.gnome.org/projects/atomix (404 as of 09/2006)
Source0: http://ftp.gnome.org/pub/GNOME/sources/atomix/2.14/atomix-2.14.0.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext
BuildRequires: perl-XML-Parser
BuildRequires: desktop-file-utils
BuildRequires: libgnomeui-devel >= 2.0
%description
Atomix is yet another little mind game. You have to build molecules out of
single atoms laying around. Of course there is a time limit and the handling is
not as easy as you might expect ;-). This game is inspiried by the orignal
Amiga game Atomix and uses the GNOME librarys.
%prep
%setup -q
%build
%configure
# gnome bz#334319 -- translations don't get built; workaround that
sed -i 's!^SOURCES = !&\n'"$(grep "^CATALOGS" po/Makefile.in)"'!' po/Makefile
make %{?_smp_mflags}
%install
rm -rf ${RPM_BUILD_ROOT}
make install DESTDIR=${RPM_BUILD_ROOT}
%find_lang %{name}
# move scorefile to proper place
mkdir -p ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/
mv ${RPM_BUILD_ROOT}%{_localstatedir}/games ${RPM_BUILD_ROOT}%{_localstatedir}/lib/
desktop-file-install --vendor fedora \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--delete-original \
--add-category Application \
--add-category X-Fedora \
--add-category LogicGame \
--remove-category PuzzleGame \
--remove-category GNOME \
--remove-category GTK \
${RPM_BUILD_ROOT}%{_datadir}/applications/atomix.desktop
%clean
rm -rf ${RPM_BUILD_ROOT}
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README
%attr(2755,games,games) %{_bindir}/atomix
%{_datadir}/atomix
%{_datadir}/pixmaps/atomix-icon.png
%{_datadir}/gnome-2.0/ui/atomix-ui.xml
%{_datadir}/applications/fedora-atomix.desktop
%attr(0664,games,games) %{_localstatedir}/lib/games/atomix.scores
%changelog
* Sun Sep 03 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.14.0-2
- workaround gnome bz#334319 -- translations don't get built;
* Sat Sep 02 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.14.0-1
- initial creation