From 5370449e9e71e5bff946ee5602a919f7711954a57b495d45ccfb7f579ba4b916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 2 Jul 2018 11:11:00 +0000 Subject: [PATCH] - Do not package tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplejson?expand=0&rev=79 --- python-simplejson.changes | 5 +++++ python-simplejson.spec | 15 +++------------ 2 files changed, 8 insertions(+), 12 deletions(-) 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