https://bugzilla.redhat.com/show_bug.cgi?id=1731111
--- Comment #1 from Patrik Kopkan pkopkan@redhat.com ---
%description FIXME: Can this be synced with setup.py?
Unfortunately, You cannot change %description at %build etc. If you mean copy it from setup.py. Yes, that's fine.
You need to add license file somewhere
change: %license -> %license LICENSE %doc -> %doc README.md
Also it would be good to have downloadable source and version matching release in github repo. So if you do release you get easily both.
Otherwise version should be done this way https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_snaps... and the would look like this https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_commit...
%global commit b218430bfa0f78b8ae07d9303028df4d24ad8b6f %global shortcommit %(c=%{commit}; echo ${c:0:7})
Source0: https://github.com/larskarlitski/osbuild/archive/%%7Bcommit%7D/%%7Bname%7D-%... expanded: Source: https://github.com/larskarlitski/osbuild/archive/b218430bfa0f78b8ae07d930302...