e70c70b
Name:           atomix
e70c70b
Version:        2.14.0
82ea181
Release:        6.1
cd8ea34
Summary:        Puzzle game: Build molecules out of isolated atoms
e70c70b
e70c70b
Group:          Amusements/Games
7320ce1
License:        GPLv2+
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
b4f01a5
not as easy as you might expect ;-). This game is inspired by the original
b4f01a5
Amiga game Atomix and uses the GNOME libraries.
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
82ea181
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.14.0-6.1
82ea181
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
82ea181
cd8ea34
* Thu Nov 20 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.14.0-5
cd8ea34
- Adjust summmary
cd8ea34
9312269
* Sat Feb 09 2008 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.14.0-4
9312269
- rebuilt
9312269
b4f01a5
* Fri Aug 10 2007 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.14.0-3
b4f01a5
- fix some misspelled words in description
b4f01a5
7320ce1
* Fri Aug 03 2007 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info>
7320ce1
- Update License field due to the "Licensing guidelines changes"
7320ce1
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