]>
Commit | Line | Data |
---|---|---|
5cfdd2ec WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
823630c7 | 4 | %define kdeappsver 23.08.2 |
d185c918 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
295f45d5 WF |
7 | %define kaname kmplot |
8 | Summary: kmplot | |
9 | Name: ka5-%{kaname} | |
823630c7 | 10 | Version: 23.08.2 |
5c84e4fd | 11 | Release: 1 |
295f45d5 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
e56bb0f7 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
823630c7 | 15 | # Source0-md5: 64e404c0626b08df88fa27c710f273e3 |
295f45d5 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel | |
19 | BuildRequires: Qt5PrintSupport-devel | |
20 | BuildRequires: Qt5Svg-devel | |
21 | BuildRequires: Qt5Widgets-devel | |
22 | BuildRequires: gettext-devel | |
d4dba509 WF |
23 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
24 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
25 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
26 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
27 | BuildRequires: kf5-kguiaddons-devel >= %{kframever} | |
28 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
29 | BuildRequires: kf5-kparts-devel >= %{kframever} | |
30 | BuildRequires: kf5-kwidgetsaddons-devel >= %{kframever} | |
17f5ed9d | 31 | BuildRequires: ninja |
295f45d5 WF |
32 | BuildRequires: qt5-build >= %{qtver} |
33 | BuildRequires: rpmbuild(macros) >= 1.164 | |
34 | BuildRequires: shared-mime-info | |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xz | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | KmPlot is a program to draw graphs, their integrals or derivatives. It | |
41 | supports different systems of coordinates like the Cartesian or the | |
42 | polar coordinate system. The graphs can be colorized and the view is | |
43 | scalable, so that you are able to zoom to the level you need. | |
44 | ||
638c1b97 WF |
45 | %description -l pl.UTF-8 |
46 | KmPlot jest programem rysującym wykresy funkcji, całek i pochodnych. | |
47 | Obsługuje różne układy współrzędnych, np. Kartezjański czy biegunowy. | |
48 | Wykresy są kolorowane i skalowalne, tak że jesteś w stanie powiększyć | |
49 | je do poziomu, którego potrzebujesz. | |
50 | ||
295f45d5 WF |
51 | %prep |
52 | %setup -q -n %{kaname}-%{version} | |
53 | ||
54 | %build | |
295f45d5 | 55 | %cmake \ |
698ab363 | 56 | -B build \ |
17f5ed9d | 57 | -G Ninja \ |
5cfdd2ec | 58 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
d4dba509 | 59 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
698ab363 WF |
60 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
61 | %ninja_build -C build | |
295f45d5 | 62 | |
5cfdd2ec | 63 | %if %{with tests} |
698ab363 | 64 | ctest --test-dir build |
5cfdd2ec WF |
65 | %endif |
66 | ||
67 | ||
295f45d5 WF |
68 | %install |
69 | rm -rf $RPM_BUILD_ROOT | |
17f5ed9d | 70 | %ninja_install -C build |
295f45d5 | 71 | |
d4dba509 | 72 | %find_lang %{kaname} --all-name --with-kde |
295f45d5 WF |
73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files -f %{kaname}.lang | |
78 | %defattr(644,root,root,755) | |
79 | %attr(755,root,root) %{_bindir}/kmplot | |
19f0db47 | 80 | %{_libdir}/qt5/plugins/kf5/parts/kmplotpart.so |
295f45d5 WF |
81 | %{_desktopdir}/org.kde.kmplot.desktop |
82 | %{_datadir}/config.kcfg/kmplot.kcfg | |
83 | %{_datadir}/dbus-1/interfaces/org.kde.kmplot.KmPlot.xml | |
84 | %{_datadir}/dbus-1/interfaces/org.kde.kmplot.MainDlg.xml | |
85 | %{_datadir}/dbus-1/interfaces/org.kde.kmplot.Parser.xml | |
86 | %{_datadir}/dbus-1/interfaces/org.kde.kmplot.View.xml | |
87 | %{_iconsdir}/hicolor/128x128/apps/kmplot.png | |
88 | %{_iconsdir}/hicolor/16x16/apps/kmplot.png | |
89 | %{_iconsdir}/hicolor/22x22/apps/kmplot.png | |
90 | %{_iconsdir}/hicolor/32x32/apps/kmplot.png | |
91 | %{_iconsdir}/hicolor/48x48/apps/kmplot.png | |
92 | %{_iconsdir}/hicolor/64x64/apps/kmplot.png | |
93 | %{_iconsdir}/hicolor/scalable/apps/kmplot.svgz | |
94 | %{_datadir}/kservices5/kmplot_part.desktop | |
95 | %dir %{_datadir}/kxmlgui5/kmplot | |
96 | %{_datadir}/kxmlgui5/kmplot/kmplot_part.rc | |
97 | %{_datadir}/kxmlgui5/kmplot/kmplot_part_readonly.rc | |
98 | %{_datadir}/kxmlgui5/kmplot/kmplot_shell.rc | |
99 | %{_datadir}/metainfo/org.kde.kmplot.appdata.xml | |
17f5ed9d WF |
100 | %lang(ca) %{_mandir}/ca/man1/kmplot.1* |
101 | %lang(de) %{_mandir}/de/man1/kmplot.1* | |
102 | %lang(es) %{_mandir}/es/man1/kmplot.1* | |
103 | %lang(et) %{_mandir}/et/man1/kmplot.1* | |
104 | %lang(fr) %{_mandir}/fr/man1/kmplot.1* | |
105 | %lang(gl) %{_mandir}/gl/man1/kmplot.1* | |
106 | %lang(it) %{_mandir}/it/man1/kmplot.1* | |
107 | %lang(C) %{_mandir}/man1/kmplot.1* | |
108 | %lang(nl) %{_mandir}/nl/man1/kmplot.1* | |
109 | %lang(pl) %{_mandir}/pl/man1/kmplot.1* | |
110 | %lang(pt) %{_mandir}/pt/man1/kmplot.1* | |
111 | %lang(pt_BR) %{_mandir}/pt_BR/man1/kmplot.1* | |
112 | %lang(ru) %{_mandir}/ru/man1/kmplot.1* | |
113 | %lang(sv) %{_mandir}/sv/man1/kmplot.1* | |
114 | %lang(uk) %{_mandir}/uk/man1/kmplot.1* |