[4743] | 1 | Name: kmplot |
---|
| 2 | Summary: mathematical function plotter for KDE |
---|
| 3 | Summary(ja): KDE 数学関数プロッタ |
---|
[6725] | 4 | Version: 4.9.0 |
---|
[4743] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | |
---|
| 7 | License: GPLv2+ |
---|
| 8 | Group: Applications/Edutainment |
---|
| 9 | URL: http://edu.kde.org/kmplot/ |
---|
| 10 | |
---|
[6725] | 11 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
[4743] | 12 | |
---|
| 13 | ## upstream patches |
---|
| 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: desktop-file-utils |
---|
| 17 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 18 | BuildRequires: soprano-devel |
---|
| 19 | |
---|
| 20 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 21 | |
---|
| 22 | Conflicts: kdeedu4 < 4.6.50 |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | KmPlot is a powerful mathematical plotter KDE, capable of plotting |
---|
| 26 | multiple functions simultaneously and combining them into new functions. |
---|
| 27 | |
---|
| 28 | Cartesian, parametric, and differential functions are supported, as |
---|
| 29 | well as functions using polar coordinates. Plots are printed with high |
---|
| 30 | precision at the correct aspect ratio. |
---|
| 31 | |
---|
| 32 | KmPlot also provides numerical and visual features such as filling |
---|
| 33 | and calculating the area between the plot and the first axis, finding |
---|
| 34 | maxima and minima, changing function parameters dynamically, and |
---|
| 35 | plotting derivatives and integral functions. |
---|
| 36 | |
---|
| 37 | This package is part of the KDE education module. |
---|
| 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 | %files |
---|
| 85 | %defattr(-,root,root) |
---|
| 86 | %doc COPYING COPYING.DOC |
---|
| 87 | %{_bindir}/kmplot |
---|
| 88 | %{_libdir}/kde4/libkmplotpart.so |
---|
| 89 | %{_datadir}/applications/kde4/kmplot.desktop |
---|
| 90 | %{_datadir}/config.kcfg/kmplot.kcfg |
---|
| 91 | %{_datadir}/dbus-1/interfaces/org.kde.kmplot.*.xml |
---|
| 92 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 93 | %{_datadir}/kde4/apps/kmplot |
---|
| 94 | %{_datadir}/kde4/services/kmplot_part.desktop |
---|
| 95 | %{_mandir}/man1/kmplot* |
---|
| 96 | %doc %{_docdir}/HTML/en/kmplot/ |
---|
| 97 | |
---|
| 98 | %changelog |
---|
[6725] | 99 | * Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 100 | - new upstream release |
---|
| 101 | |
---|
[4743] | 102 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 103 | - split from kdeedu |
---|
| 104 | |
---|