kalgebra-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. Name: kalgebra
  2. Summary: Algebraic graphing calculator for KDE
  3. Version: 4.7.0
  4. Release: 1%{?_dist_release}
  5. License: GPLv2+
  6. Group: Applications/Edutainment
  7. URL: http://edu.kde.org/kalgebra/
  8. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
  9. ## upstream patches
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: desktop-file-utils
  12. BuildRequires: kdelibs4-devel >= %{version}
  13. BuildRequires: libkdeedu-devel
  14. BuildRequires: mesa-libGL-devel
  15. BuildRequires: readline-devel
  16. BuildRequires: soprano-devel
  17. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  18. Conflicts: kdeedu4 < 4.6.50
  19. %description
  20. KAlgebra is a algebraic graphing calculator with support for 3D
  21. graphing and MathML markup language.
  22. This package is part of the KDE education module.
  23. %package libs
  24. Summary: Runtime libraries for %{name}
  25. Summary(ja): %{name} のランタイムライブラリ
  26. Group: System Environment/Libraries
  27. Conflicts: kdeedu4-libs < 4.6.50
  28. %description libs
  29. %{summary}.
  30. %package devel
  31. Summary: Development files for %{name}
  32. Summary(ja): %{name} の開発用ファイル
  33. Group: Development/Libraries
  34. Requires: %{name}-libs = %{version}-%{release}
  35. Conflicts: kdeedu4-devel < 4.6.50
  36. %description devel
  37. Header files for developing applications using %{name}.
  38. %prep
  39. %setup -q
  40. %build
  41. mkdir -p %{_target_platform}
  42. pushd %{_target_platform}
  43. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  44. %cmake \
  45. -DCMAKE_BUILD_TYPE=release \
  46. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  47. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  48. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  49. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  50. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  51. ..
  52. popd
  53. make %{?_smp_mflags} -C %{_target_platform}
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %check
  60. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  61. desktop-file-validate $f
  62. done
  63. %post
  64. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  65. %posttrans
  66. update-desktop-database -q &> /dev/null ||:
  67. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  68. %postun
  69. if [ $1 -eq 0 ] ; then
  70. update-desktop-database -q &> /dev/null ||:
  71. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  72. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  73. fi
  74. %post libs -p /sbin/ldconfig
  75. %postun libs -p /sbin/ldconfig
  76. %files
  77. %defattr(-,root,root)
  78. %doc COPYING COPYING.DOC
  79. %{_bindir}/calgebra
  80. %{_bindir}/kalgebra
  81. %{_bindir}/kalgebramobile
  82. %{_libdir}/kde4/*.so
  83. %{_datadir}/applications/kde4/kalgebra*.desktop
  84. %{_datadir}/icons/hicolor/*/*/*
  85. %{_datadir}/kde4/apps/kalgebra
  86. %{_datadir}/kde4/apps/katepart/*
  87. %{_datadir}/kde4/services/kalgebraplasmoid.desktop
  88. %{_datadir}/kde4/servicetypes/kalgebrascript.desktop
  89. %doc %{_docdir}/HTML/en/kalgebra/
  90. %files libs
  91. %defattr(-,root,root)
  92. %{_libdir}/libanalitza*.so.*
  93. %files devel
  94. %defattr(-,root,root)
  95. %{_libdir}/libanalitza*.so
  96. %changelog
  97. * Thu Sep 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  98. - split from kdeedu