summaryrefslogtreecommitdiff
path: root/packaging/hal-backend-bluetooth-usb.spec
blob: 2d829cdb0d23e484748f6d89a960d910410bcf96 (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
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

BuildRequires:  cmake
BuildRequires:  pkgconfig(hal-rootstrap)

%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} \
	-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 -p /sbin/ldconfig

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