]> git.pld-linux.org Git - packages/ka5-kqtquickcharts.git/blame - ka5-kqtquickcharts.spec
- bcond_with tests
[packages/ka5-kqtquickcharts.git] / ka5-kqtquickcharts.spec
CommitLineData
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
8Summary: kqtquickcharts
9Name: ka5-%{kaname}
ee53a51a 10Version: 21.12.3
35364fed
WF
11Release: 1
12License: GPL v2+/LGPL v2.1+
13Group: X11/Applications
8989515b 14Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
ee53a51a 15# Source0-md5: ff4e28b659764e059135fbc6f2077511
35364fed
WF
16URL: http://www.kde.org/
17BuildRequires: Qt5Core-devel >= %{qtver}
18BuildRequires: Qt5Gui-devel
19BuildRequires: Qt5Network-devel >= 5.11.1
20BuildRequires: Qt5Qml-devel
21BuildRequires: Qt5Quick-devel
22BuildRequires: cmake >= 2.8.12
41c3b84e 23BuildRequires: kf5-extra-cmake-modules >= %{kframever}
c28ca402 24BuildRequires: ninja
35364fed
WF
25BuildRequires: qt5-build >= %{qtver}
26BuildRequires: rpmbuild(macros) >= 1.164
27BuildRequires: tar >= 1:1.22
28BuildRequires: xz
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32Qt Quick plugin for beautiful and interactive charts.
33
19e89ec4
WF
34%description -l pl.UTF-8
35Wtyczka do Qt Quick do tworzenia pięknych i interaktywnych wykresów.
36
35364fed
WF
37%package devel
38Summary: Header files for %{kaname} development
39Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname}
40Group: X11/Development/Libraries
41Requires: %{name} = %{version}-%{release}
42
43%description devel
44Header files for %{kaname} development.
45
46%description devel -l pl.UTF-8
47Pliki nagłówkowe dla programistów używających %{kaname}.
48
49%prep
50%setup -q -n %{kaname}-%{version}
51
52%build
53install -d build
54cd 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}
64ctest
65%endif
66
67
35364fed
WF
68%install
69rm -rf $RPM_BUILD_ROOT
c28ca402 70%ninja_install -C build
35364fed
WF
71
72%clean
73rm -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
This page took 0.083802 seconds and 4 git commands to generate.