Initial commit

This commit is contained in:
Koichiro Iwao 2024-07-18 00:59:20 +00:00 committed by Koichiro Iwao
commit 1c410776b2
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1 @@
e95f72f9e1c2e5d108f251770e5145898026b6d4 SOURCES/raspberrypi-sys-mods-e888b060f09d763d9c51ba503b6befbc2181aa0e.tar.gz

View File

@ -0,0 +1,43 @@
%global rsm_commit e888b060f09d763d9c51ba503b6befbc2181aa0e
%global rsm_srcdir %{name}-%{rsm_commit}
Name: raspberrypi-sys-mods
Version: 20240718
Release: 1%{?dist}
Summary: Supplemental system configuration files for Raspberry Pi
BuildArch: noarch
ExclusiveArch: aarch64
License: BSD
URL: https://github.com/RPi-Distro/raspberrypi-sys-mods
Source0: https://github.com/RPi-Distro/raspberrypi-sys-mods/archive/%{rsm_commit}/raspberrypi-sys-mods-%{rsm_commit}.tar.gz
Requires: systemd-udev
%description
This package contains some supplemental configuration files
to operate Raspberry Pi specific devices.
%prep
%setup -n %{rsm_srcdir}
# cherry pick OS independent part
%{__sed} -i.bak '1,13d' etc.armhf/udev/rules.d/99-com.rules
%if 0%{?almalinux_ver} == 8
%{__sed} -i.bak -e "s|'s/base/:/'|s/base/:/|" etc.armhf/udev/rules.d/99-com.rules
%endif
%build
# nothing to build
%install
rm -rf $RPM_BUILD_ROOT
%{__install} -D -m 444 debian/copyright -D %{buildroot}%{_datadir}/%{name}/LICENSE
%{__install} -D -m 644 etc.armhf/udev/rules.d/99-com.rules %{buildroot}%{_sysconfdir}/udev/rules.d/99-com.rules
%files
%license %{_datadir}/%{name}/LICENSE
%{_sysconfdir}/udev/rules.d/99-com.rules
%changelog
* Thu Jul 18 2024 Koichiro Iwao <meta@almalinux.org> - 20240718-1
- Initial creation