File atomix.spec of Package atomix

#
# spec file for package atomix
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           atomix
Version:        3.20.0
Release:        0
Summary:        A puzzle game where you move atoms to build a molecule
License:        GPL-2.0+
Group:          Amusements/Games/Board/Other
Url:            https://wiki.gnome.org/Apps/Atomix
Source:         http://download.gnome.org/sources/atomix/3.20/%{name}-%{version}.tar.xz
BuildRequires:  intltool >= 0.40.0
BuildRequires:  pkgconfig(gdk-pixbuf-2.0) >= 2.0.5
BuildRequires:  pkgconfig(glib-2.0) >= 2.36.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.14.0
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
You start the game with the map filled with walls and a few atoms, which you can
move in any direction. However, the atoms won't stop until they hit a wall or
another atom.

You can see a preview of what molecule you have to build, and you have to do your
best to find where to build the molecule, and move the atoms there.

%lang_package

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%find_lang %{name}

%post
%icon_theme_cache_post

%postun
%icon_theme_cache_post

%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/
%dir %{_datadir}/appdata
%{_datadir}/appdata/atomix.appdata.xml
%{_datadir}/applications/atomix.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}*

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog