]>
Commit | Line | Data |
---|---|---|
e67a7b83 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
ee53a51a | 4 | %define kdeappsver 21.12.3 |
41c3b84e | 5 | %define kframever 5.56.0 |
35364fed WF |
6 | %define qtver 5.9.0 |
7 | %define kaname kqtquickcharts | |
8 | Summary: kqtquickcharts | |
9 | Name: ka5-%{kaname} | |
ee53a51a | 10 | Version: 21.12.3 |
35364fed WF |
11 | Release: 1 |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Applications | |
8989515b | 14 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
ee53a51a | 15 | # Source0-md5: ff4e28b659764e059135fbc6f2077511 |
35364fed WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel | |
19 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
20 | BuildRequires: Qt5Qml-devel | |
21 | BuildRequires: Qt5Quick-devel | |
22 | BuildRequires: cmake >= 2.8.12 | |
41c3b84e | 23 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
c28ca402 | 24 | BuildRequires: ninja |
35364fed WF |
25 | BuildRequires: qt5-build >= %{qtver} |
26 | BuildRequires: rpmbuild(macros) >= 1.164 | |
27 | BuildRequires: tar >= 1:1.22 | |
28 | BuildRequires: xz | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Qt Quick plugin for beautiful and interactive charts. | |
33 | ||
19e89ec4 WF |
34 | %description -l pl.UTF-8 |
35 | Wtyczka do Qt Quick do tworzenia pięknych i interaktywnych wykresów. | |
36 | ||
35364fed WF |
37 | %package devel |
38 | Summary: Header files for %{kaname} development | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
40 | Group: X11/Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | Header files for %{kaname} development. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
48 | ||
49 | %prep | |
50 | %setup -q -n %{kaname}-%{version} | |
51 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
55 | %cmake \ | |
c28ca402 | 56 | -G Ninja \ |
e67a7b83 | 57 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
41c3b84e | 58 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
35364fed WF |
59 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
60 | .. | |
c28ca402 | 61 | %ninja_build |
35364fed | 62 | |
e67a7b83 WF |
63 | %if %{with tests} |
64 | ctest | |
65 | %endif | |
66 | ||
67 | ||
35364fed WF |
68 | %install |
69 | rm -rf $RPM_BUILD_ROOT | |
c28ca402 | 70 | %ninja_install -C build |
35364fed WF |
71 | |
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %dir %{_libdir}/qt5/qml/org/kde/charts | |
78 | %{_libdir}/qt5/qml/org/kde/charts/BarChart.qml | |
79 | %{_libdir}/qt5/qml/org/kde/charts/Label.qml | |
80 | %{_libdir}/qt5/qml/org/kde/charts/LegendItem.qml | |
81 | %{_libdir}/qt5/qml/org/kde/charts/LineChart.qml | |
82 | %{_libdir}/qt5/qml/org/kde/charts/LineLabel.qml | |
83 | %{_libdir}/qt5/qml/org/kde/charts/XYChart.qml | |
84 | %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/charts/libkqtquickcharts.so | |
85 | %{_libdir}/qt5/qml/org/kde/charts/qmldir | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %{_includedir}/KF5/kqtquickcharts_version.h | |
90 | %{_libdir}/cmake/KQtQuickCharts |