5699c08
%global pypi_name hashID
5699c08
5699c08
Name:           hashid
5699c08
Version:        3.1.4
5699c08
Release:        1%{?dist}
5699c08
Summary:        A tool to identify different types of hashes
5699c08
5699c08
License:        GPLv3+
5699c08
URL:            https://github.com/psypanda/hashID
5699c08
Source0:        https://github.com/psypanda/hashID/archive/v%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz
5699c08
BuildArch:      noarch
5699c08
5699c08
BuildRequires:  python3-devel
5699c08
5699c08
%description
5699c08
Identify the different types of hashes used to encrypt data and especially
5699c08
passwords. hashID is a tool which supports the identification of over 220
5699c08
unique hash types using regular expressions. A detailed list of supported
5699c08
hashes can be found here.
5699c08
5699c08
It is able to identify a single hash, parse a file or read multiple files in
5699c08
a directory and identify the hashes within them.
5699c08
5699c08
%prep
5699c08
%autosetup -n %{pypi_name}-%{version}
5699c08
sed -i -e '/^#!\//, 1d' hashid.py
5699c08
5699c08
%build
5699c08
%py3_build
5699c08
5699c08
%install
5699c08
%py3_install
5699c08
install -Dp -m 0644 doc/man/%{name}.7 %{buildroot}%{_mandir}/man7/%{name}.7
5699c08
5699c08
%files
5699c08
%doc README.rst doc/CHANGELOG
5699c08
%license doc/LICENSE
5699c08
%{_mandir}/man*/%{name}*.*
5699c08
%{_bindir}/%{name}
5699c08
%{python3_sitelib}/*.egg-info
5699c08
%{python3_sitelib}/%{name}.py
5699c08
%{python3_sitelib}/__pycache__/*
5699c08
5699c08
%changelog
5699c08
* Sat May 25 2019 Fabian Affolter <mail@fabian-affolter.ch> - 3.1.4-1
5699c08
- Initial package for Fedora