diff --git a/python-python-gnupg.changes b/python-python-gnupg.changes index e03b306..bee5b70 100644 --- a/python-python-gnupg.changes +++ b/python-python-gnupg.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 24 10:07:27 UTC 2019 - Tomáš Chvátal + +- Enable tests + ------------------------------------------------------------------- Thu Jan 24 09:31:19 UTC 2019 - Karol Babioch diff --git a/python-python-gnupg.spec b/python-python-gnupg.spec index ce27e9a..b577438 100644 --- a/python-python-gnupg.spec +++ b/python-python-gnupg.spec @@ -18,7 +18,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python -%bcond_with test Name: python-python-gnupg Version: 0.4.4 Release: 0 @@ -29,20 +28,16 @@ URL: http://pythonhosted.org/python-gnupg/index.html Source: https://files.pythonhosted.org/packages/source/p/python-gnupg/python-gnupg-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: gpg2 BuildRequires: python-rpm-macros Requires: gpg2 +Obsoletes: python-gnupg < %{version} +Provides: python-gnupg = %{version} BuildArch: noarch -%if %{with test} -BuildRequires: gpg2 -%endif %ifpython2 Obsoletes: %{oldpython}-gnupg < %{version} Provides: %{oldpython}-gnupg = %{version} %endif -%ifpython3 -Obsoletes: python3-gnupg < %{version} -Provides: python3-gnupg = %{version} -%endif %python_subpackages %description @@ -59,10 +54,9 @@ encryption and signature functionality from Python programs. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check +export NO_EXTERNAL_TESTS=true %python_exec test_gnupg.py -%endif %files %{python_files} %license LICENSE.txt