summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorWootak Jung <wootak.jung@samsung.com>2021-06-22 10:10:54 +0900
committerWootak Jung <wootak.jung@samsung.com>2021-06-22 14:36:38 +0900
commit781e45b20496df9183358522ccb2f7d2f4fba2ed (patch)
tree26ddb0f134a9db367199c99f1aca0f48dd872e95 /packaging
parent150ecb4e67c50dcb87bc8758046fe4f05abf925f (diff)
downloadbluetooth-vim3-tizen_6.5.tar.gz
bluetooth-vim3-tizen_6.5.tar.bz2
bluetooth-vim3-tizen_6.5.zip
Change-Id: I9641c9331f5dd6cd42fcd000385edd86135b5ae4 Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/hal-backend-bluetooth-vim3.spec46
1 files changed, 46 insertions, 0 deletions
diff --git a/packaging/hal-backend-bluetooth-vim3.spec b/packaging/hal-backend-bluetooth-vim3.spec
new file mode 100644
index 0000000..1958122
--- /dev/null
+++ b/packaging/hal-backend-bluetooth-vim3.spec
@@ -0,0 +1,46 @@
+Name: hal-backend-bluetooth-vim3
+Summary: firmware and tools for bluetooth
+Version: 0.1.0
+Release: 1
+Group: TO_BE_FILLED
+License: Apache-2.0
+Source0: hal-backend-bluetooth-vim3-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(hal-api-common)
+BuildRequires: pkgconfig(hal-api-bluetooth)
+
+%description
+VIM3 firmware and tools for bluetooth
+
+%prep
+%setup -q -n hal-backend-bluetooth-vim3-%{version}
+
+%build
+export CFLAGS+=" -fpie -fvisibility=hidden"
+export CXXFLAGS+=" -fpie -fvisibility=hidden"
+export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
+
+cmake ./ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ -DPLUGIN_INSTALL_PREFIX=%{_prefix} \
+ -DHAL_LIB_DIR=%{_hal_libdir} \
+ -DHAL_LICENSE_DIR=%{_hal_licensedir} \
+ -DHAL_SYSCONF_DIR=%{_hal_sysconfdir}
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%post
+ln -s %{_hal_sysconfdir}/bluetooth/BCM4359C0.hcd /usr/etc/bluetooth/BCM4359C0.hcd
+
+%files
+%manifest %{name}.manifest
+%{_hal_licensedir}/%{name}/LICENSE.APLv2
+%{_hal_licensedir}/%{name}/LICENSE.Broadcom
+%{_hal_sysconfdir}/bluetooth/BCM4359C0.hcd
+%{_hal_sysconfdir}/bluetooth/bt-dev-end.sh
+%{_hal_sysconfdir}/bluetooth/bt-dev-start.sh
+%{_hal_libdir}/*.so*