cantor-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. Name: cantor
  2. Summary: Interface for mathematical applications
  3. Version: 4.14.3
  4. Release: 2%{?_dist_release}
  5. License: GPLv2+
  6. Group: Applications/Edutainment
  7. URL: http://edu.kde.org/cantor/
  8. Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
  9. ## upstream patches
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: desktop-file-utils
  12. BuildRequires: gcc-gfortran
  13. BuildRequires: kdelibs-devel >= %{version}
  14. BuildRequires: libspectre-devel
  15. BuildRequires: R libRmath-devel
  16. BuildRequires: soprano-devel
  17. BuildRequires: libqalculate-devel
  18. BuildRequires: analitza-devel
  19. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  20. Conflicts: kdeedu4 < 4.6.50
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. %description
  24. Cantor is an application to allow you to you use your favorite mathematical applications from within an elegant KDE-integrated worksheet interface. It provides dialogs to assist with common tasks and allows you to share your worksheets with others.
  25. Cantor supports various mathematical applications as backends (provided in external packages):
  26. * KAlgebra
  27. * Maxima Computer Algebra System
  28. * R Project for Statistical Computing (cantor-backend-R)
  29. * Sage Mathematics Software
  30. * Octave
  31. This package is part of the KDE education module.
  32. %package backend-R
  33. Summary: R backend for Cantor
  34. Summary(ja): Cantor の R バックエンド
  35. Group: Applications/Edutainment
  36. Requires: %{name} = %{version}-%{release}
  37. %description backend-R
  38. %{summary}.
  39. %package libs
  40. Summary: Runtime libraries for %{name}
  41. Summary(ja): %{name} のランタイムライブラリ
  42. Group: System Environment/Libraries
  43. Conflicts: kdeedu4-math-libs < 4.6.50
  44. %description libs
  45. %{summary}.
  46. %package devel
  47. Summary: Development files for %{name}
  48. Summary(ja): %{name} の開発用ファイル
  49. Group: Development/Libraries
  50. Requires: %{name}-libs = %{version}-%{release}
  51. Conflicts: kdeedu4-devel < 4.6.50
  52. %description devel
  53. Header files for developing applications using %{name}.
  54. %prep
  55. %setup -q
  56. %build
  57. mkdir -p %{_target_platform}
  58. pushd %{_target_platform}
  59. %cmake \
  60. -DCMAKE_BUILD_TYPE=release \
  61. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  62. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  63. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  64. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  65. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  66. ..
  67. popd
  68. make %{?_smp_mflags} -C %{_target_platform}
  69. %install
  70. rm -rf $RPM_BUILD_ROOT
  71. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  72. %clean
  73. rm -rf $RPM_BUILD_ROOT
  74. %check
  75. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  76. desktop-file-validate $f
  77. done
  78. %post
  79. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  80. %posttrans
  81. update-desktop-database -q &> /dev/null ||:
  82. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  83. %postun
  84. if [ $1 -eq 0 ] ; then
  85. update-desktop-database -q &> /dev/null ||:
  86. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  87. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  88. fi
  89. %post backend-R
  90. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  91. %posttrans backend-R
  92. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  93. %postun backend-R
  94. if [ $1 -eq 0 ] ; then
  95. touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
  96. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
  97. fi
  98. %post libs -p /sbin/ldconfig
  99. %postun libs -p /sbin/ldconfig
  100. %files
  101. %defattr(-,root,root)
  102. %doc COPYING COPYING.DOC
  103. %{_bindir}/cantor
  104. %{_libdir}/libcantor_config.so
  105. %{_libdir}/kde4/*.so
  106. %exclude %{_libdir}/kde4/cantor_rbackend.so
  107. %{_datadir}/appdata/cantor.appdata.xml
  108. %{_datadir}/applications/kde4/cantor.desktop
  109. %{_datadir}/config/*.knsrc
  110. %exclude %{_datadir}/config/cantor_r.knsrc
  111. %{_datadir}/config.kcfg/*.kcfg
  112. %exclude %{_datadir}/config.kcfg/rserver.kcfg
  113. %{_datadir}/icons/hicolor/*/*/*
  114. %exclude %{_datadir}/icons/hicolor/*/*/rbackend.*
  115. %{_datadir}/kde4/apps/cantor
  116. %{_datadir}/kde4/services/cantor/*.desktop
  117. %exclude %{_datadir}/kde4/services/cantor/rbackend.desktop
  118. %{_datadir}/kde4/servicetypes/cantor_*.desktop
  119. %doc %{_docdir}/HTML/en/cantor/
  120. %files backend-R
  121. %defattr(-,root,root,-)
  122. %{_bindir}/cantor_rserver
  123. %{_libdir}/kde4/cantor_rbackend.so
  124. %{_datadir}/config/cantor_r.knsrc
  125. %{_datadir}/config.kcfg/rserver.kcfg
  126. %{_datadir}/icons/hicolor/*/*/rbackend.*
  127. %{_datadir}/kde4/services/cantor/rbackend.desktop
  128. %files libs
  129. %defattr(-,root,root)
  130. %{_libdir}/libcantorlibs.so.*
  131. %files devel
  132. %defattr(-,root,root)
  133. %{_includedir}/kde4/cantor
  134. %{_libdir}/libcantorlibs.so
  135. %changelog
  136. * Fri Jul 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-2
  137. - rebuild with gcc-5.4.0
  138. * Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
  139. - new upstream release
  140. * Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
  141. - new upstream release
  142. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
  143. - new upstream release
  144. * Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  145. - new upstream release
  146. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  147. - new upstream release
  148. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  149. - new upstream release
  150. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  151. - new upstream release
  152. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  153. - new upstream release
  154. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  155. - new upstream release
  156. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  157. - new upstream release
  158. * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  159. - new upstream release
  160. - add BuildRequires: libqalculate-devel, analitza-devel
  161. * Thu Sep 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
  162. - split from kdeedu