%global commit 273c8301afbdd53d63c478ab9b95ad44ba9738df Name: sdm845-fwload Version: 0.1 Release: 1768719095%{?dist} Summary: A tool to extract firmware from a running SDM845 device License: MIT URL: https://github.com/pocketblue/sdm845-fwload Source: %{url}/archive/%{commit}.tar.gz BuildRequires: systemd-rpm-macros Requires: pil-squasher %description %{summary}. %global debug_package %{nil} %prep %autosetup -n %{name}-%{commit} %install install -Dm755 %{name} -t %{buildroot}%{_bindir}/ install -Dm644 %{name}.service -t %{buildroot}%{_unitdir}/ %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %{_bindir}/%{name} %{_unitdir}/%{name}.service %changelog %autochangelog