Modify the install path for license file
[platform/core/connectivity/bluetooth-agent.git] / packaging / bluetooth-agent.spec
index 549157a..da3f618 100644 (file)
@@ -181,7 +181,6 @@ pushd common_build
 popd
 %endif
 
-install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/bluetooth-agent
 install -D -m 0644 packaging/bluetooth-map-agent.service %{buildroot}%{_libdir}/systemd/user/bluetooth-map-agent.service
 # This usage of profile macro does NOT conflict 4.0 configurability.
 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv"
@@ -217,19 +216,21 @@ rm %{_bindir}/bluetooth-hf-agent
 
 %files
 %manifest %{name}.manifest
+%license LICENSE
 %defattr(-, root, root)
-%{_datadir}/license/bluetooth-agent
 
 # This usage of profile macro does NOT conflict 4.0 configurability.
 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv"
 # Original: wearable, ivi. Added: common, "undefined"
 %files profile_wearable
+%license LICENSE
 %{_bindir}/bluetooth-hf-agent
 %{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service
 %exclude %{_libdir}/systemd/user/bluetooth-map-agent.service
 %exclude %{_libdir}/systemd/system/bluetooth-pbap-agent.service
 
 %files profile_ivi
+%license LICENSE
 %{_bindir}/bluetooth-hf-agent.ivi
 %{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service
 %exclude %{_libdir}/systemd/user/bluetooth-map-agent.service
@@ -240,6 +241,7 @@ rm %{_bindir}/bluetooth-hf-agent
 %if "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
 # Original: common, mobile, tv. Added: "undefined"
 %files profile_common
+%license LICENSE
 %{_bindir}/bluetooth-ag-agent
 %{_bindir}/bluetooth-map-agent
 %{_bindir}/bluetooth-pb-agent
@@ -254,6 +256,7 @@ rm %{_bindir}/bluetooth-hf-agent
 
 %files ipsp
 %manifest %{name}.manifest
+%license LICENSE
 %defattr(-, root, root)
 %{_datadir}/dbus-1/system-services/org.projectx.bt_ipsp.service
 %{_bindir}/bt-ipsp