SHA256
1
0
forked from pool/bluez

Accepting request 750239 from home:seife:testing

- Add bcond for mesh, also enable mesh on Leap 15.2/SLE15SP2.

OBS-URL: https://build.opensuse.org/request/show/750239
OBS-URL: https://build.opensuse.org/package/show/Base:System/bluez?expand=0&rev=282
This commit is contained in:
Stefan Seyfried 2019-11-22 08:52:46 +00:00 committed by Git OBS Bridge
parent 9388458ac0
commit fb8e1c1be3
2 changed files with 37 additions and 5 deletions

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Thu Nov 21 16:51:16 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- BuildIgnore shared-mime-info, pulled in by libgio-2_0-0, not
required for building, but causes a build loop.
- Add bcond for mesh, also enable mesh on Leap 15.2/SLE15SP2.
- Properly conditionalize all files which are only built with enabled
mesh functionality, fixes build on Leap 15.1 and earlier.
-------------------------------------------------------------------
Thu Nov 14 18:17:29 UTC 2019 - Stefan Seyfried <seife+obs@b1-systems.com>
- remove comment
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Nov 7 11:14:13 UTC 2019 - Stefan Seyfried <seife+obs@b1-systems.com> Thu Nov 7 11:14:13 UTC 2019 - Stefan Seyfried <seife+obs@b1-systems.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package bluez # spec file for package bluez
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LLC
# Copyright (c) 2010-2019 B1 Systems GmbH, Vohburg, Germany # Copyright (c) 2010-2019 B1 Systems GmbH, Vohburg, Germany
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -17,6 +17,12 @@
# #
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
%bcond_without mesh
%else
%bcond_with mesh
%endif
# maintained at https://github.com/seifes-opensuse-packages/bluez.git # maintained at https://github.com/seifes-opensuse-packages/bluez.git
# contributions via pull requests are welcome! # contributions via pull requests are welcome!
# #
@ -26,9 +32,8 @@ Release: 0
Summary: Bluetooth Stack for Linux Summary: Bluetooth Stack for Linux
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: Hardware/Mobile Group: Hardware/Mobile
Url: http://www.bluez.org URL: http://www.bluez.org
Source: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz Source: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz
# just to make crazy checks happy
Source2147483647:README.md Source2147483647:README.md
Source5: baselibs.conf Source5: baselibs.conf
Source7: bluetooth.modprobe Source7: bluetooth.modprobe
@ -60,8 +65,13 @@ BuildRequires: pkgconfig(dbus-1) >= 1.6
BuildRequires: pkgconfig(ell) >= 0.3 BuildRequires: pkgconfig(ell) >= 0.3
%endif %endif
BuildRequires: pkgconfig(glib-2.0) >= 2.28 BuildRequires: pkgconfig(glib-2.0) >= 2.28
# libgio-2_0-0 has a runtime dependency on shared-mime-info, which is not
# required for building here, but causes a build loop
#!BuildIgnore: shared-mime-info
%if %{with mesh}
# json-c is needed for --enable-mesh # json-c is needed for --enable-mesh
BuildRequires: pkgconfig(json-c) BuildRequires: pkgconfig(json-c)
%endif
BuildRequires: pkgconfig(libcap-ng) BuildRequires: pkgconfig(libcap-ng)
BuildRequires: pkgconfig(libical) BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libudev)
@ -176,7 +186,7 @@ autoreconf -fi
--enable-library \ --enable-library \
--enable-tools \ --enable-tools \
--enable-cups \ --enable-cups \
%if 0%{?suse_version} >= 1550 %if %{with mesh}
--enable-mesh \ --enable-mesh \
%endif %endif
--enable-midi \ --enable-midi \
@ -225,6 +235,7 @@ chmod 0644 *.py *.xml *.dtd
# fix python shebang # fix python shebang
sed -i -e '1s/env p/p/' %{buildroot}%{_libdir}/bluez/test/{example-gatt-{client,server},test-mesh} sed -i -e '1s/env p/p/' %{buildroot}%{_libdir}/bluez/test/{example-gatt-{client,server},test-mesh}
%if %{with mesh}
# boo#1151518 # boo#1151518
mkdir -p %{buildroot}%{_defaultdocdir}/%{name} mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
mv %{buildroot}%{_sysconfdir}/dbus-1/system.d/bluetooth-mesh.conf %{buildroot}%{_defaultdocdir}/%{name} mv %{buildroot}%{_sysconfdir}/dbus-1/system.d/bluetooth-mesh.conf %{buildroot}%{_defaultdocdir}/%{name}
@ -240,6 +251,7 @@ org.bluez.mesh.service to %{_datadir}/dbus-1/system-services/,
then reboot. then reboot.
EOF EOF
touch -r %{SOURCE0} %{buildroot}%{_defaultdocdir}/%{name}/README-mesh.SUSE touch -r %{SOURCE0} %{buildroot}%{_defaultdocdir}/%{name}/README-mesh.SUSE
%endif
%check %check
%if ! 0%{?qemu_user_space_build} %if ! 0%{?qemu_user_space_build}
@ -272,7 +284,9 @@ make check V=0
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS ChangeLog README dbus-apis src/main.conf %doc AUTHORS ChangeLog README dbus-apis src/main.conf
%if %{with mesh}
%doc %{_defaultdocdir}/%{name}/* %doc %{_defaultdocdir}/%{name}/*
%endif
%license COPYING %license COPYING
%{_bindir}/bluemoon %{_bindir}/bluemoon
%{_bindir}/btattach %{_bindir}/btattach
@ -291,11 +305,13 @@ make check V=0
%{_libdir}/bluetooth/plugins/sixaxis.so %{_libdir}/bluetooth/plugins/sixaxis.so
%dir %{_libexecdir}/bluetooth %dir %{_libexecdir}/bluetooth
%{_libexecdir}/bluetooth/bluetoothd %{_libexecdir}/bluetooth/bluetoothd
%if %{with mesh}
%{_libexecdir}/bluetooth/bluetooth-meshd %{_libexecdir}/bluetooth/bluetooth-meshd
%endif
%{_libexecdir}/bluetooth/obexd %{_libexecdir}/bluetooth/obexd
%{_bindir}/bluetoothctl %{_bindir}/bluetoothctl
%{_bindir}/btmon %{_bindir}/btmon
%if 0%{?suse_version} >= 1550 %if %{with mesh}
%{_bindir}/meshctl %{_bindir}/meshctl
%endif %endif
%{_bindir}/hcidump %{_bindir}/hcidump
@ -321,7 +337,9 @@ make check V=0
%dir %{_sysconfdir}/modprobe.d %dir %{_sysconfdir}/modprobe.d
%config(noreplace) %{_sysconfdir}/modprobe.d/50-bluetooth.conf %config(noreplace) %{_sysconfdir}/modprobe.d/50-bluetooth.conf
%{_unitdir}/bluetooth.service %{_unitdir}/bluetooth.service
%if %{with mesh}
%{_unitdir}/bluetooth-mesh.service %{_unitdir}/bluetooth-mesh.service
%endif
%{_datadir}/dbus-1/system-services/org.bluez.service %{_datadir}/dbus-1/system-services/org.bluez.service
%{_datadir}/dbus-1/services/org.bluez.obex.service %{_datadir}/dbus-1/services/org.bluez.obex.service
# not packaged, boo#1151518 # not packaged, boo#1151518