1 %define kdeplasmaver 5.24.3
3 %define kpname plasma-thunderbolt
12 Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
13 # Source0-md5: edd0353c94b46ff40a095137eb571aa0
14 URL: http://www.kde.org/
15 BuildRequires: Qt5Core-devel >= 5.15.0
16 BuildRequires: Qt5DBus-devel >= 5.15.0
17 BuildRequires: Qt5Gui-devel >= 5.15.0
18 BuildRequires: Qt5Network-devel >= 5.15.2
19 BuildRequires: Qt5Qml-devel >= 5.15.2
20 BuildRequires: Qt5Quick-devel >= 5.15.0
21 BuildRequires: cmake >= 2.8.12
22 BuildRequires: gettext-devel
23 BuildRequires: kf5-extra-cmake-modules >= 5.70
24 BuildRequires: kf5-kauth-devel >= 5.85.0
25 BuildRequires: kf5-kcmutils-devel >= 5.70
26 BuildRequires: kf5-kcodecs-devel >= 5.85.0
27 BuildRequires: kf5-kconfig-devel >= 5.85.0
28 BuildRequires: kf5-kcoreaddons-devel >= 5.85.0
29 BuildRequires: kf5-kdbusaddons-devel >= 5.70
30 BuildRequires: kf5-kdeclarative-devel >= 5.70
31 BuildRequires: kf5-ki18n-devel >= 5.70
32 BuildRequires: kf5-knotifications-devel >= 5.70
33 BuildRequires: kf5-kpackage-devel >= 5.85.0
34 BuildRequires: kf5-kservice-devel >= 5.85.0
36 BuildRequires: pkgconfig
37 BuildRequires: rpmbuild(macros) >= 1.164
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define qt5dir %{_libdir}/qt5
44 This repository contains a Plasma Sytem Settings module and a KDED
45 module to handle authorization of Thunderbolt devices connected to the
46 computer. There's also a shared library (libkbolt) that implements
47 common interface between the modules and the system-wide bolt daemon,
48 which does the actual hard work of talking to the kernel.
51 %setup -q -n %{kpname}-%{version}
57 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
58 -DHTML_INSTALL_DIR=%{_kdedocdir} \
63 rm -rf $RPM_BUILD_ROOT
64 %ninja_install -C build
66 %find_lang %{kpname} --all-name --with-kde
69 rm -rf $RPM_BUILD_ROOT
71 %post -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
74 %files -f %{kpname}.lang
75 %defattr(644,root,root,755)
76 %{_libdir}/libkbolt.so
77 %{_libdir}/qt5/plugins/kf5/kded/kded_bolt.so
78 %{_datadir}/knotifications5/kded_bolt.notifyrc
79 %dir %{_datadir}/kpackage/kcms/kcm_bolt
80 %dir %{_datadir}/kpackage/kcms/kcm_bolt/contents
81 %dir %{_datadir}/kpackage/kcms/kcm_bolt/contents/ui
82 %{_datadir}/kpackage/kcms/kcm_bolt/contents/ui/DeviceList.qml
83 %{_datadir}/kpackage/kcms/kcm_bolt/contents/ui/DeviceView.qml
84 %{_datadir}/kpackage/kcms/kcm_bolt/contents/ui/main.qml
85 %{_datadir}/kpackage/kcms/kcm_bolt/contents/ui/utils.js
86 %{_libdir}/qt5/plugins/plasma/kcms/systemsettings/kcm_bolt.so
87 %{_desktopdir}/kcm_bolt.desktop