]>
Commit | Line | Data |
---|---|---|
18f87930 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
7753a129 | 4 | %define kdeappsver 22.08.1 |
5e23c9ca WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
74c45ed8 WF |
7 | %define kaname ktp-call-ui |
8 | Summary: ktp-call-ui | |
9 | Name: ka5-%{kaname} | |
7753a129 | 10 | Version: 22.08.1 |
9745fcd1 | 11 | Release: 3 |
74c45ed8 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
9b80ae3c | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
7753a129 | 15 | # Source0-md5: 95b8a094ad644175ab82619db7d91cf7 |
74c45ed8 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Qml-devel | |
19 | BuildRequires: Qt5Quick-devel | |
20 | BuildRequires: cmake >= 2.8.12 | |
21 | BuildRequires: gettext-devel | |
404003a0 WF |
22 | BuildRequires: ka5-ktp-common-internals-devel >= %{kdeappsver} |
23 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} | |
24 | BuildRequires: kf5-kcmutils-devel >= %{kframever} | |
25 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
26 | BuildRequires: kf5-kdeclarative-devel >= %{kframever} | |
27 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
28 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
29 | BuildRequires: kf5-knotifications-devel >= %{kframever} | |
30 | BuildRequires: kf5-kxmlgui-devel >= %{kframever} | |
3a20f36d | 31 | BuildRequires: ninja |
74c45ed8 WF |
32 | BuildRequires: phonon-qt5-devel |
33 | BuildRequires: qt5-build >= %{qtver} | |
bd85eb43 | 34 | # BR: qt5-gstreamer is a temporary solution until qt-gstreamer package is fixed |
fbebe7ba | 35 | BuildRequires: qt5-gstreamer |
74c45ed8 WF |
36 | BuildRequires: qt5-gstreamer-devel |
37 | BuildRequires: rpmbuild(macros) >= 1.164 | |
38 | BuildRequires: shared-mime-info | |
39 | BuildRequires: tar >= 1:1.22 | |
f8449c18 | 40 | BuildRequires: telepathy-qt5-devel >= 0.9.8 |
74c45ed8 WF |
41 | BuildRequires: xz |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | ktp-call-ui is interacting with telepathy and farstream. | |
46 | ||
020c1682 WF |
47 | %description -l pl.UTF-8 |
48 | ktp-call-ui komunikuje siÄ™ z telepathy i farstream. | |
49 | ||
74c45ed8 WF |
50 | %prep |
51 | %setup -q -n %{kaname}-%{version} | |
52 | ||
53 | %build | |
54 | install -d build | |
55 | cd build | |
56 | %cmake \ | |
3a20f36d | 57 | -G Ninja \ |
18f87930 | 58 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
404003a0 | 59 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
74c45ed8 WF |
60 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
61 | .. | |
3a20f36d | 62 | %ninja_build |
74c45ed8 | 63 | |
18f87930 WF |
64 | %if %{with tests} |
65 | ctest | |
66 | %endif | |
67 | ||
68 | ||
74c45ed8 WF |
69 | %install |
70 | rm -rf $RPM_BUILD_ROOT | |
3a20f36d | 71 | %ninja_install -C build |
74c45ed8 WF |
72 | |
73 | %find_lang %{kaname} --all-name --with-kde | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files -f %{kaname}.lang | |
79 | %defattr(644,root,root,755) | |
80 | %attr(755,root,root) %{_bindir}/ktp-dialout-ui | |
81 | %attr(755,root,root) %{_libexecdir}/ktp-call-ui | |
82 | %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.CallUi.service | |
83 | %{_datadir}/ktp-call-ui | |
84 | %{_datadir}/kxmlgui5/ktp-call-ui | |
85 | %{_datadir}/telepathy/clients/KTp.CallUi.client |