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