rm -rf %{buildroot}
%make_install
-install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/bluetooth-frwk
-install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/bluetooth-frwk-service
-install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/bluetooth-frwk-httpproxy
-install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/bluetooth-frwk-devel
-
mkdir -p %{buildroot}%{_unitdir}/starter.target.wants
mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
%files
%manifest %{name}.manifest
+%license LICENSE
%defattr(-, root, root)
%{_libdir}/libbluetooth-api.so.*
-%{_datadir}/license/bluetooth-frwk
%files devel
%defattr(-, root, root)
%{_includedir}/bt-service/bluetooth-ipsp-api.h
%{_libdir}/pkgconfig/bluetooth-api.pc
%{_libdir}/libbluetooth-api.so
-%{_datadir}/license/bluetooth-frwk-devel
%files service
%manifest %{name}.manifest
+%license LICENSE
%defattr(-, root, root)
%{_bindir}/bt-service
%{_sysconfdir}/dbus-1/system.d/bluetooth-frwk-service.conf
%{_bindir}/bluetooth-frwk-test
%{_varlibdir}/bluetooth
%{_prefix}/etc/bluetooth
-%{_datadir}/license/bluetooth-frwk-service
%files httpproxy
%manifest %{name}.manifest
+%license LICENSE
%defattr(-, root, root)
%{_bindir}/bt-httpproxy
-%{_datadir}/license/bluetooth-frwk-httpproxy
%{_datadir}/dbus-1/system-services/org.projectx.httpproxy.service
%{_sysconfdir}/dbus-1/system.d/bluetooth-frwk-httpproxy.conf
%files core
%manifest %{name}.manifest
+%license LICENSE
%defattr(-, root, root)
%{_datadir}/dbus-1/system-services/org.projectx.bt_core.service
%{_bindir}/bt-core
%files test
%manifest %{name}.manifest
+%license LICENSE
%defattr(-, root, root)
%{_bindir}/bluetooth-frwk-test
#{_bindir}/bluetooth-gatt-test
%files plugin-headed
%manifest %{name}.manifest
+%license LICENSE
%defattr(-, root, root)
%{_libdir}/bt-plugin-headed.so
mv bluetooth-frwk.service bluetooth-frwk.service.common
popd
%files profile_common
+%license LICENSE
%{_unitdir}/starter.target.wants/bluetooth-frwk.service
%{_unitdir}/bluetooth-frwk.service.common
%{_datadir}/dbus-1/system-services/org.projectx.bt.service
mv bluetooth-frwk.service bluetooth-frwk.service.mobile
popd
%files profile_mobile
+%license LICENSE
%{_unitdir}/multi-user.target.wants/bluetooth-frwk.service
%{_unitdir}/bluetooth-frwk.service.mobile
%{_datadir}/dbus-1/system-services/org.projectx.bt.service
popd
%files extension-TM1
%{_unitdir}/bluetooth-frwk.service.tm1
+%license LICENSE
%defattr(-, root, root)
%{_bindir}/bt-core.tm1
%endif
mv bluetooth-frwk.service bluetooth-frwk.service.wearable
popd
%files profile_wearable
+%license LICENSE
%{_unitdir}/multi-user.target.wants/bluetooth-frwk.service
%{_unitdir}/bluetooth-frwk.service.wearable
%{_datadir}/dbus-1/system-services/org.projectx.bt.service
mv bluetooth-frwk.service bluetooth-frwk.service.tv
popd
%files profile_tv
+%license LICENSE
%{_unitdir}/multi-user.target.wants/bluetooth-frwk.service
%{_unitdir}/bluetooth-frwk.service.tv
%{_datadir}/dbus-1/system-services/org.projectx.bt.service
mv org.projectx.bt.service org.projectx.bt.service.ivi
popd
%files profile_ivi
+%license LICENSE
%{_unitdir}/multi-user.target.wants/bluetooth-frwk.service
%{_unitdir}/bluetooth-frwk.service.wearable
%{_datadir}/dbus-1/system-services/org.projectx.bt.service.ivi