%global debug_package %{nil} Name: pdfid Version: 0.2.9 Release: %autorelease Summary: Tool to test a PDF file License: Public Domain URL: https://blog.didierstevens.com/programs/pdf-tools/ Source0: https://didierstevens.com/files/software/pdfid_v0_2_9.zip BuildArch: noarch %description This tool is not a PDF parser, but it will scan a file to look for certain PDF keywords, allowing you to identify PDF documents that contain (for example) JavaScript or execute an action when opened. PDFiD will also handle name obfuscation. %prep %autosetup -c sed -i '1 s/python/python3/' pdfid.py %build echo ":) Nothing to do here" %install mkdir -p %{buildroot}%{_bindir} install -p -m 755 pdfid.py %{buildroot}%{_bindir}/pdfid mkdir -p %{buildroot}%{_datadir}/pdfid install -p -m 644 pdfid.ini %{buildroot}%{_datadir}/pdfid/ install -p -m 644 plugin_*.py %{buildroot}%{_datadir}/pdfid/ install -p -m 644 plugin_list %{buildroot}%{_datadir}/pdfid/ %files %{_bindir}/pdfid %{_datadir}/pdfid/pdfid.ini %{_datadir}/pdfid/plugin_*.py %{_datadir}/pdfid/plugin_list %changelog %autochangelog