]>
Commit | Line | Data |
---|---|---|
18f87930 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
b2f56d8b | 4 | %define kdeappsver 22.04.1 |
404003a0 | 5 | %define kframever 5.56.0 |
74c45ed8 WF |
6 | %define qtver 5.9.0 |
7 | %define kaname ktp-call-ui | |
8 | Summary: ktp-call-ui | |
9 | Name: ka5-%{kaname} | |
b2f56d8b | 10 | Version: 22.04.1 |
74c45ed8 WF |
11 | Release: 1 |
12 | License: GPL v2+/LGPL v2.1+ | |
13 | Group: X11/Applications | |
f8449c18 | 14 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
b2f56d8b | 15 | # Source0-md5: f1997fcf29c3c4889870afcd045ef253 |
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} | |
fbebe7ba | 34 | BuildRequires: qt5-gstreamer |
74c45ed8 WF |
35 | BuildRequires: qt5-gstreamer-devel |
36 | BuildRequires: rpmbuild(macros) >= 1.164 | |
37 | BuildRequires: shared-mime-info | |
38 | BuildRequires: tar >= 1:1.22 | |
f8449c18 | 39 | BuildRequires: telepathy-qt5-devel >= 0.9.8 |
74c45ed8 WF |
40 | BuildRequires: xz |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %description | |
44 | ktp-call-ui is interacting with telepathy and farstream. | |
45 | ||
020c1682 WF |
46 | %description -l pl.UTF-8 |
47 | ktp-call-ui komunikuje siÄ™ z telepathy i farstream. | |
48 | ||
74c45ed8 WF |
49 | %prep |
50 | %setup -q -n %{kaname}-%{version} | |
51 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
55 | %cmake \ | |
3a20f36d | 56 | -G Ninja \ |
18f87930 | 57 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
404003a0 | 58 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
74c45ed8 WF |
59 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
60 | .. | |
3a20f36d | 61 | %ninja_build |
74c45ed8 | 62 | |
18f87930 WF |
63 | %if %{with tests} |
64 | ctest | |
65 | %endif | |
66 | ||
67 | ||
74c45ed8 WF |
68 | %install |
69 | rm -rf $RPM_BUILD_ROOT | |
3a20f36d | 70 | %ninja_install -C build |
74c45ed8 WF |
71 | |
72 | %find_lang %{kaname} --all-name --with-kde | |
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}/ktp-dialout-ui | |
80 | %attr(755,root,root) %{_libexecdir}/ktp-call-ui | |
81 | %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.CallUi.service | |
82 | %{_datadir}/ktp-call-ui | |
83 | %{_datadir}/kxmlgui5/ktp-call-ui | |
84 | %{_datadir}/telepathy/clients/KTp.CallUi.client |