%define kdeplasmaver 5.21.3 %define qtver 5.9.0 %define kpname bluedevil Summary: Integrate the Bluetooth technology within KDE workspace and applications Name: kp5-%{kpname} Version: 5.21.3 Release: 1 License: GPL v2+/LGPL v2.1+ Group: X11/Libraries Source0: http://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz # Source0-md5: 23a02eb12e3ed94aa410c5aef90f6833 URL: http://www.kde.org/ BuildRequires: Qt5Core-devel >= %{qtver} BuildRequires: cmake >= 2.8.12 BuildRequires: kf5-bluez-qt-devel BuildRequires: kf5-extra-cmake-modules >= 1.4.0 BuildRequires: kf5-kded-devel BuildRequires: ninja BuildRequires: qt5-build >= %{qtver} BuildRequires: rpmbuild(macros) >= 1.164 BuildRequires: tar >= 1:1.22 BuildRequires: xz BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Integrate the Bluetooth technology within KDE workspace and applications. %prep %setup -q -n %{kpname}-%{version} %build install -d build cd build %cmake -G Ninja \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ -DHTML_INSTALL_DIR=%{_kdedocdir} \ .. %ninja_build %install rm -rf $RPM_BUILD_ROOT %ninja_install -C build %find_lang bluedevil --all-name --with-kde %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f bluedevil.lang %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/bluedevil-sendfile %attr(755,root,root) %{_bindir}/bluedevil-wizard %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/kded/bluedevil.so %attr(755,root,root) %{_libdir}/qt5/plugins/kio_bluetooth.so %attr(755,root,root) %{_libdir}/qt5/plugins/kio_obexftp.so %dir %{_libdir}/qt5/qml/org/kde/plasma/private/bluetooth %{_libdir}/qt5/qml/org/kde/plasma/private/bluetooth/qmldir %attr(755,root,root) %{_libdir}/qt5/qml/org/kde/plasma/private/bluetooth/libbluetoothplugin.so %{_desktopdir}/org.kde.bluedevilsendfile.desktop %{_desktopdir}/org.kde.bluedevilwizard.desktop %dir %{_datadir}/bluedevilwizard %{_datadir}/bluedevilwizard/pin-code-database.xml %{_datadir}/knotifications5/bluedevil.notifyrc %{_datadir}/kservices5/bluetooth.protocol %{_datadir}/kservices5/obexftp.protocol %{_datadir}/kservices5/plasma-applet-org.kde.plasma.bluetooth.desktop %{_datadir}/mime/packages/bluedevil-mime.xml %{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth %{_datadir}/remoteview/bluetooth-network.desktop %{_datadir}/metainfo/org.kde.plasma.bluetooth.appdata.xml %{_libdir}/qt5/plugins/kcms/kcm_bluetooth.so %dir %{_datadir}/kpackage/kcms/kcm_bluetooth %dir %{_datadir}/kpackage/kcms/kcm_bluetooth/contents %dir %{_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui %{_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui/Bluetooth.qml %{_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui/Device.qml %{_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui/General.qml %{_datadir}/kpackage/kcms/kcm_bluetooth/metadata.desktop %{_datadir}/kpackage/kcms/kcm_bluetooth/metadata.json %{_datadir}/kservices5/bluetooth.desktop