1 |
Summary: Mind game - build molecules out of single atoms |
2 |
Name: atomix |
3 |
Version: 2.14.0 |
4 |
Release: %mkrel 13 |
5 |
License: GPLv2+ |
6 |
Group: Games/Puzzles |
7 |
URL: https://github.com/GNOME/atomix |
8 |
Source: https://download.gnome.org/sources/%{name}/%{name}-%{version}.tar.bz2 |
9 |
Patch0: atomix-2.14.0-lm.patch |
10 |
Patch1: atomix-2.14.0-fix-locales.patch |
11 |
Patch2: atomix-2.14.0-mga-deb-about.patch |
12 |
BuildRequires: pkgconfig(libgnomeui-2.0) |
13 |
BuildRequires: gettext-devel |
14 |
BuildRequires: intltool |
15 |
BuildRequires: perl(XML::Parser) |
16 |
BuildRequires: imagemagick |
17 |
BuildRequires: desktop-file-utils |
18 |
Requires(pre): rpm-helper |
19 |
|
20 |
%description |
21 |
Atomix is a little mind game where you have to build molecules out of |
22 |
single atoms. These are laying around between the walls and obstacles |
23 |
on the playfield. Once you have pushed an atom in one direction it |
24 |
moves until it hits an obstacle or another atom. It needs some thinking |
25 |
how to construct complex molecules with this atom behaviour. The game |
26 |
is inspired by the original Amiga version. |
27 |
|
28 |
%prep |
29 |
%setup -q |
30 |
%apply_patches |
31 |
|
32 |
#fix build with new automake |
33 |
sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -e 's,AM_PROG_CC_STDC,AC_PROG_CC,g' configure.* |
34 |
|
35 |
%build |
36 |
autoreconf -fi |
37 |
%configure2_5x --bindir=%{_gamesbindir} --localstatedir=%{_localstatedir}/lib |
38 |
%make |
39 |
|
40 |
%install |
41 |
rm -rf %{buildroot} |
42 |
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std \ |
43 |
bindir=%{_gamesbindir} \ |
44 |
localstatedir=%{_localstatedir}/lib |
45 |
|
46 |
|
47 |
desktop-file-install --vendor="" \ |
48 |
--remove-category="Application" \ |
49 |
--remove-category="PuzzleGame" \ |
50 |
--add-category="Game" \ |
51 |
--add-category="LogicGame" \ |
52 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/* |
53 |
|
54 |
mkdir -p %{buildroot}%{_miconsdir} \ |
55 |
%{buildroot}%{_iconsdir} \ |
56 |
%{buildroot}%{_liconsdir} |
57 |
convert -geometry 16x16 atomix-icon.png %{buildroot}%{_miconsdir}/%{name}.png |
58 |
install -D -m 644 atomix-icon.png %{buildroot}%{_iconsdir}/%{name}.png |
59 |
convert -geometry 48x48 atomix-icon.png %{buildroot}%{_liconsdir}/%{name}.png |
60 |
|
61 |
%find_lang %{name} |
62 |
|
63 |
%pre |
64 |
%create_ghostfile %{_localstatedir}/lib/games/atomix.scores root games 0664 |
65 |
|
66 |
%files -f %{name}.lang |
67 |
%doc README |
68 |
%attr(2511, root, games) %{_gamesbindir}/atomix |
69 |
%{_datadir}/%{name} |
70 |
%{_datadir}/applications/*.desktop |
71 |
%{_datadir}/gnome-2.0/ui/*.xml |
72 |
%{_datadir}/pixmaps/*.png |
73 |
%ghost %{_localstatedir}/lib/games/atomix.scores |
74 |
|
75 |
%{_iconsdir}/%{name}.png |
76 |
%{_miconsdir}/%{name}.png |
77 |
%{_liconsdir}/%{name}.png |