init package
This commit is contained in:
parent
732825a4ba
commit
b20c4aa4d0
BIN
raspi-config-8607dbc7281cef142b2e0c12839176f189d48a1b.tar.gz
Normal file
BIN
raspi-config-8607dbc7281cef142b2e0c12839176f189d48a1b.tar.gz
Normal file
Binary file not shown.
65
raspi-config.spec
Normal file
65
raspi-config.spec
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
%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: 1
|
||||||
|
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
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
%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
|
||||||
|
* Fri Jun 25 2021 Yafen Fang<yafen@iscas.ac.cn> - 20210625-1
|
||||||
|
- init raspi-config from upstream (commitid: 8607dbc7281cef142b2e0c12839176f189d48a1b)
|
||||||
Loading…
x
Reference in New Issue
Block a user