diff --git a/b4.spec b/b4.spec index 439510c..1ab88d8 100644 --- a/b4.spec +++ b/b4.spec @@ -27,6 +27,7 @@ Group: Development/Tools/Other URL: https://git.kernel.org/pub/scm/utils/b4/b4.git Source0: %{name}-%{version}.tar.xz BuildArch: noarch +BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} BuildRequires: tar Requires: python3-requests @@ -54,6 +55,12 @@ install -d %{buildroot}/%{_mandir}/man.5 install -m 0644 -t %{buildroot}/%{_mandir}/man.5 man/b4.5 %python_install +%check +%python_exec setup.py check +export PYTHONPATH="./" +%python_exec ./b4/command.py --version >check_version +echo %version | grep "`cat check_version`" + %files %doc README.rst %license COPYING