Name: bluetooth-agent
Summary: Bluetooth agent packages that support various external profiles
-Version: 0.6.0
+Version: 0.7.5
Release: 1
Group: Network & Connectivity/Bluetooth
License: Apache-2.0
export CFLAGS="$CFLAGS -DTIZEN_FEATURE_BT_HFP_AG"
export CFLAGS="$CFLAGS -DTIZEN_SUPPORT_DUAL_HF"
-%ifarch aarch64 x86_64
+%ifarch aarch64 x86_64 riscv64
echo arch64
export CFLAGS+=" -DARCH64"
export CXXFLAGS+=" -DARCH64"
rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}%{_libdir}/systemd/system/
-mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/
+mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants/
# This usage of profile macro does NOT conflict 4.0 configurability.
#%if "%{?profile}" != "mobile" && "%{?profile}" != "tv"
install -D -m 0644 packaging/bluetooth-ag-agent.service %{buildroot}%{_unitdir}/bluetooth-ag-agent.service
install -D -m 0644 packaging/bluetooth-hf-agent.service %{buildroot}%{_unitdir}/bluetooth-hf-agent.service
install -D -m 0644 packaging/bluetooth-hid-agent.service %{buildroot}%{_unitdir}/bluetooth-hid-agent.service
+ln -s ../bluetooth-hf-agent.service %{buildroot}%{_unitdir}/multi-user.target.wants/bluetooth-hf-agent.service
%if 0%{?gcov:1}
mkdir -p %{buildroot}%{_datadir}/gcov/obj/%{name}
popd
%endif
-install -D -m 0644 packaging/bluetooth-hf-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hf-agent.service
-ln -s ../bluetooth-hf-agent.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/bluetooth-hf-agent.service
-
%files
%manifest %{name}.manifest
%license LICENSE
%{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service
%{_sysconfdir}/dbus-1/system.d/bluetooth-hf-agent.conf
%{_unitdir}/bluetooth-hf-agent.service
+%{_unitdir}/multi-user.target.wants/bluetooth-hf-agent.service
#%exclude %{_unitdir}/bluetooth-map-agent.service
#%exclude %{_unitdir}/bluetooth-pbap-agent.service
-%{_libdir}/systemd/system/bluetooth-hf-agent.service
-%{_libdir}/systemd/system/multi-user.target.wants/bluetooth-hf-agent.service
%files map
%manifest %{name}.manifest