3 %bcond_with tests # build with tests
4 %define kdeplasmaver 5.26.3
6 %define kpname bluedevil
7 Summary: Integrate the Bluetooth technology within KDE workspace and applications
11 License: GPL v2+/LGPL v2.1+
13 Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
14 # Source0-md5: a135867e9eb0a71dd74d28b18afc1308
15 URL: http://www.kde.org/
16 BuildRequires: Qt5Core-devel >= %{qtver}
17 BuildRequires: Qt5Quick-devel >= %{qtver}
18 BuildRequires: Qt5Widgets-devel >= %{qtver}
19 BuildRequires: cmake >= 2.8.12
20 BuildRequires: kf5-bluez-qt-devel
21 BuildRequires: kf5-extra-cmake-modules >= 1.4.0
22 BuildRequires: kf5-kconfigwidgets-devel
23 BuildRequires: kf5-kdbusaddons-devel
24 BuildRequires: kf5-kdeclarative-devel
25 BuildRequires: kf5-kded-devel
26 BuildRequires: kf5-ki18n-devel
27 BuildRequires: kf5-kio-devel
28 BuildRequires: kf5-kirigami2-devel
29 BuildRequires: kf5-knotifications-devel
30 BuildRequires: kf5-kwidgetsaddons-devel
31 BuildRequires: kf5-kwindowsystem-devel
32 BuildRequires: kf5-plasma-framework-devel
34 BuildRequires: qt5-build >= %{qtver}
35 BuildRequires: rpmbuild(macros) >= 1.164
36 BuildRequires: tar >= 1:1.22
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Integrate the Bluetooth technology within KDE workspace and
45 %setup -q -n %{kpname}-%{version}
51 %{!?with_tests:-DBUILD_TESTING=OFF} \
52 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
53 -DHTML_INSTALL_DIR=%{_kdedocdir} \
62 rm -rf $RPM_BUILD_ROOT
63 %ninja_install -C build
65 %find_lang bluedevil --all-name --with-kde
68 rm -rf $RPM_BUILD_ROOT
70 %post -p /sbin/ldconfig
71 %postun -p /sbin/ldconfig
73 %files -f bluedevil.lang
74 %defattr(644,root,root,755)
75 %attr(755,root,root) %{_bindir}/bluedevil-sendfile
76 %attr(755,root,root) %{_bindir}/bluedevil-wizard
77 %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kded/bluedevil.so
78 %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/kio_bluetooth.so
79 %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kio/kio_obexftp.so
80 %dir %{_libdir}/qt5/qml/org/kde/plasma/private/bluetooth
81 %{_libdir}/qt5/qml/org/kde/plasma/private/bluetooth/qmldir
82 %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/plasma/private/bluetooth/libbluetoothplugin.so
83 %{_desktopdir}/org.kde.bluedevilsendfile.desktop
84 %{_desktopdir}/org.kde.bluedevilwizard.desktop
85 %dir %{_datadir}/bluedevilwizard
86 %{_datadir}/bluedevilwizard/pin-code-database.xml
87 %{_datadir}/knotifications5/bluedevil.notifyrc
88 %{_datadir}/mime/packages/bluedevil-mime.xml
89 %{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth
90 %{_datadir}/remoteview/bluetooth-network.desktop
91 %{_datadir}/metainfo/org.kde.plasma.bluetooth.appdata.xml
92 %dir %{_datadir}/kpackage/kcms/kcm_bluetooth
93 %dir %{_datadir}/kpackage/kcms/kcm_bluetooth/contents
94 %dir %{_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui
95 %{_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui/Device.qml
96 %{_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui/General.qml
97 %{_datadir}/kservices5/plasma-applet-org.kde.plasma.bluetooth.desktop
98 %{_libdir}/qt5/plugins/plasma/kcms/systemsettings/kcm_bluetooth.so
99 %{_desktopdir}/kcm_bluetooth.desktop
100 %{_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui/main.qml
101 %{_datadir}/qlogging-categories5/bluedevil.categories