3 %bcond_with tests # build with tests
4 %define kdeappsver 24.01.95
5 %define kframever 5.94.0
12 License: GPL v2+/LGPL v2.1+
13 Group: X11/Applications
14 Source0: https://download.kde.org/unstable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
15 # Source0-md5: ceda36d49577ff9b220d0e585bd336d9
16 URL: http://www.kde.org/
17 BuildRequires: Qt6Core-devel >= %{qtver}
18 BuildRequires: Qt6Gui-devel
19 BuildRequires: Qt6PrintSupport-devel
20 BuildRequires: Qt6Svg-devel
21 BuildRequires: Qt6Widgets-devel
22 BuildRequires: gettext-devel
23 BuildRequires: kf6-extra-cmake-modules >= %{kframever}
24 BuildRequires: kf6-kcrash-devel >= %{kframever}
25 BuildRequires: kf6-kdbusaddons-devel >= %{kframever}
26 BuildRequires: kf6-kdoctools-devel >= %{kframever}
27 BuildRequires: kf6-kguiaddons-devel >= %{kframever}
28 BuildRequires: kf6-ki18n-devel >= %{kframever}
29 BuildRequires: kf6-kparts-devel >= %{kframever}
30 BuildRequires: kf6-kwidgetsaddons-devel >= %{kframever}
32 BuildRequires: qt6-build >= %{qtver}
33 BuildRequires: rpmbuild(macros) >= 1.164
34 BuildRequires: shared-mime-info
35 BuildRequires: tar >= 1:1.22
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
52 %setup -q -n %{kaname}-%{version}
58 %{!?with_tests:-DBUILD_TESTING=OFF} \
59 -DHTML_INSTALL_DIR=%{_kdedocdir} \
60 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
65 ctest --test-dir build
70 rm -rf $RPM_BUILD_ROOT
71 %ninja_install -C build
73 %find_lang %{kaname} --all-name --with-kde
76 rm -rf $RPM_BUILD_ROOT
78 %files -f %{kaname}.lang
79 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_bindir}/kmplot
81 %{_libdir}/qt6/plugins/kf6/parts/kmplotpart.so
82 %{_desktopdir}/org.kde.kmplot.desktop
83 %{_datadir}/config.kcfg/kmplot.kcfg
84 %{_datadir}/dbus-1/interfaces/org.kde.kmplot.KmPlot.xml
85 %{_datadir}/dbus-1/interfaces/org.kde.kmplot.MainDlg.xml
86 %{_datadir}/dbus-1/interfaces/org.kde.kmplot.Parser.xml
87 %{_datadir}/dbus-1/interfaces/org.kde.kmplot.View.xml
88 %{_iconsdir}/hicolor/*x*/apps/kmplot.png
89 %{_iconsdir}/hicolor/scalable/apps/kmplot.svgz
90 %{_datadir}/metainfo/org.kde.kmplot.appdata.xml
91 %lang(ca) %{_mandir}/ca/man1/kmplot.1*
92 %lang(de) %{_mandir}/de/man1/kmplot.1*
93 %lang(es) %{_mandir}/es/man1/kmplot.1*
94 %lang(et) %{_mandir}/et/man1/kmplot.1*
95 %lang(fr) %{_mandir}/fr/man1/kmplot.1*
96 %lang(gl) %{_mandir}/gl/man1/kmplot.1*
97 %lang(it) %{_mandir}/it/man1/kmplot.1*
98 %lang(C) %{_mandir}/man1/kmplot.1*
99 %lang(nl) %{_mandir}/nl/man1/kmplot.1*
100 %lang(pl) %{_mandir}/pl/man1/kmplot.1*
101 %lang(pt) %{_mandir}/pt/man1/kmplot.1*
102 %lang(pt_BR) %{_mandir}/pt_BR/man1/kmplot.1*
103 %lang(ru) %{_mandir}/ru/man1/kmplot.1*
104 %lang(sv) %{_mandir}/sv/man1/kmplot.1*
105 %lang(uk) %{_mandir}/uk/man1/kmplot.1*