]>
Commit | Line | Data |
---|---|---|
d4dba509 WF |
1 | %define kdeappsver 19.04.1 |
2 | %define kframever 5.56.0 | |
295f45d5 WF |
3 | %define qtver 5.9.0 |
4 | %define kaname kmplot | |
5 | Summary: kmplot | |
6 | Name: ka5-%{kaname} | |
d4dba509 | 7 | Version: 19.04.1 |
295f45d5 WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Applications | |
11 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
d4dba509 | 12 | # Source0-md5: 00a674b21515cac60a202917eaea3639 |
295f45d5 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: Qt5Gui-devel | |
16 | BuildRequires: Qt5PrintSupport-devel | |
17 | BuildRequires: Qt5Svg-devel | |
18 | BuildRequires: Qt5Widgets-devel | |
19 | BuildRequires: gettext-devel | |
d4dba509 WF |
20 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
21 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
22 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
23 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
24 | BuildRequires: kf5-kguiaddons-devel >= %{kframever} | |
25 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
26 | BuildRequires: kf5-kparts-devel >= %{kframever} | |
27 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
17f5ed9d | 28 | BuildRequires: ninja |
295f45d5 WF |
29 | BuildRequires: qt5-build >= %{qtver} |
30 | BuildRequires: rpmbuild(macros) >= 1.164 | |
31 | BuildRequires: shared-mime-info | |
32 | BuildRequires: tar >= 1:1.22 | |
33 | BuildRequires: xz | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | KmPlot is a program to draw graphs, their integrals or derivatives. It | |
38 | supports different systems of coordinates like the Cartesian or the | |
39 | polar coordinate system. The graphs can be colorized and the view is | |
40 | scalable, so that you are able to zoom to the level you need. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{kaname}-%{version} | |
44 | ||
45 | %build | |
46 | install -d build | |
47 | cd build | |
48 | %cmake \ | |
17f5ed9d | 49 | -G Ninja \ |
d4dba509 | 50 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
295f45d5 WF |
51 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
52 | .. | |
17f5ed9d | 53 | %ninja_build |
295f45d5 WF |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
17f5ed9d | 57 | %ninja_install -C build |
295f45d5 | 58 | |
d4dba509 | 59 | %find_lang %{kaname} --all-name --with-kde |
295f45d5 WF |
60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files -f %{kaname}.lang | |
65 | %defattr(644,root,root,755) | |
66 | %attr(755,root,root) %{_bindir}/kmplot | |
67 | %{_libdir}/qt5/plugins/kmplotpart.so | |
68 | %{_desktopdir}/org.kde.kmplot.desktop | |
69 | %{_datadir}/config.kcfg/kmplot.kcfg | |
70 | %{_datadir}/dbus-1/interfaces/org.kde.kmplot.KmPlot.xml | |
71 | %{_datadir}/dbus-1/interfaces/org.kde.kmplot.MainDlg.xml | |
72 | %{_datadir}/dbus-1/interfaces/org.kde.kmplot.Parser.xml | |
73 | %{_datadir}/dbus-1/interfaces/org.kde.kmplot.View.xml | |
74 | %{_iconsdir}/hicolor/128x128/apps/kmplot.png | |
75 | %{_iconsdir}/hicolor/16x16/apps/kmplot.png | |
76 | %{_iconsdir}/hicolor/22x22/apps/kmplot.png | |
77 | %{_iconsdir}/hicolor/32x32/apps/kmplot.png | |
78 | %{_iconsdir}/hicolor/48x48/apps/kmplot.png | |
79 | %{_iconsdir}/hicolor/64x64/apps/kmplot.png | |
80 | %{_iconsdir}/hicolor/scalable/apps/kmplot.svgz | |
81 | %{_datadir}/kservices5/kmplot_part.desktop | |
82 | %dir %{_datadir}/kxmlgui5/kmplot | |
83 | %{_datadir}/kxmlgui5/kmplot/kmplot_part.rc | |
84 | %{_datadir}/kxmlgui5/kmplot/kmplot_part_readonly.rc | |
85 | %{_datadir}/kxmlgui5/kmplot/kmplot_shell.rc | |
86 | %{_datadir}/metainfo/org.kde.kmplot.appdata.xml | |
17f5ed9d WF |
87 | %lang(ca) %{_mandir}/ca/man1/kmplot.1* |
88 | %lang(de) %{_mandir}/de/man1/kmplot.1* | |
89 | %lang(es) %{_mandir}/es/man1/kmplot.1* | |
90 | %lang(et) %{_mandir}/et/man1/kmplot.1* | |
91 | %lang(fr) %{_mandir}/fr/man1/kmplot.1* | |
92 | %lang(gl) %{_mandir}/gl/man1/kmplot.1* | |
93 | %lang(it) %{_mandir}/it/man1/kmplot.1* | |
94 | %lang(C) %{_mandir}/man1/kmplot.1* | |
95 | %lang(nl) %{_mandir}/nl/man1/kmplot.1* | |
96 | %lang(pl) %{_mandir}/pl/man1/kmplot.1* | |
97 | %lang(pt) %{_mandir}/pt/man1/kmplot.1* | |
98 | %lang(pt_BR) %{_mandir}/pt_BR/man1/kmplot.1* | |
99 | %lang(ru) %{_mandir}/ru/man1/kmplot.1* | |
100 | %lang(sv) %{_mandir}/sv/man1/kmplot.1* | |
101 | %lang(uk) %{_mandir}/uk/man1/kmplot.1* |