%global commit d980dd9d6a367c3124c5536fa8ed9832067c3fcd %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapinfo 20200206git%{shortcommit} Name: annotation-summary Version: 0.1 Release: 3.%{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