%global commit 87f6a328233b18870bef09bf02038b93e7a1e154 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global snapinfo 20200209git%{shortcommit} Name: annotation-summary Version: 0.1 Release: 4.%{snapinfo}%{?dist} Summary: Extract annotations/notes from a pdf file License: FreeBSD 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 LICENSE.txt %doc README.md %{_bindir}/%{name} %changelog * Sun Feb 9 2020 David Kaufmann - 0.1-4 - Add license, cleanup code, update spec * Thu Feb 6 2020 David Kaufmann - 0.1-1 - Initial commit