80 lines
2.4 KiB
RPMSpec
80 lines
2.4 KiB
RPMSpec
%global _lib_path /usr/lib/raspi-config
|
|
%global _bin_path /usr/bin
|
|
%global _doc_path /usr/share/doc/raspi-config
|
|
%global _share_path /usr/share/raspi-config
|
|
%global _service_path /etc/init.d
|
|
%global _proxy_path /etc/sudoers.d
|
|
%global _systemd_path /etc/systemd/system
|
|
%global commitid 8607dbc7281cef142b2e0c12839176f189d48a1b
|
|
%global debug_package %{nil}
|
|
|
|
Name: raspi-config
|
|
Version: 20210625
|
|
Release: 4
|
|
Summary: Raspberry Pi configuration tool
|
|
License: MIT
|
|
URL: https://github.com/RPi-Distro/raspi-config
|
|
Source0: https://github.com/RPi-Distro/raspi-config/archive/%{commitid}/raspi-config-%{commitid}.tar.gz
|
|
Patch0000: openEuler.patch
|
|
|
|
Requires: openeuler-lsb parted lua psmisc pigpio
|
|
AutoReq: no
|
|
AutoProv: yes
|
|
|
|
Provides: raspi-config = %{version}-%{release}
|
|
|
|
ExclusiveArch: aarch64
|
|
ExclusiveOS: Linux
|
|
|
|
%description
|
|
A simple configuration tool for common Raspberry Pi administrative tasks.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version} -c
|
|
cd %{name}-%{commitid}
|
|
%patch0000 -p1
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_lib_path}
|
|
mkdir -p %{buildroot}%{_bin_path}
|
|
mkdir -p %{buildroot}%{_doc_path}
|
|
mkdir -p %{buildroot}%{_share_path}
|
|
mkdir -p %{buildroot}%{_service_path}
|
|
mkdir -p %{buildroot}%{_proxy_path}
|
|
mkdir -p %{buildroot}%{_systemd_path}
|
|
|
|
cd %{name}-%{commitid}
|
|
install -p -m 755 usr/lib/raspi-config/* %{buildroot}%{_lib_path}/
|
|
install -p -m 755 raspi-config %{buildroot}%{_bin_path}/
|
|
install -p -m 755 debian/raspi-config.init %{buildroot}%{_service_path}/raspi-config
|
|
install -p -m 644 debian/changelog %{buildroot}%{_doc_path}/
|
|
install -p -m 644 usr/share/raspi-config/10-blanking.conf %{buildroot}%{_share_path}/
|
|
install -p -m 440 etc/sudoers.d/010_proxy %{buildroot}%{_proxy_path}/
|
|
install -p -m 644 autologin@.service %{buildroot}%{_systemd_path}/
|
|
|
|
cd -
|
|
|
|
%files
|
|
%{_lib_path}
|
|
%{_doc_path}
|
|
%{_share_path}
|
|
%{_bin_path}/*
|
|
%{_service_path}/*
|
|
%{_proxy_path}/*
|
|
%{_systemd_path}/*
|
|
|
|
%changelog
|
|
* Wed Sep 29 2021 Yafen Fang <yafen@iscas.ac.cn> - 20210625-4
|
|
- enable select boot order
|
|
- enable select bootloader version
|
|
|
|
* Sat Sep 18 2021 Yafen Fang<yafen@iscas.ac.cn> - 20210625-3
|
|
- enable screen resolution
|
|
- enable dtparam in func do_spi and do_i2c
|
|
- enable vcgencmd in func do_memory_split
|
|
|
|
* Fri Jun 25 2021 Yafen Fang<yafen@iscas.ac.cn> - 20210625-2
|
|
- adjust for openEuler
|
|
|
|
* Fri Jun 25 2021 Yafen Fang<yafen@iscas.ac.cn> - 20210625-1
|
|
- init raspi-config from upstream (commitid: 8607dbc7281cef142b2e0c12839176f189d48a1b) |