%global commit 33c3dfa2c2a215647b130bc1a28d7ab969309636 Name: package-notes Version: 0.4~0.git%(c=%{commit}; echo ${c::7}) Release: %autorelease Summary: Generate a linker script to insert .note.package section %global forgeurl https://github.com/systemd/package-notes %forgemeta License: CC0 URL: %{forgeurl} Source0: %{forgesource} BuildArch: noarch BuildRequires: python3-devel Requires: python3dist(simplejson) %description This package provides a generator of linker scripts that insert a section with a note with a JSON payload that describes the package the binary was built for. %prep %autosetup -n package-notes-0.4 %build # nothing to do %install install -Dt %{buildroot}%{_bindir}/ generate-package-notes install -m 0644 -Dt %{buildroot}%{_mandir}/man1/ debian/generate-package-notes.1 %files %{_bindir}/generate-package-notes %{_mandir}/man1/generate-package-notes.1* %changelog %autochangelog