SHA256
1
0
forked from pool/bluez

Accepting request 867144 from home:seife:testing

add bluez-test-2to3.diff to get rid of python2 dependency

OBS-URL: https://build.opensuse.org/request/show/867144
OBS-URL: https://build.opensuse.org/package/show/Base:System/bluez?expand=0&rev=300
This commit is contained in:
Stefan Seyfried
2021-01-27 10:56:24 +00:00
committed by Git OBS Bridge
parent bb29df7ebf
commit 0ad73c6951
3 changed files with 758 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package bluez
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2010-2020 B1 Systems GmbH, Vohburg, Germany
#
# All modifications and additions to the file contributed by third parties
@@ -45,6 +45,8 @@ Patch2: bluez-sdp-unix-path.patch
Patch3: bluez-cups-libexec.patch
# workaround for broken tests (reported upstream but not yet fixed)
Patch4: bluez-disable-broken-tests.diff
# get rid of python2. WARNING: this is autogenerated by 2to3 and might not work
Patch5: bluez-test-2to3.diff
# Move 43xx firmware path for RPi3 bluetooth support bsc#1140688
Patch10: RPi-Move-the-43xx-firmware-into-lib-firmware.patch
# Upstream suggests to use btmon instead of hcidump and does not want those patches
@@ -185,6 +187,9 @@ sed -i "/SystemdService=.*/d" obexd/src/org.bluez.obex.service
# for auto-enable subpackage
echo AutoEnable=true >> src/main.conf
# 2to3 does not fix the #! line
sed -i '1s#/usr/bin/python$#/usr/bin/python3#' test/*
%build
# because of patch4...
autoreconf -fi