[4743] | 1 | Name: kalgebra |
---|
| 2 | Summary: Algebraic graphing calculator for KDE |
---|
[7801] | 3 | Version: 4.11.1 |
---|
[4743] | 4 | Release: 1%{?_dist_release} |
---|
| 5 | |
---|
| 6 | License: GPLv2+ |
---|
| 7 | Group: Applications/Edutainment |
---|
| 8 | URL: http://edu.kde.org/kalgebra/ |
---|
| 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: kdelibs4-devel >= %{version} |
---|
| 17 | BuildRequires: libkdeedu-devel |
---|
[6725] | 18 | BuildRequires: analitza-devel |
---|
[4743] | 19 | BuildRequires: mesa-libGL-devel |
---|
| 20 | BuildRequires: readline-devel |
---|
| 21 | BuildRequires: soprano-devel |
---|
| 22 | |
---|
| 23 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 24 | |
---|
| 25 | Conflicts: kdeedu4 < 4.6.50 |
---|
| 26 | |
---|
[6725] | 27 | Obsoletes: %{name}-libs < 4.9.0 |
---|
| 28 | Provides: %{name}-libs = %{version}-%{release} |
---|
| 29 | |
---|
| 30 | Obsoletes: %{name}-devel < 4.9.0 |
---|
| 31 | |
---|
[4743] | 32 | %description |
---|
| 33 | KAlgebra is a algebraic graphing calculator with support for 3D |
---|
| 34 | graphing and MathML markup language. |
---|
| 35 | |
---|
| 36 | This package is part of the KDE education module. |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %prep |
---|
| 40 | %setup -q |
---|
| 41 | |
---|
| 42 | %build |
---|
| 43 | mkdir -p %{_target_platform} |
---|
| 44 | pushd %{_target_platform} |
---|
| 45 | %cmake \ |
---|
| 46 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 47 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 48 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 49 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 50 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 51 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 52 | .. |
---|
| 53 | popd |
---|
| 54 | |
---|
| 55 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 56 | |
---|
| 57 | %install |
---|
| 58 | rm -rf $RPM_BUILD_ROOT |
---|
| 59 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 60 | |
---|
| 61 | %clean |
---|
| 62 | rm -rf $RPM_BUILD_ROOT |
---|
| 63 | |
---|
| 64 | %check |
---|
| 65 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 66 | desktop-file-validate $f |
---|
| 67 | done |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %post |
---|
| 71 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 72 | |
---|
| 73 | %posttrans |
---|
| 74 | update-desktop-database -q &> /dev/null ||: |
---|
| 75 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 76 | |
---|
| 77 | %postun |
---|
| 78 | if [ $1 -eq 0 ] ; then |
---|
| 79 | update-desktop-database -q &> /dev/null ||: |
---|
| 80 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 81 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 82 | fi |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %files |
---|
| 86 | %defattr(-,root,root) |
---|
| 87 | %doc COPYING COPYING.DOC |
---|
| 88 | %{_bindir}/kalgebra |
---|
| 89 | %{_bindir}/kalgebramobile |
---|
| 90 | %{_libdir}/kde4/*.so |
---|
[7728] | 91 | %{_libdir}/kde4/imports/org/kde/analitza/Graph2D.qml |
---|
| 92 | %{_libdir}/kde4/imports/org/kde/analitza/libanalitzadeclarativeplugin.so |
---|
| 93 | %{_libdir}/kde4/imports/org/kde/analitza/qmldir |
---|
[4743] | 94 | %{_datadir}/applications/kde4/kalgebra*.desktop |
---|
| 95 | %{_datadir}/icons/hicolor/*/*/* |
---|
[6725] | 96 | %{_datadir}/kde4/apps/kalgebramobile |
---|
[7728] | 97 | %{_datadir}/kde4/apps/plasma/plasmoids/org.kde.graphsplasmoid/contents/ui/config.ui |
---|
| 98 | %{_datadir}/kde4/apps/plasma/plasmoids/org.kde.graphsplasmoid/contents/ui/main.qml |
---|
| 99 | %{_datadir}/kde4/apps/plasma/plasmoids/org.kde.graphsplasmoid/metadata.desktop |
---|
[6725] | 100 | %{_datadir}/kde4/apps/katepart |
---|
[7728] | 101 | %{_datadir}/kde4/services/graphsplasmoid.desktop |
---|
[4743] | 102 | %{_datadir}/kde4/services/kalgebraplasmoid.desktop |
---|
| 103 | %doc %{_docdir}/HTML/en/kalgebra/ |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | %changelog |
---|
[7801] | 107 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
| 108 | - new upstream release |
---|
| 109 | |
---|
[7728] | 110 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
| 111 | - new upstream release |
---|
| 112 | |
---|
[7294] | 113 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
| 114 | - new upstream release |
---|
| 115 | |
---|
[7105] | 116 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
| 117 | - new upstream release |
---|
| 118 | |
---|
[6899] | 119 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
| 120 | - new upstream release |
---|
| 121 | |
---|
[6797] | 122 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 123 | - new upstream release |
---|
| 124 | |
---|
[6725] | 125 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 126 | - new upstream release |
---|
| 127 | - add BuildRequires: analitza-devel |
---|
| 128 | - remove -devel and -libs subpackages |
---|
| 129 | |
---|
[4743] | 130 | * Thu Sep 8 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 131 | - split from kdeedu |
---|
| 132 | |
---|