X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fbluetooth-firmware-bcm.spec;h=bcd5a338cbf5531bf79f006f2327b3b130993b3b;hb=30cb3d4ceef424e31d6622c2b4d0666dc57cb061;hp=e332944a63aeb0b2ce52727e202a7cf52bff9b28;hpb=3e4862098213d49c310c172f29a6618998752c40;p=platform%2Fadaptation%2Fbluetooth-firmware-bcm.git diff --git a/packaging/bluetooth-firmware-bcm.spec b/packaging/bluetooth-firmware-bcm.spec index e332944..bcd5a33 100644 --- a/packaging/bluetooth-firmware-bcm.spec +++ b/packaging/bluetooth-firmware-bcm.spec @@ -3,10 +3,12 @@ Summary: firmware and tools for bluetooth Version: 0.1.3 Release: 1 Group: Hardware Support/Handset -License: Apache +License: Apache-2.0 # NOTE: Source name does not match package name. This should be # resolved in the future, by I don't have that power. - Ryan Ware Source0: %{name}-%{version}.tar.gz +Source1: bluetooth-hciattach@.service +Source2: bluetooth-hci-device.service Provides: bluetooth-scripts BuildRequires: pkgconfig(vconf) @@ -47,6 +49,9 @@ mkdir -p %{buildroot}/usr/share/license cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name} cat %{_builddir}/%{name}-%{version}/LICENSE.Broadcom >> %{buildroot}/usr/share/license/%{name} +install -D -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/system/bluetooth-hciattach@.service +install -D -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-device.service + %files %defattr(-,root,root,-) #%{_bindir}/bcmtool_4330b1 @@ -58,6 +63,13 @@ cat %{_builddir}/%{name}-%{version}/LICENSE.Broadcom >> %{buildroot}/usr/share/l %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh +%exclude %{_libdir}/systemd/system/bluetooth-hciattach@.service +%exclude %{_libdir}/systemd/system/bluetooth-hci-device.service +%manifest %{name}.manifest + +%post exynos3250 +rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh +ln -s %{_prefix}/etc/bluetooth/bt-dev-start-exynos3250.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh %files exynos3250 %defattr(-,root,root,-) @@ -69,6 +81,9 @@ cat %{_builddir}/%{name}-%{version}/LICENSE.Broadcom >> %{buildroot}/usr/share/l %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-exynos3250.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh /usr/share/license/%{name} +%{_libdir}/systemd/system/bluetooth-hciattach@.service +%{_libdir}/systemd/system/bluetooth-hci-device.service +%manifest %{name}.manifest %post artik rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh @@ -83,3 +98,6 @@ ln -s %{_prefix}/etc/bluetooth/bt-dev-start-artik.sh %{_prefix}/etc/bluetooth/bt %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-artik.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh /usr/share/license/%{name} +%{_libdir}/systemd/system/bluetooth-hciattach@.service +%{_libdir}/systemd/system/bluetooth-hci-device.service +%manifest %{name}.manifest