diff options
Diffstat (limited to 'bluetooth.spec')
| -rw-r--r-- | bluetooth.spec | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/bluetooth.spec b/bluetooth.spec new file mode 100644 index 0000000..a668b43 --- /dev/null +++ b/bluetooth.spec @@ -0,0 +1,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 |
