kajongg-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Name: kajongg
  2. Summary: Mah Jongg for KDE
  3. Version: 4.12.2
  4. Release: 1%{?_dist_release}
  5. License: GPLv2
  6. Group: Applications/Accessories
  7. URL: http://www.kde.org/applications/games/
  8. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: desktop-file-utils
  11. BuildRequires: kdelibs4-devel >= %{version}
  12. BuildRequires: libkdegames-devel >= %{version}
  13. BuildRequires: PyQt4-devel
  14. BuildRequires: PyKDE4-devel >= %{version}
  15. BuildRequires: sqlite3-devel
  16. BuildRequires: python-twisted
  17. Requires: PyKDE4
  18. Requires: python-twisted
  19. Requires(posttrans,postun): desktop-file-utils
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: Takemikaduchi
  23. %description
  24. Kajongg is the ancient Chinese board game for 4 players. Kajongg can be used in two
  25. different ways: Scoring a manual game where you play as always and use Kajongg for
  26. the computation of scores and for bookkeeping. Or you can use Kajongg to play against
  27. any combination of other human players or computer players.
  28. %prep
  29. %setup -q
  30. %build
  31. mkdir -p %{_target_platform}
  32. pushd %{_target_platform}
  33. %cmake \
  34. -DCMAKE_BUILD_TYPE=release \
  35. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  36. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  37. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  38. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  39. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  40. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  41. ..
  42. popd
  43. make %{?_smp_mflags} -C %{_target_platform}
  44. %install
  45. rm -rf $RPM_BUILD_ROOT
  46. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  47. %clean
  48. rm -rf $RPM_BUILD_ROOT
  49. %post
  50. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  51. %posttrans
  52. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  53. update-desktop-database -q &> /dev/null ||:
  54. %postun
  55. if [ $1 -eq 0 ] ; then
  56. touch --no-create %{_datadir}/icons/hicolor &> /dev/null
  57. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null
  58. update-desktop-database -q &> /dev/null ||:
  59. fi
  60. %files
  61. %defattr(-,root,root)
  62. %doc COPYING COPYING.DOC
  63. %{_bindir}/%{name}
  64. %{_bindir}/%{name}server
  65. %{_datadir}/applications/kde4/%{name}.desktop
  66. %{_datadir}/icons/hicolor/*/*/*
  67. %{_datadir}/kde4/apps/%{name}
  68. %doc %{_docdir}/HTML/en/%{name}/
  69. %changelog
  70. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
  71. - new upstream release
  72. * Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  73. - new upstream release
  74. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  75. - new upstream release
  76. * Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  77. - initial build