kbruch-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Name: kbruch
  2. Summary: Fraction learning aid for KDE
  3. Summary(ja): KDE 向け分数学習支援ツール
  4. Version: 4.7.0
  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.bz2
  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. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  25. %cmake \
  26. -DCMAKE_BUILD_TYPE=release \
  27. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  28. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  29. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  30. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  31. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  32. ..
  33. popd
  34. make %{?_smp_mflags} -C %{_target_platform}
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %check
  41. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  42. desktop-file-validate $f
  43. done
  44. %post
  45. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  46. %posttrans
  47. update-desktop-database -q &> /dev/null ||:
  48. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  49. %postun
  50. if [ $1 -eq 0 ] ; then
  51. update-desktop-database -q &> /dev/null ||:
  52. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  53. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  54. fi
  55. %files
  56. %defattr(-,root,root)
  57. %doc COPYING COPYING.DOC
  58. %{_bindir}/kbruch
  59. %{_datadir}/applications/kde4/kbruch.desktop
  60. %{_datadir}/config.kcfg/kbruch.kcfg
  61. %{_datadir}/icons/hicolor/*/*/*
  62. %{_datadir}/kde4/apps/kbruch
  63. %{_mandir}/man1/kbruch*
  64. %doc %{_docdir}/HTML/en/kbruch/
  65. %changelog
  66. * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  67. - split from kdeedu