File gnome-2048.spec of Package gnome-2048
#
# spec file for package gnome-2048
#
# Copyright (c) 2015 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: gnome-2048
Version: 0.1.0~git.20150325
Release: 0
Summary: Sliding block puzzle game
License: GPL-3.0+
Group: Amusements/Games/Board/Puzzle
Url: https://wiki.gnome.org/Apps/2048
Source: %{name}-%{version}.tar.xz
BuildRequires: appstream-glib-devel
BuildRequires: gnome-common
BuildRequires: update-desktop-files
BuildRequires: vala >= 0.24.0
BuildRequires: perl(XML::Parser)
BuildRequires: pkgconfig(clutter-1.0) >= 1.12.0
BuildRequires: pkgconfig(clutter-gtk-1.0) >= 1.6.0
BuildRequires: pkgconfig(gee-0.8) >= 0.14.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.12.0
BuildRequires: pkgconfig(libgames-support) >= 0.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{glib2_gsettings_schema_requires}
%description
2048 is a single-player sliding block puzzle game, in which the
objective is to slide and merge same-numbered tiles on a grid to
reach higher numbers.
%lang_package
%prep
%setup -q
%build
if [ ! -e configure ]; then ./autogen.sh; fi
%configure
%install
%make_install
%suse_update_desktop_file org.gnome.gnome-2048 Games Amusement
%find_lang %{name}
%post
%{glib2_gsettings_schema_post}
%postun
%{glib2_gsettings_schema_postun}
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/gnome-2048
%dir %{_datadir}/appdata
%{_datadir}/appdata/org.gnome.gnome-2048.appdata.xml
%{_datadir}/applications/org.gnome.gnome-2048.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.2048.gschema.xml
%{_datadir}/icons/hicolor/*/apps/gnome-2048.*
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog