Blob Blame History Raw
%global icon_themes hicolor HighContrast

Name:           gnome-taquin
Version:        3.15.92
Release:        1%{?dist}
Summary:        Sliding-block puzzle game

License:        GPLv3+ and GPLv2+ and CC-BY-SA 
URL:            https://wiki.gnome.org/Apps/Taquin
Source0:        http://download.gnome.org/sources/gnome-taquin/3.15/gnome-taquin-%{version}.tar.xz

BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.15
BuildRequires:  pkgconfig(librsvg-2.0)
BuildRequires:  pkgconfig(libcanberra-gtk3)

BuildRequires:  desktop-file-utils
BuildRequires:  intltool
BuildRequires:  itstool


%description
Taquin is a computer version of the 15-puzzle and other sliding puzzles.
The object of Taquin is to move tiles so that they reach their places, 
either indicated with numbers, or with parts of a great image.

%prep
%setup -q


%build
%configure
make %{?_smp_mflags}


%install
%make_install
%find_lang %{name} --with-gnome
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.taquin.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
%doc AUTHORS NEWS
%license COPYING COPYING.sounds COPYING.themes
%{_bindir}/gnome-taquin
%{_datadir}/appdata/org.gnome.taquin.appdata.xml
%{_datadir}/applications/org.gnome.taquin.desktop
%{_datadir}/dbus-1/services/org.gnome.taquin.service
%{_datadir}/glib-2.0/schemas/org.gnome.taquin.gschema.xml
%{_datadir}/gnome-taquin
%{_datadir}/icons/*/*/apps/gnome-taquin*
%{_mandir}/man6/gnome-taquin.6.*


%changelog
* Tue Mar 17 2015 Yanko Kaneti <yaneti@declera.com> - 3.15.92-1
- Update to 3.15.92

* Mon Mar  2 2015 Yanko Kaneti <yaneti@declera.com> - 3.15.91.1-1
- Update to 3.15.91.1

* Tue Feb 17 2015 Yanko Kaneti <yaneti@declera.com> - 3.15.90-1
- Update to 3.15.90

* Tue Jan 20 2015 Yanko Kaneti <yaneti@declera.com> - 3.15.4-1
- Update to 3.15.4

* Thu Jan 15 2015 Yanko Kaneti <yaneti@declera.com> - 3.15.3-1
- Packaging attempt