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

Revision 6725, 2.8 KB checked in by Takemikaduchi, 12 years ago (diff)

KDE-4.9.0

Line 
1Name: kmplot
2Summary: mathematical function plotter for KDE
3Summary(ja): KDE 数学関数プロッタ
4Version: 4.9.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.xz
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}
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    ..
53popd
54
55make %{?_smp_mflags} -C %{_target_platform}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%check
65for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
66    desktop-file-validate $f
67done
68
69
70%post
71touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
72
73%posttrans
74update-desktop-database -q &> /dev/null ||:
75gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
76
77%postun
78if [ $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 ||:
82fi
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
99* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
100- new upstream release
101
102* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
103- split from kdeedu
104
Note: See TracBrowser for help on using the repository browser.