commit 1c410776b2fcefe980bf2b78d7ac7cada73612ff Author: Koichiro Iwao Date: Thu Jul 18 00:59:20 2024 +0000 Initial commit diff --git a/.raspberrypi-sys-mods.metadata b/.raspberrypi-sys-mods.metadata new file mode 100644 index 0000000..3c90dc6 --- /dev/null +++ b/.raspberrypi-sys-mods.metadata @@ -0,0 +1 @@ +e95f72f9e1c2e5d108f251770e5145898026b6d4 SOURCES/raspberrypi-sys-mods-e888b060f09d763d9c51ba503b6befbc2181aa0e.tar.gz diff --git a/SPECS/raspberrypi-sys-mods.spec b/SPECS/raspberrypi-sys-mods.spec new file mode 100644 index 0000000..de607a3 --- /dev/null +++ b/SPECS/raspberrypi-sys-mods.spec @@ -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 - 20240718-1 +- Initial creation