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