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