Blob Blame History Raw
%global icon_themes hicolor

Name:           gnome-2048
Version:        3.21.90
Release:        1%{?dist}
Summary:        A 2048 clone for GNOME

License:        GPLv3+
URL:            https://wiki.gnome.org/Apps/2048
Source0:        https://download.gnome.org/sources/gnome-2048/3.21/gnome-2048-%{version}.tar.xz


BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(clutter-1.0)
BuildRequires:  pkgconfig(clutter-gtk-1.0)
BuildRequires:  pkgconfig(gee-0.8)
BuildRequires:  pkgconfig(appstream-glib)
BuildRequires:  pkgconfig(libgnome-games-support-1.0)

BuildRequires:  intltool itstool
BuildRequires:  desktop-file-utils


%description
A GNOME clone of the popular game 2048
http://en.wikipedia.org/wiki/2048_(video_game)


%prep
%setup -q
%autopatch -p1


%build
%configure
make %{?_smp_mflags} V=1


%install
%make_install
%find_lang %{name} --with-gnome
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.gnome-2048.desktop


%post
for theme in %{icon_themes} ; do
  touch --no-create %{_datadir}/icons/$theme &>/dev/null || :
done


%postun
if [ $1 -eq 0 ]; then
  for theme in %{icon_themes} ; do
    touch --no-create %{_datadir}/icons/$theme &> /dev/null
    gtk-update-icon-cache %{_datadir}/icons/$theme &> /dev/null || :
  done
  glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi


%posttrans
for theme in %{icon_themes} ; do
  gtk-update-icon-cache %{_datadir}/icons/$theme &>/dev/null || :
done
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :


%files -f %{name}.lang
%license COPYING
%{_bindir}/gnome-2048
%{_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*


%changelog
* Thu Aug 18 2016 Kalev Lember <klember@redhat.com> - 3.21.90-1
- Update to 3.21.90

* Mon May 09 2016 Kalev Lember <klember@redhat.com> - 3.20.2-1
- Update to 3.20.2

* Thu Apr 14 2016 Yanko Kaneti <yaneti@declera.com> - 3.20.1-1
- Update to 3.20.1

* Mon Mar 21 2016 Yanko Kaneti <yaneti@declera.com> - 3.20.0-1
- Update to 3.20.0

* Tue Mar 15 2016 Yanko Kaneti <yaneti@declera.com> - 3.19.92-1
- Update to 3.19.92

* Tue Mar  1 2016 Yanko Kaneti <yaneti@declera.com> - 3.19.91-1
- Update to 3.19.91

* Wed Feb 17 2016 Yanko Kaneti <yaneti@declera.com> - 3.19.90-1
- Update to 3.19.90. Drop libgames-support patch

* Tue Feb 16 2016 Yanko Kaneti <yaneti@declera.com> - 3.19.4-3
- Patch+rebuild for libgames-support API/ABI change

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Tue Jan 19 2016 Yanko Kaneti <yaneti@declera.com> - 3.19.4-1
- Update to 3.19.4

* Mon Dec 14 2015 Kalev Lember <klember@redhat.com> - 3.18.2-2
- Rebuilt for libgames-support soname bump

* Thu Nov 12 2015 Yanko Kaneti <yaneti@declera.com> - 3.18.2
- Update to 3.18.2

* Mon Oct 12 2015 Yanko Kaneti <yaneti@declera.com> - 3.18.1
- Update to 3.18.1. Drop upstreamed patch

* Sun Sep 27 2015 Yanko Kaneti <yaneti@declera.com> - 3.18.0-3
- Add patch to fix crash on startup. Bug #1266264

* Tue Sep 22 2015 Yanko Kaneti <yaneti@declera.com> - 3.18.0-2
- Unbundle libgames-support now that if has its first release

* Mon Sep 21 2015 Yanko Kaneti <yaneti@declera.com> - 3.18.0-1
- Update to 3.18.0. New libgames-support snapshot

* Tue Sep  1 2015 Yanko Kaneti <yaneti@declera.com> - 3.17.91
- Update to 3.17.91

* Tue Aug 18 2015 Yanko Kaneti <yaneti@declera.com> - 3.17.90
- Update to 3.17.90. Bundle libgames-support again

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.17.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sun Jun  7 2015 Yanko Kaneti <yaneti@declera.com> - 3.17.1
- First official release - 3.17.1

* Tue Apr 21 2015 Yanko Kaneti <yaneti@declera.com> - 0.1.0-0.5.git3ea1464
- Unbundle libgames-support

* Tue Apr 21 2015 Yanko Kaneti <yaneti@declera.com> - 0.1.0-0.4.3ea1464
- Filter libgames-support from requires and provides

* Wed Apr 15 2015 Yanko Kaneti <yaneti@declera.com> - 0.1.0-0.3.3ea1464
- Update to upstream master.
- Temporarily bundle libgames-support until in gets in the distribution
  Review - https://bugzilla.redhat.com/show_bug.cgi?id=1195614 
- Use license macro
- Make builds verbose

* Fri Apr  3 2015 Yanko Kaneti <yaneti@declera.com> - 0.1.0-0.2.83c5a4a
- Apply upstream patch for bug 1208841

* Wed Jan 14 2015 Yanko Kaneti <yaneti@declera.com> - 0.1.0-0.1.83c5a4a
- Packaging attempt