summaryrefslogtreecommitdiff
path: root/packaging/bluetooth-firmware-marvell.spec
blob: b82d8898489fdcbcf13e814f350c64e97040ddcc (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
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
Provides:   bluetooth-scripts

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

BuildRequires:  cmake

%description
firmware and tools for bluetooth

%package artik530
Summary:    BT script tools for artik530
Group:      Hardware Support/Handset
Provides:   bluetooth-scripts

%description artik530
BT script tools for artik530

%prep
%setup -q

%build
cmake ./ -DCMAKE_INSTALL_PREFIX=%{_prefix} -DPLUGIN_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}

%make_install

%files
%manifest %{name}.manifest
%license LICENSE

%files artik530
%manifest %{name}.manifest
%license LICENSE
%defattr(-,root,root,-)
%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