source: projects/specs/trunk/k/kmplot/kmplot-vl.spec @ 4743

Revision 4743, 2.8 KB checked in by inagaki, 13 years ago (diff)

NEW: KDE Educational packages
update: kdeplasma-addons

Line 
1Name: kmplot
2Summary: mathematical function plotter for KDE
3Summary(ja): KDE 数学関数プロッタ
4Version: 4.7.0
5Release: 1%{?_dist_release}
6
7License: GPLv2+
8Group: Applications/Edutainment
9URL: http://edu.kde.org/kmplot/
10
11Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
12
13## upstream patches
14
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16BuildRequires: desktop-file-utils
17BuildRequires: kdelibs4-devel >= %{version}
18BuildRequires: soprano-devel
19
20Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
21
22Conflicts: kdeedu4 < 4.6.50
23
24%description
25KmPlot is a powerful mathematical plotter KDE, capable of plotting
26multiple functions simultaneously and combining them into new functions.
27
28Cartesian, parametric, and differential functions are supported, as
29well as functions using polar coordinates. Plots are printed with high
30precision at the correct aspect ratio.
31
32KmPlot also provides numerical and visual features such as filling
33and calculating the area between the plot and the first axis, finding
34maxima and minima, changing function parameters dynamically, and
35plotting derivatives and integral functions.
36
37This package is part of the KDE education module.
38
39%prep
40%setup -q
41
42%build
43mkdir -p %{_target_platform}
44pushd %{_target_platform}
45unset 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    ..
54popd
55
56make %{?_smp_mflags} -C %{_target_platform}
57
58%install
59rm -rf $RPM_BUILD_ROOT
60make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%check
66for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
67    desktop-file-validate $f
68done
69
70
71%post
72touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
73
74%posttrans
75update-desktop-database -q &> /dev/null ||:
76gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
77
78%postun
79if [ $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 ||:
83fi
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
Note: See TracBrowser for help on using the repository browser.