%global commit 4eb9008f6e5a954b1f523915fee470c2b91ba01f %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapinfo 20200206git%{shortcommit} Name: annotation-summary Version: 0.1 Release: 2.%{snapinfo}%{?dist} Summary: Extract annotations/notes from a pdf file License: undef URL: https://git.ionic.at/pub/astra/%{name} Source0: %{url}/snapshot/%{name}-%{commit}.tar.gz BuildArch: noarch Requires: python3-poppler-qt5 Requires: python3-pdfkit Requires: wkhtmltopdf %description Extract annotations/notes from a pdf file %prep %autosetup -n %{name}-%{commit} %build %install install -D -m 755 -p %{name}.py %{buildroot}%{_bindir}/%{name} %files #%license add-license-file-here #%doc add-docs-here %{_bindir}/%{name} %changelog * Thu Feb 6 2020 David Kaufmann - 0.1-1 - Initial commit