]>
Commit | Line | Data |
---|---|---|
18f87930 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
09e816c5 | 4 | %define kdeappsver 21.12.3 |
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} | |
09e816c5 | 10 | Version: 21.12.3 |
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 |
09e816c5 | 15 | # Source0-md5: 4274d1a59729a0d19341226a287cca29 |
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} | |
34 | BuildRequires: qt5-gstreamer-devel | |
35 | BuildRequires: rpmbuild(macros) >= 1.164 | |
36 | BuildRequires: shared-mime-info | |
37 | BuildRequires: tar >= 1:1.22 | |
f8449c18 | 38 | BuildRequires: telepathy-qt5-devel >= 0.9.8 |
74c45ed8 WF |
39 | BuildRequires: xz |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %description | |
43 | ktp-call-ui is interacting with telepathy and farstream. | |
44 | ||
020c1682 WF |
45 | %description -l pl.UTF-8 |
46 | ktp-call-ui komunikuje siÄ™ z telepathy i farstream. | |
47 | ||
74c45ed8 WF |
48 | %prep |
49 | %setup -q -n %{kaname}-%{version} | |
50 | ||
51 | %build | |
52 | install -d build | |
53 | cd build | |
54 | %cmake \ | |
3a20f36d | 55 | -G Ninja \ |
18f87930 | 56 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
404003a0 | 57 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
74c45ed8 WF |
58 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
59 | .. | |
3a20f36d | 60 | %ninja_build |
74c45ed8 | 61 | |
18f87930 WF |
62 | %if %{with tests} |
63 | ctest | |
64 | %endif | |
65 | ||
66 | ||
74c45ed8 WF |
67 | %install |
68 | rm -rf $RPM_BUILD_ROOT | |
3a20f36d | 69 | %ninja_install -C build |
74c45ed8 WF |
70 | |
71 | %find_lang %{kaname} --all-name --with-kde | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files -f %{kaname}.lang | |
77 | %defattr(644,root,root,755) | |
78 | %attr(755,root,root) %{_bindir}/ktp-dialout-ui | |
79 | %attr(755,root,root) %{_libexecdir}/ktp-call-ui | |
80 | %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.CallUi.service | |
81 | %{_datadir}/ktp-call-ui | |
82 | %{_datadir}/kxmlgui5/ktp-call-ui | |
83 | %{_datadir}/telepathy/clients/KTp.CallUi.client |