raspberrypi-sys-mods/SPECS/raspberrypi-sys-mods.spec
2024-07-18 06:37:39 +00:00

41 lines
1.1 KiB
RPMSpec

%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
%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