raspberrypi-bluetooth/raspberrypi-bluetooth.spec

59 lines
1.8 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 1f8d16200050b59ff9b859ee7565cdf7b08053bb
%global debug_package %{nil}
Name: raspberrypi-bluetooth
Version: 20200904
Release: 1
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}.tar.gz
%description
This package contains executable files of bluetooth required by some RaspberryPi devices.
%prep
%setup -q -n pi-bluetooth-%{version} -c
mv pi-bluetooth-%{commitid} %{name}-%{version}
%install
mkdir -p %{buildroot}%{_bin_path}
mkdir -p %{buildroot}%{_rules_path}
mkdir -p %{buildroot}%{_systemd_path}
mkdir -p %{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
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 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.