summaryrefslogtreecommitdiff
path: root/packaging/bluetooth-firmware-marvell.spec
blob: 88a9d4617b3b6e2c4a28a50a6ba44aa2d5b062ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Name:      bluetooth-firmware-marvell
Summary:    firmware and tools for bluetooth
Version:    0.1.0
Release:    1
Group:      Hardware Support/Handset
License:    Apache-2.0
Source0:    %{name}-%{version}.tar.gz

# To make the random BT address
Requires:   openssl1.1

BuildRequires:  cmake
BuildRequires:  pkgconfig(dlog)
BuildRequires:  pkgconfig(hal-api-common)
BuildRequires:  pkgconfig(hal-api-bluetooth)

%description
firmware and tools for bluetooth

%package artik530
Summary:    BT script tools for artik530
Group:      Hardware Support/Handset

%description artik530
BT script tools for artik530

%prep
%setup -q

%build
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

%files
%manifest %{name}.manifest
%{_hal_licensedir}/%{name}/LICENSE

%files artik530
%manifest %{name}.manifest
%{_hal_licensedir}/%{name}/LICENSE
%{_hal_sysconfdir}/bluetooth/bt-dev-end.sh
%{_hal_sysconfdir}/bluetooth/bt-dev-start.sh
%{_hal_sysconfdir}/bluetooth/bt-set-addr.sh
%{_hal_libdir}/*.so*