gnome-klotski-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Name: gnome-klotski
  2. Summary: GNOME Klotski
  3. Summary(ja): GNOME Klotski
  4. Version: 3.8.2
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Games
  8. URL: https://live.gnome.org/Klotski
  9. Source: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/3.8/%{name}-%{version}.tar.xz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: gtk3-devel
  12. BuildRequires: librsvg2-devel
  13. BuildRequires: yelp-tools
  14. BuildRequires: vala
  15. Requires(postun,posttrans): desktop-file-utils
  16. Requires(postun,posttrans): gtk3
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: Takemikaduchi
  20. %description
  21. gnome-klotski is a clone of the Klotski game.
  22. The objective is to move the patterned block to the area bordered by green markers.
  23. %prep
  24. %setup -q
  25. %build
  26. %configure
  27. make %{?_smp_mflags}
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. make install DESTDIR=$RPM_BUILD_ROOT
  31. %find_lang %{name} --with-gnome
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %post
  35. touch %{_datadir}/icons/hicolor
  36. gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || :
  37. %postun
  38. if [ $1 -eq 0 ]; then
  39. touch %{_datadir}/icons/hicolor
  40. gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || :
  41. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  42. update-desktop-database -q > /dev/null || :
  43. fi
  44. %posttrans
  45. glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
  46. update-desktop-database -q > /dev/null || :
  47. %files -f %{name}.lang
  48. %defattr(-, root, root)
  49. %doc COPYING NEWS
  50. %attr(2551, root, games) %{_bindir}/%{name}
  51. %{_datadir}/applications/gnotski.desktop
  52. %{_datadir}/glib-2.0/schemas/org.gnome.klotski.gschema.xml
  53. %{_datadir}/%{name}
  54. %{_datadir}/icons/hicolor/*/apps/%{name}.*
  55. %{_datadir}/icons/HighContrast/*/apps/%{name}.*
  56. %{_mandir}/man6/%{name}.6.gz
  57. %changelog
  58. * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.2-1
  59. - new upstream release
  60. * Sun Apr 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1
  61. - initial build