Blame asahi-scripts.spec

9ce6df6
Name:           asahi-scripts
9ce6df6
Version:        20220318.1
9ce6df6
Release:        1%{?dist}
9ce6df6
Summary:        Miscellaneous admin scripts for Asahi Linux
9ce6df6
9ce6df6
License:        MIT
9ce6df6
URL:            https://github.com/AsahiLinux/asahi-scripts
9ce6df6
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
9ce6df6
# PR#4: systemd: add missing install sections
9ce6df6
Patch:          %{url}/pull/4.patch
9ce6df6
9ce6df6
BuildRequires:  systemd-rpm-macros
9ce6df6
9ce6df6
BuildArch:      noarch
9ce6df6
9ce6df6
%description
9ce6df6
This package contains miscellaneous admin scripts for the Asahi Linux reference
9ce6df6
distro.
9ce6df6
9ce6df6
%package -n     update-vendor-firmware
9ce6df6
Summary:        Install and update firmware from the VendorFW package
9ce6df6
Requires:       bash
9ce6df6
Requires:       coreutils
9ce6df6
Requires:       diffutils
9ce6df6
Requires:       linux-firmware
9ce6df6
Requires:       tar
9ce6df6
9ce6df6
%description -n update-vendor-firmware
9ce6df6
Apple Silicon systems rely on some non-redistributable firware blobs. This
9ce6df6
package extracts and installs them from the VendorFW package provided in the
9ce6df6
ESP.
9ce6df6
9ce6df6
%prep
9ce6df6
%autosetup -p1
9ce6df6
9ce6df6
%build
9ce6df6
# nothing to do here
9ce6df6
9ce6df6
%install
9ce6df6
install -Dpm0755 -t %{buildroot}%{_sbindir} update-vendor-firmware
9ce6df6
install -Dpm0644 -t %{buildroot}%{_unitdir} systemd/update-vendor-firmware.service
9ce6df6
9ce6df6
%post -n update-vendor-firmware
9ce6df6
%systemd_post update-vendor-firmware.service
9ce6df6
9ce6df6
%preun -n update-vendor-firmware
9ce6df6
%systemd_preun update-vendor-firmware.service
9ce6df6
9ce6df6
%postun -n update-vendor-firmware
9ce6df6
%systemd_postun_with_restart update-vendor-firmware.service
9ce6df6
9ce6df6
%files -n update-vendor-firmware
9ce6df6
%license LICENSE
9ce6df6
%{_sbindir}/update-vendor-firmware
9ce6df6
%{_unitdir}/update-vendor-firmware.service
9ce6df6
9ce6df6
%changelog
9ce6df6
%autochangelog