%global icon_themes hicolor HighContrast Name: gnome-taquin Version: 3.15.3 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 # 3.15.3 tarball has some file permission issues chmod -x AUTHORS NEWS COPYING src/* %build %configure make %{?_smp_mflags} %install %make_install %find_lang %{name} --with-gnome desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.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 # FIXME will add the other licenses once the are distributed with the tarball # https://bugzilla.gnome.org/show_bug.cgi?id=742964 %license COPYING %{_bindir}/gnome-taquin %{_datadir}/appdata/gnome-taquin.appdata.xml %{_datadir}/applications/gnome-taquin.desktop %{_datadir}/glib-2.0/schemas/org.gnome.taquin.gschema.xml %{_datadir}/gnome-taquin %{_datadir}/icons/*/*/apps/gnome-taquin.* %{_mandir}/man6/gnome-taquin.6.* %changelog * Thu Jan 15 2015 Yanko Kaneti - 3.15.3-1 - Packaging attempt