From e70c70b789fe896d2a65d94e569c62b63cb5424b Mon Sep 17 00:00:00 2001 From: Thorsten Leemhuis Date: Sep 17 2006 07:20:42 +0000 Subject: auto-import atomix-2.14.0-2 on branch devel from atomix-2.14.0-2.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..6f6e015 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +atomix-2.14.0.tar.bz2 diff --git a/atomix.spec b/atomix.spec new file mode 100644 index 0000000..72315e5 --- /dev/null +++ b/atomix.spec @@ -0,0 +1,77 @@ +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 - 2.14.0-2 +- workaround gnome bz#334319 -- translations don't get built; + +* Sat Sep 02 2006 Thorsten Leemhuis - 2.14.0-1 +- initial creation diff --git a/sources b/sources index e69de29..64eeeed 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +54f4b98463b57aebc7692d1b153791af atomix-2.14.0.tar.bz2