blob: 0eee6b5c6fd46f857b52f0a0906c4628817b3d56 (
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
54
55
56
57
58
59
60
|
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: openssl
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
install -D -m 0644 packaging/bt-driver-insmod.service %{buildroot}%{_libdir}/systemd/system/bt-driver-insmod.service
install -D -m 0644 packaging/bt-driver-insmod.path %{buildroot}%{_libdir}/systemd/system/bt-driver-insmod.path
%post artik530
mkdir -p %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
mkdir -p %{_libdir}/systemd/system/multi-user.target.wants/
ln -sf %{_libdir}/systemd/system/bt-driver-insmod.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
ln -sf %{_libdir}/systemd/system/bt-driver-insmod.path %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
ln -sf %{_libdir}/systemd/system/bt-driver-insmod.path %{_libdir}/systemd/system/multi-user.target.wants/
%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
%{_libdir}/systemd/system/bt-driver-insmod.service
%{_libdir}/systemd/system/bt-driver-insmod.path
|