kbruch-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. Name: kbruch
  2. Summary: Fraction learning aid for KDE
  3. Summary(ja): KDE 向け分数学習支援ツール
  4. Version: 4.9.5
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: Applications/Edutainment
  8. URL: http://edu.kde.org/kbruch/
  9. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
  10. ## upstream patches
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: desktop-file-utils
  13. BuildRequires: kdelibs4-devel >= %{version}
  14. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  15. Conflicts: kdeedu4 < 4.6.50
  16. %description
  17. KBruch is an aid for learning how to calculate with fractions.
  18. This package is part of the KDE education module.
  19. %prep
  20. %setup -q
  21. %build
  22. mkdir -p %{_target_platform}
  23. pushd %{_target_platform}
  24. %cmake \
  25. -DCMAKE_BUILD_TYPE=release \
  26. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  27. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  28. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  29. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  30. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  31. ..
  32. popd
  33. make %{?_smp_mflags} -C %{_target_platform}
  34. %install
  35. rm -rf $RPM_BUILD_ROOT
  36. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  37. %clean
  38. rm -rf $RPM_BUILD_ROOT
  39. %check
  40. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  41. desktop-file-validate $f
  42. done
  43. %post
  44. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  45. %posttrans
  46. update-desktop-database -q &> /dev/null ||:
  47. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  48. %postun
  49. if [ $1 -eq 0 ] ; then
  50. update-desktop-database -q &> /dev/null ||:
  51. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  52. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  53. fi
  54. %files
  55. %defattr(-,root,root)
  56. %doc COPYING COPYING.DOC
  57. %{_bindir}/kbruch
  58. %{_datadir}/applications/kde4/kbruch.desktop
  59. %{_datadir}/config.kcfg/kbruch.kcfg
  60. %{_datadir}/icons/hicolor/*/*/*
  61. %{_datadir}/kde4/apps/kbruch
  62. %{_mandir}/man1/kbruch*
  63. %doc %{_docdir}/HTML/en/kbruch/
  64. %changelog
  65. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  66. - new upstream release
  67. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  68. - new upstream release
  69. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  70. - new upstream release
  71. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  72. - new upstream release
  73. * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  74. - new upstream release
  75. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  76. - split from kdeedu