%global forgeurl https://gitlab.com/kitsunix/pyHIBP/pyHIBP %global version 4.2.0 %global commit 8994cdddd595d6efc12ff6aa3168a7e26eac5091 %global date 20220904 %forgemeta Name: python3-pyhibp Version: %{forgeversion} Release: %{autorelease} Summary: Python interface to the HIBP public API License: AGPL-3.0-or-later URL: %{forgeurl} Source0: %{forgesource} BuildArch: noarch BuildRequires: pkgconfig(python3) BuildRequires: python3dist(pip) BuildRequires: python3dist(requests) BuildRequires: python3dist(setuptools) BuildRequires: python3dist(wheel) Requires: python3-requests %description pyHIBP provides a Python interface to the HIBP public API. It allows check if personal data has been compromised. %prep %forgesetup %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %check %pyproject_check_import %install %pyproject_install %pyproject_save_files pyhibp %__install -p -D -m 644 -t %{buildroot}%{_pkgdocdir} CHANGELOG.md README.md %files -f %{pyproject_files} %license LICENSE %doc %{_pkgdocdir}