rm -rf %{buildroot}
%make_install
-install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/bluetooth-agent
#mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
#%if "%{?profile}" != "wearable"
#install -m 0644 packaging/bluetooth-ag-agent.service %{buildroot}%{_unitdir}/
%files
%manifest %{name}.manifest
+%license LICENSE
%defattr(-, root, root)
%if "%{?profile}" == "wearable" || "%{?profile}" == "ivi"
%{_bindir}/bluetooth-hf-agent
%{_libdir}/systemd/user/bluetooth-map-agent.service
%{_libdir}/systemd/system/bluetooth-pbap-agent.service
%endif
-%{_datadir}/license/bluetooth-agent
%files ipsp
%manifest %{name}.manifest
+%license LICENSE
%defattr(-, root, root)
%{_datadir}/dbus-1/system-services/org.projectx.bt_ipsp.service
%{_bindir}/bt-ipsp