55 lines
1.6 KiB
RPMSpec
55 lines
1.6 KiB
RPMSpec
%global _bin_path /usr/bin
|
|
%global _rules_path /lib/udev/rules.d
|
|
%global _systemd_path /lib/systemd/system
|
|
%global _license_path /usr/share/licenses/raspi
|
|
%global debug_package %{nil}
|
|
|
|
Name: raspberrypi-bluetooth
|
|
Version: 20200729
|
|
Release: 2
|
|
Summary: bluetooth files used for RaspberryPi
|
|
License: BSD-3-Clause
|
|
ExclusiveArch: aarch64
|
|
|
|
Provides: raspberrypi-bluetooth = %{version}-%{release}
|
|
|
|
URL: https://github.com/RPi-Distro/pi-bluetooth
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source1: LICENCE.pi-bluetooth
|
|
|
|
%prep
|
|
%setup -q -c
|
|
|
|
%description
|
|
This package contains executable files of bluetooth required by some RaspberryPi devices.
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bin_path}
|
|
mkdir -p %{buildroot}%{_rules_path}
|
|
mkdir -p %{buildroot}%{_systemd_path}
|
|
mkdir -p %{buildroot}%{_license_path}
|
|
install -p -m 644 %{_sourcedir}/LICENCE.* %{buildroot}%{_license_path}/
|
|
cd %{name}-%{version}
|
|
install -p -m 755 usr/bin/* %{buildroot}%{_bin_path}/
|
|
install -p -m 644 lib/udev/rules.d/90-pi-bluetooth.rules %{buildroot}%{_rules_path}/
|
|
install -p -m 644 debian/pi-bluetooth.bthelper\@.service %{buildroot}%{_systemd_path}/bthelper\@.service
|
|
install -p -m 644 debian/pi-bluetooth.hciuart.service %{buildroot}%{_systemd_path}/hciuart.service
|
|
|
|
cd -
|
|
|
|
%files
|
|
%dir %{_rules_path}
|
|
%dir %{_systemd_path}
|
|
%dir %{_license_path}
|
|
%{_license_path}
|
|
%{_bin_path}/*
|
|
%{_rules_path}/*
|
|
%{_systemd_path}/*
|
|
|
|
%changelog
|
|
* Mon 31 Aug 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200729-2
|
|
- Add source url in spec.
|
|
|
|
* Wed Jul 29 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200729-1
|
|
- Add rules file, bthelper and hciuart from pi-bluetooth.
|