-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkp6-bluedevil.spec
109 lines (99 loc) · 3.97 KB
/
kp6-bluedevil.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#
# Conditional build:
%bcond_with tests # build with tests
%define kdeplasmaver 6.3.2
%define qtver 5.15.2
%define kpname bluedevil
Summary: Integrate the Bluetooth technology within KDE workspace and applications
Name: kp6-%{kpname}
Version: 6.3.2
Release: 2
License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/plasma/%{kdeplasmaver}/%{kpname}-%{version}.tar.xz
# Source0-md5: 62d50988f3833ed98e22a0c6fbb805ff
URL: http://www.kde.org/
BuildRequires: Qt6Core-devel >= %{qtver}
BuildRequires: Qt6Quick-devel >= %{qtver}
BuildRequires: Qt6Widgets-devel >= %{qtver}
BuildRequires: cmake >= 3.16.0
BuildRequires: kf6-bluez-qt-devel
BuildRequires: kf6-extra-cmake-modules >= 1.4.0
BuildRequires: kf6-kcmutils-devel
BuildRequires: kf6-kconfigwidgets-devel
BuildRequires: kf6-kdbusaddons-devel
BuildRequires: kf6-kdeclarative-devel
BuildRequires: kf6-kded-devel
BuildRequires: kf6-ki18n-devel
BuildRequires: kf6-kio-devel
BuildRequires: kf6-kirigami-devel
BuildRequires: kf6-knotifications-devel
BuildRequires: kf6-ksvg-devel
BuildRequires: kf6-kwidgetsaddons-devel
BuildRequires: kf6-kwindowsystem-devel
BuildRequires: kp6-libplasma-devel >= %{version}
BuildRequires: ninja
BuildRequires: qt6-build >= %{qtver}
BuildRequires: rpmbuild(macros) >= 1.164
BuildRequires: tar >= 1:1.22
BuildRequires: xz
Obsoletes: kp5-%{kpname} < %{version}
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
%cmake -B build \
-G Ninja \
%{!?with_tests:-DBUILD_TESTING=OFF} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DKDE_INSTALL_DOCBUNDLEDIR=%{_kdedocdir}
%ninja_build -C build
%if %{with tests}
ctest
%endif
%install
rm -rf $RPM_BUILD_ROOT
%ninja_install -C build
# not supported by glibc yet
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie
%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}/qt6/plugins/kf6/kded/bluedevil.so
%attr(755,root,root) %{_libdir}/qt6/plugins/kf6/kio/kio_bluetooth.so
%attr(755,root,root) %{_libdir}/qt6/plugins/kf6/kio/kio_obexftp.so
%attr(755,root,root) %{_libdir}/qt6/plugins/plasma/kcms/systemsettings/kcm_bluetooth.so
%dir %{_libdir}/qt6/qml/org/kde/plasma/private/bluetooth
%{_libdir}/qt6/qml/org/kde/plasma/private/bluetooth/bluetoothplugin.qmltypes
%{_libdir}/qt6/qml/org/kde/plasma/private/bluetooth/kde-qmlmodule.version
%attr(755,root,root) %{_libdir}/qt6/qml/org/kde/plasma/private/bluetooth/libbluetoothplugin.so
%{_libdir}/qt6/qml/org/kde/plasma/private/bluetooth/qmldir
%{_libdir}/qt6/qml/org/kde/plasma/private/bluetooth/SharedDevicesStateProxyModel.qml
%{_desktopdir}/kcm_bluetooth.desktop
%{_desktopdir}/org.kde.bluedevilsendfile.desktop
%{_desktopdir}/org.kde.bluedevilwizard.desktop
%dir %{_datadir}/bluedevilwizard
%{_datadir}/bluedevilwizard/pin-code-database.xml
%{_datadir}/knotifications6/bluedevil.notifyrc
%{_datadir}/metainfo/org.kde.plasma.bluetooth.appdata.xml
%{_datadir}/mime/packages/bluedevil-mime.xml
%dir %{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth
%dir %{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth/contents
%dir %{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui
%{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/DeviceItem.qml
%{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/FullRepresentation.qml
%{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/MediaPlayerItem.qml
%{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/Toolbar.qml
%{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/main.qml
%{_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth/metadata.json
%{_datadir}/qlogging-categories6/bluedevil.categories
%{_datadir}/remoteview/bluetooth-network.desktop