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

Revision 10563, 3.9 KB checked in by Takemikaduchi, 8 years ago (diff)

rebuild with gcc-5.4.0

Line 
1Name: kmplot
2Summary: mathematical function plotter for KDE
3Summary(ja): KDE 数学関数プロッタ
4Version: 4.14.3
5Release: 2%{?_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
24Vendor: Project Vine
25Distribution: Vine Linux
26
27%description
28KmPlot is a powerful mathematical plotter KDE, capable of plotting
29multiple functions simultaneously and combining them into new functions.
30
31Cartesian, parametric, and differential functions are supported, as
32well as functions using polar coordinates. Plots are printed with high
33precision at the correct aspect ratio.
34
35KmPlot also provides numerical and visual features such as filling
36and calculating the area between the plot and the first axis, finding
37maxima and minima, changing function parameters dynamically, and
38plotting derivatives and integral functions.
39
40This package is part of the KDE education module.
41
42%prep
43%setup -q
44
45%build
46mkdir -p %{_target_platform}
47pushd %{_target_platform}
48%cmake \
49    -DCMAKE_BUILD_TYPE=release \
50    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
51    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
52    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
53    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
54    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
55    ..
56popd
57
58make %{?_smp_mflags} -C %{_target_platform}
59
60%install
61rm -rf $RPM_BUILD_ROOT
62make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%check
68for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
69    desktop-file-validate $f
70done
71
72
73%post
74touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
75
76%posttrans
77update-desktop-database -q &> /dev/null ||:
78gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
79
80%postun
81if [ $1 -eq 0 ] ; then
82    update-desktop-database -q &> /dev/null ||:
83    touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||:
84    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||:
85fi
86
87%files
88%defattr(-,root,root)
89%doc COPYING COPYING.DOC
90%{_bindir}/kmplot
91%{_libdir}/kde4/libkmplotpart.so
92%{_datadir}/appdata/kmplot.appdata.xml
93%{_datadir}/applications/kde4/kmplot.desktop
94%{_datadir}/config.kcfg/kmplot.kcfg
95%{_datadir}/dbus-1/interfaces/org.kde.kmplot.*.xml
96%{_datadir}/icons/hicolor/*/*/*
97%{_datadir}/kde4/apps/kmplot
98%{_datadir}/kde4/services/kmplot_part.desktop
99%{_mandir}/man1/kmplot*
100%doc %{_docdir}/HTML/en/kmplot/
101
102%changelog
103* Fri Jul 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-2
104- rebuild with gcc-5.4.0
105
106* Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
107- new upstream release
108
109* Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
110- new upstream release
111
112* Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
113- new upstream release
114
115* Wed Dec 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
116- new upstream release
117
118* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
119- new upstream release
120
121* Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
122- new upstream release
123
124* Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
125- new upstream release
126
127* Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
128- new upstream release
129
130* Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
131- new upstream release
132
133* Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
134- new upstream release
135
136* Mon Aug 13 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
137- new upstream release
138
139* Sat Sep  3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-1
140- split from kdeedu
141
Note: See TracBrowser for help on using the repository browser.