70 lines
2.4 KiB
RPMSpec
70 lines
2.4 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 commitid 23af66cff597c80523bf9581d7f75d387227f183
|
|
%global debug_package %{nil}
|
|
|
|
Name: raspberrypi-bluetooth
|
|
Version: 20220318
|
|
Release: 5
|
|
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: https://github.com/RPi-Distro/pi-bluetooth/archive/%{commitid}/pi-bluetooth-%{commitid}.tar.gz
|
|
|
|
%description
|
|
This package contains executable files of bluetooth required by some RaspberryPi devices.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version} -c
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bin_path}
|
|
mkdir -p %{buildroot}%{_rules_path}
|
|
mkdir -p %{buildroot}%{_systemd_path}
|
|
mkdir -p %{buildroot}%{_license_path}
|
|
cd pi-bluetooth-%{commitid}
|
|
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
|
|
install -p -m 644 debian/copyright %{buildroot}%{_license_path}/LICENSE.pi-bluetooth
|
|
|
|
cd -
|
|
|
|
%files
|
|
%dir %{_rules_path}
|
|
%dir %{_systemd_path}
|
|
%dir %{_license_path}
|
|
%{_license_path}
|
|
%{_bin_path}/*
|
|
%{_rules_path}/*
|
|
%{_systemd_path}/*
|
|
|
|
%changelog
|
|
* Fri Mar 18 2022 Yafen Fang<yafen@iscas.ac.cn> - 20220318-5
|
|
- update pi-bluetooth to commit(23af66cff597c80523bf9581d7f75d387227f183): Add AA:AA:AA:AA:AA:AA as an "unprogrammed" address
|
|
|
|
* Tue Feb 23 2021 Yafen Fang<yafen@iscas.ac.cn> - 20210223-4
|
|
- update to the latest commit(6f6386e91e33966d3c4a3cfee72d61e14c6a11ef) of pi-bluetooth(0.1.15).
|
|
|
|
* Tue Nov 10 2020 Yafen Fang<yafen@iscas.ac.cn> - 20201110-3
|
|
- update to the latest commit(a69d8f54901aab31f2f47e0cc4f9d2879e183f1d) of pi-bluetooth(0.1.15).
|
|
|
|
* Wed Sep 16 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200904-2
|
|
- Change source0's name.
|
|
|
|
* Fri Sep 4 2020 Yafen Fang<yafen@iscas.ac.cn> - 20200904-1
|
|
- Update pi-bluetooth version to 0.1.15 release.
|
|
|
|
* Mon Aug 31 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.
|