[4743] | 1 | Name: kmplot |
---|
| 2 | Summary: mathematical function plotter for KDE |
---|
| 3 | Summary(ja): KDE 数学関数プロッタ |
---|
| 4 | Version: 4.7.0 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
| 6 | |
---|
| 7 | License: GPLv2+ |
---|
| 8 | Group: Applications/Edutainment |
---|
| 9 | URL: http://edu.kde.org/kmplot/ |
---|
| 10 | |
---|
| 11 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2 |
---|
| 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 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
| 46 | %cmake \ |
---|
| 47 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 48 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 49 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 50 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 51 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 52 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 53 | .. |
---|
| 54 | popd |
---|
| 55 | |
---|
| 56 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 57 | |
---|
| 58 | %install |
---|
| 59 | rm -rf $RPM_BUILD_ROOT |
---|
| 60 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 61 | |
---|
| 62 | %clean |
---|
| 63 | rm -rf $RPM_BUILD_ROOT |
---|
| 64 | |
---|
| 65 | %check |
---|
| 66 | for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do |
---|
| 67 | desktop-file-validate $f |
---|
| 68 | done |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | %post |
---|
| 72 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 73 | |
---|
| 74 | %posttrans |
---|
| 75 | update-desktop-database -q &> /dev/null ||: |
---|
| 76 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 77 | |
---|
| 78 | %postun |
---|
| 79 | if [ $1 -eq 0 ] ; then |
---|
| 80 | update-desktop-database -q &> /dev/null ||: |
---|
| 81 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 82 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 83 | fi |
---|
| 84 | |
---|
| 85 | %files |
---|
| 86 | %defattr(-,root,root) |
---|
| 87 | %doc COPYING COPYING.DOC |
---|
| 88 | %{_bindir}/kmplot |
---|
| 89 | %{_libdir}/kde4/libkmplotpart.so |
---|
| 90 | %{_datadir}/applications/kde4/kmplot.desktop |
---|
| 91 | %{_datadir}/config.kcfg/kmplot.kcfg |
---|
| 92 | %{_datadir}/dbus-1/interfaces/org.kde.kmplot.*.xml |
---|
| 93 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 94 | %{_datadir}/kde4/apps/kmplot |
---|
| 95 | %{_datadir}/kde4/services/kmplot_part.desktop |
---|
| 96 | %{_mandir}/man1/kmplot* |
---|
| 97 | %doc %{_docdir}/HTML/en/kmplot/ |
---|
| 98 | |
---|
| 99 | %changelog |
---|
| 100 | * Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1 |
---|
| 101 | - split from kdeedu |
---|
| 102 | |
---|