%global debug_package %{nil} Name: pdf-parser Version: 0.7.10 Release: %autorelease Summary: Use it to parse a PDF document License: Public Domain URL: https://blog.didierstevens.com/programs/pdf-tools/ Source0: http://didierstevens.com/files/software/pdf-parser_V0_7_10.zip BuildArch: noarch Requires: python3-yara %description This tool will parse a PDF document to identify the fundamental elements used in the analyzed file. It will not render a PDF document. The code of the parser is quick-and-dirty, I’m not recommending this as text book case for PDF parsers, but it gets the job done. %prep %autosetup -c sed -i '1 s/env python/python3/' pdf-parser.py %build echo ":) Nothing to do here" %install install -Dp -m 755 pdf-parser.py %{buildroot}%{_bindir}/pdf-parser %files %{_bindir}/pdf-parser %changelog %autochangelog