blob: 68a5488c3cfb26d315eb538bc444bd19bc9eeccc (
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
|
Name: hal-backend-bluetooth-usb
Summary: firmware and tools for bluetooth
Version: 0.1.0
Release: 1
Group: TO_BE_FILLED
License: Apache-2.0
Source0: hal-backend-bluetooth-usb-%{version}.tar.gz
Provides: bluetooth-scripts
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(hal-api-common)
BuildRequires: pkgconfig(hal-api-bluetooth)
%description
USB firmware and tools for bluetooth
%prep
%setup -q -n hal-backend-bluetooth-usb-%{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}
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
%post -p /sbin/ldconfig
%files
%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
/hal/lib/*.so*
|