Skip to content
Browse files
packaging: Split hciattach tool to own subpackage.
Avoid pulling all the tools and their dependencies if using only hciattach.
Hciattach is used by for example bluetooth-rfkill-event.

Also some packaging cleanup, remove Group and deprecated configure
  • Loading branch information
jusa committed Feb 3, 2020
1 parent 9220fa1 commit 5be4e938107c6a3cb3c67859f4e4cc0756c361d9
Showing 1 changed file with 14 additions and 17 deletions.
@@ -5,7 +5,6 @@ Name: bluez5
Summary: Bluetooth daemon
Version: 5.47
Release: 1
Group: Applications/System
License: GPLv2+
@@ -33,8 +32,6 @@ BuildRequires: pkgconfig(check)
BuildRequires: pkgconfig(libical)
BuildRequires: bison
BuildRequires: flex
BuildRequires: readline
BuildRequires: readline-devel
BuildRequires: automake
BuildRequires: autoconf
Conflicts: bluez
@@ -44,7 +41,6 @@ Conflicts: bluez

%package configs-mer
Summary: Bluetooth (bluez5) default configuration
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Provides: bluez5-configs
Conflicts: bluez-configs-mer
@@ -53,7 +49,6 @@ Conflicts: bluez-configs-mer

%package cups
Summary: Bluetooth (bluez5) CUPS support
Group: System/Daemons
Requires: %{name} = %{version}-%{release}
Requires: cups
Conflicts: bluez-cups
@@ -62,23 +57,20 @@ Conflicts: bluez-cups

%package doc
Summary: Bluetooth (bluez5) daemon documentation
Group: Documentation
Requires: %{name} = %{version}-%{release}
Conflicts: bluez-doc
%description doc

%package hcidump
Summary: Bluetooth (bluez5) packet analyzer
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Conflicts: bluez-hcidump
%description hcidump

%package libs
Summary: Bluetooth (bluez5) library
Group: System/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Conflicts: bluez-libs
@@ -87,15 +79,13 @@ Conflicts: bluez-libs

%package libs-devel
Summary: Bluetooth (bluez5) library development package
Group: Development/Libraries
Requires: bluez5-libs = %{version}
Conflicts: bluez-libs-devel
%description libs-devel

%package test
Summary: Test utilities for Bluetooth (bluez5)
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Requires: %{name}-libs = %{version}
Requires: dbus-python
@@ -106,15 +96,23 @@ Conflicts: bluez-test

%package tools
Summary: Command line tools for Bluetooth (bluez5)
Group: Applications/System
# Readline is GPLv3+
BuildRequires: pkgconfig(readline)
Requires: %{name} = %{version}-%{release}
Requires: %{name}-tools-hciattach = %{version}-%{release}
Conflicts: bluez-tools
%description tools

%package tools-hciattach
Summary: Command line tool for Bluetooth (bluez5)
Requires: %{name} = %{version}-%{release}
Conflicts: bluez-tools
%description tools-hciattach

%package obexd
Summary: OBEX server (bluez5)
Group: System/Daemons
Requires: %{name} = %{version}-%{release}
Requires: obex-capability
Conflicts: obexd
@@ -124,21 +122,18 @@ Conflicts: obexd-server

%package obexd-tools
Summary: Command line tools for OBEX (bluez5)
Group: Applications/System
%description obexd-tools

%package tracing
Summary: Configuration for bluez5 to enable tracing
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Conflicts: bluez-tracing
%description tracing
Will enable tracing for BlueZ 5

%package obexd-tracing
Summary: Configuration for bluez5-obexd to enable tracing
Group: Development/Tools
%description obexd-tracing
Will enable tracing for BlueZ 5 OBEX daemon

@@ -159,7 +154,6 @@ autoreconf --force --install
--with-systemduserunitdir=/usr/lib/systemd/user \
--enable-jolla-dbus-access \
--enable-jolla-did \
--enable-jolla-logcontrol \
--enable-sailfish-exclude \
--with-phonebook=sailfish \
--with-contentfilter=helperapp \
@@ -305,7 +299,6 @@ systemctl daemon-reload ||:
@@ -318,6 +311,10 @@ systemctl daemon-reload ||:

%files tools-hciattach

%files obexd
%config %{_sysconfdir}/obexd.conf

0 comments on commit 5be4e93

Please sign in to comment.