diff --git a/python-xkcdpass.spec b/python-xkcdpass.spec index a1f2ac2..20766a6 100644 --- a/python-xkcdpass.spec +++ b/python-xkcdpass.spec @@ -27,9 +27,10 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/redacted/XKCD-password-generator Source: https://github.com/redacted/XKCD-password-generator/archive/xkcdpass-%{version}.tar.gz +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python3-base -BuildRequires: %{python_module setuptools} BuildArch: noarch %python_subpackages @@ -41,10 +42,13 @@ inspired by XKCD 936 (https://xkcd.com/936/) %setup -q -n XKCD-password-generator-xkcdpass-%{version} %build -%python_build +%{python_build} + +%check +%{pytest} %install -%python_install +%{python_install} # Remove the shebang sed -i -e '1d' %{buildroot}%{python_sitelib}/xkcdpass/xkcd_password.py