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