blob: a668b43ac8d6d2dc6d5b3ae486fd0b4b9cdccf4e (
plain)
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
|
# topdir: bluetooth-5.87 (from --transform tar)
Name: bluetooth
Version: 5.87
Release: 1%{?dist}
Summary: BlueZ Bluetooth protocol stack library for Linux
License: GPL-2.0
URL: https://github.com/bluez/bluez
Source0: https://mirrors.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
Group: Development/Libraries
Packager: openEuler Builder <builder@openeuler.org>
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: gcc
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: glib2-devel
BuildRequires: dbus-devel
%description
BlueZ is the official Linux Bluetooth protocol stack. This package
provides the Bluetooth library (libbluetooth) used by applications
that interface with Bluetooth devices.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Packager: openEuler Builder <builder@openeuler.org>
Requires: %{name} = %{version}-%{release}
Provides: bluez-libs-devel = %{version}-%{release}
%description devel
Header files and development libraries for the BlueZ Bluetooth library.
%prep
%autosetup -n %{name}-%{version}
# Generate configure script from autotools (git clone has no pre-generated configure)
./bootstrap
%build
%configure \
--enable-library \
--disable-udev \
--disable-obex \
--disable-tools \
--disable-monitor \
--disable-client \
--disable-cups \
--disable-a2dp \
--disable-avrcp \
--disable-network \
--disable-hid \
--disable-hog \
--disable-bap \
--disable-bass \
--disable-mcp \
--disable-ccp \
--disable-vcp \
--disable-micp \
--disable-csip \
--disable-tmap \
--disable-gmap \
--disable-asha \
--disable-hfp
# Build only the bluetooth library target, avoiding the daemon and tools
# which would pull in additional dependencies not needed for the library
%make_build lib/libbluetooth.la
%install
# Install only the library, headers, and pkgconfig file
%make_install install-libLTLIBRARIES install-pkgincludeHEADERS install-pkgconfigDATA
# Remove libtool archive files
find %{buildroot} -name '*.la' -delete
%files
%license COPYING COPYING.LIB
%{_libdir}/libbluetooth.so.*
%files devel
%{_includedir}/bluetooth/
%{_libdir}/libbluetooth.so
%{_libdir}/pkgconfig/bluez.pc
%changelog
* Thu Oct 22 2026 openEuler Builder <builder@openeuler.org> - 5.87-1
- Initial package
|