diff --git a/python-simplejson.changes b/python-simplejson.changes index d9fe4cf..a365462 100644 --- a/python-simplejson.changes +++ b/python-simplejson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 2 11:08:58 UTC 2018 - tchvatal@suse.com + +- Do not package tests + ------------------------------------------------------------------- Mon Jul 2 01:11:41 UTC 2018 - arun@gmx.de diff --git a/python-simplejson.spec b/python-simplejson.spec index 2893181..4ec433f 100644 --- a/python-simplejson.spec +++ b/python-simplejson.spec @@ -27,6 +27,7 @@ URL: http://github.com/simplejson/simplejson Source: https://files.pythonhosted.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros %python_subpackages @@ -35,14 +36,6 @@ simplejson is an extensible JSON encoder and decoder for Python 2.5+. It is pure Python code with no dependencies, but includes an optional C extension for a speed boost. -%package test -Summary: Tests for python-simplejson -Group: Development/Languages/Python -Requires: %{name} = %{version} - -%description test -Test cases for python-simplejson - %prep %setup -q -n simplejson-%{version} @@ -52,6 +45,8 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %install %python_install +%python_expand rm -rf %{buildroot}%{$python_sitearch}/simplejson/tests/ +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check %python_exec setup.py test @@ -59,10 +54,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %files %{python_files} %license LICENSE.txt %doc CHANGES.txt README.rst -%exclude %{python_sitearch}/simplejson/tests/* %{python_sitearch}/simplejson* -%files %{python_files test} -%{python_sitearch}/simplejson/tests/* - %changelog