From b8b01e5b500901af1dd94dc7a857ea1f770cb2f7 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 22 Oct 2026 08:24:10 +0000 Subject: automatic import of bluetooth --- .gitignore | 1 + bluetooth.spec | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 93 insertions(+) create mode 100644 bluetooth.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..a6dc076 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/bluetooth-5.87.tar.gz 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 + +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 +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 - 5.87-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..47b3662 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +09a7dae65e0d6b7ad78e32eaa3dbf388 bluetooth-5.87.tar.gz -- cgit v1.2.3