diff options
author | Wootak Jung <wootak.jung@samsung.com> | 2022-04-18 09:46:42 +0900 |
---|---|---|
committer | Wootak Jung <wootak.jung@samsung.com> | 2022-04-18 09:47:57 +0900 |
commit | 1ac12f454251be9edfbb565561a129c2c32b8fd6 (patch) | |
tree | 97c6f870445850b520e8e12789863245e9e3fdfa | |
parent | 79d915734c5fa3ffba8e0bd2348d463a004c8fd5 (diff) | |
download | bluez-1ac12f454251be9edfbb565561a129c2c32b8fd6.tar.gz bluez-1ac12f454251be9edfbb565561a129c2c32b8fd6.tar.bz2 bluez-1ac12f454251be9edfbb565561a129c2c32b8fd6.zip |
Add certificate definition for PTS
Change-Id: I3619e2dc82cdd7253e08109ee1345e9e1527c1fd
-rwxr-xr-x | packaging/bluez.spec | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/packaging/bluez.spec b/packaging/bluez.spec index 1f03588f..524542cd 100755 --- a/packaging/bluez.spec +++ b/packaging/bluez.spec @@ -3,6 +3,8 @@ %global __provides_exclude_from ^(.*\\.tm1)$ #%define __spec_check_pre exit 0 +%define unified true +%define certificate false #%define with_libcapng --enable-capng %define _libpath /usr/lib @@ -60,6 +62,7 @@ Recommends: %{name}-profile_common = %{version}-%{release} %description The Bluetooth stack for Linux. +%if %{unified} == true %package extension-bredr Summary: Bluez extension for BREDR functionality Requires: %{name} = %{version}-%{release} @@ -73,6 +76,7 @@ Requires: %{name} = %{version}-%{release} Conflicts: %{name}-extension-bredr = %{version}-%{release} %description extension-le Bluez extension for LE functionality +%endif %package -n obexd Summary: OBEX Server A basic OBEX server implementation @@ -167,6 +171,7 @@ autoreconf -fiv export CFLAGS_DEFAULT="$CFLAGS" +%if %{unified} == true # Add GCC9 exception export CFLAGS+=" -Wno-stringop-truncation -Wno-format-truncation -Wno-address-of-packed-member" @@ -294,7 +299,7 @@ cp -a %{buildroot}%{_libexecdir}/bluetooth/bluetoothd bredr/ make distclean autoreconf -fiv - +%endif export CFLAGS="$CFLAGS_DEFAULT" # Add GCC9 exception @@ -313,6 +318,10 @@ echo x86_64 export CFLAGS+=" -DARCH64" %endif +%if %{certificate} == true +export CFLAGS+=" -DTIZEN_CERTIFICATE" +%endif + %reconfigure --disable-static \ --sysconfdir=%{_sysconfdir} \ --localstatedir=%{_localstatedir} \ @@ -359,6 +368,7 @@ make check %install %make_install +%if %{unified} == true pushd bredr for FILE in bluetoothd; do mv "$FILE" "%{buildroot}%{_libexecdir}/bluetooth/$FILE.bredr"; done popd @@ -366,11 +376,14 @@ popd pushd le for FILE in bluetoothd; do mv "$FILE" "%{buildroot}%{_libexecdir}/bluetooth/$FILE.le"; done popd +%endif # bluez-test rm -rvf $RPM_BUILD_ROOT/%{_libdir}/gstreamer-* #install --mode=0755 -D %{S:4} $RPM_BUILD_ROOT/usr/lib/udev/bluetooth.sh +%if %{unified} == true install --mode=0644 -D %{S:7} $RPM_BUILD_ROOT/%{_sysconfdir}/modprobe.d/50-bluetooth.conf +%endif # no idea why this is suddenly necessary... install --mode 0755 -d $RPM_BUILD_ROOT/var/lib/bluetooth @@ -414,6 +427,7 @@ install -D -m 0644 obexd/src/obex.service %{buildroot}%{_libpath}/systemd/system install -D -m 0644 src/bluetooth.service %{buildroot}%{_libpath}/systemd/system/bluez-start.service +%if %{unified} == true %post -n bluez-extension-bredr pushd %{_libexecdir}/bluetooth for FILE in bluetoothd.bredr; do mv "$FILE" "${FILE%.bredr}"; done @@ -425,6 +439,7 @@ pushd %{_libexecdir}/bluetooth for FILE in bluetoothd.le; do mv "$FILE" "${FILE%.le}"; done popd /sbin/ldconfig +%endif %files %manifest %{name}.manifest @@ -459,6 +474,7 @@ popd %{_unitdir}/bluez-start.service %exclude %{_unitdir}/bluetooth.service +%if %{unified} == true %files -n bluez-extension-bredr %manifest %{name}.manifest %defattr(-, root, root) @@ -472,6 +488,7 @@ popd %dir /var/lib/bluetooth %dir %{_sysconfdir}/modprobe.d %config(noreplace) %{_sysconfdir}/modprobe.d/50-bluetooth.conf +%endif %files mesh %manifest %{name}.manifest |