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}%{_libdir}/systemd/user
#install -m 0644 packaging/bluetooth-frwk-tv.service %{buildroot}%{_libdir}/systemd/user
mkdir -p %{buildroot}%{_unitdir}/%{_servicedir}
%files
%manifest %{name}.manifest
+%license LICENSE
%defattr(-, root, root)
%{_libdir}/libbluetooth-api.so.*
-%{_datadir}/license/bluetooth-frwk
%{_unitdir}/%{_servicedir}/bluetooth-frwk.service
%{_unitdir}/bluetooth-frwk.service
%{_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)
%{_datadir}/dbus-1/system-services/org.projectx.bt.service
%{_bindir}/bt-service
#%attr(0666,-,-) %{_varlibdir}/bluetooth/auto-pair-blacklist
#%attr(0666,-,-) %{_prefix}/etc/bluetooth/stack_info
#%{_dumpdir}/bluetooth_log_dump.sh
-%{_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