File pdfcrack.spec of Package pdfcrack
#
# spec file for package pdfcrack
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: pdfcrack
Version: 0.20
Release: 0
Summary: A Password Recovery Tool for PDF-files
License: GPL-2.0-or-later
Group: Productivity/Security
URL: https://pdfcrack.sourceforge.net/
Source: https://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: https://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz.asc
Source2: %name.keyring
Patch1: pdfcrack-makefile_optflags.patch
%description
PDFCrack is a GNU/Linux (other POSIX-compatible systems should work too)
tool for recovering passwords and content from PDF-files. It is small,
command line driven without external dependencies. The application is
Open Source (GPL).
Features:
* Supports the standard security handler (revision 2, 3 and 4) on all known PDF-versions
* Supports cracking both owner and userpasswords
* Both wordlists and bruteforcing the password is supported
* Simple permutations (currently only trying first character as Upper Case)
* Save/Load a running job
* Simple benchmarking
* Optimised search for owner-password when user-password is known
%prep
%autosetup
%build
%make_build
%install
install -D -m 0755 pdfcrack %{buildroot}%{_bindir}/pdfcrack
install -D -m 0644 pdfcrack.1 %{buildroot}%{_mandir}/man1/pdfcrack.1
%files
%license COPYING
%doc changelog README
%{_bindir}/pdfcrack
%{_mandir}/man1/pdfcrack.1%{?ext_man}
%changelog