14
0
Tomáš Chvátal
2018-07-02 11:11:00 +00:00
committed by Git OBS Bridge
parent abf10c4ecb
commit 5370449e9e
2 changed files with 8 additions and 12 deletions

View File

@@ -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 Mon Jul 2 01:11:41 UTC 2018 - arun@gmx.de

View File

@@ -27,6 +27,7 @@ URL: http://github.com/simplejson/simplejson
Source: https://files.pythonhosted.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%python_subpackages %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 pure Python code with no dependencies, but includes an optional C extension for
a speed boost. 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 %prep
%setup -q -n simplejson-%{version} %setup -q -n simplejson-%{version}
@@ -52,6 +45,8 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%install %install
%python_install %python_install
%python_expand rm -rf %{buildroot}%{$python_sitearch}/simplejson/tests/
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check
%python_exec setup.py test %python_exec setup.py test
@@ -59,10 +54,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc CHANGES.txt README.rst %doc CHANGES.txt README.rst
%exclude %{python_sitearch}/simplejson/tests/*
%{python_sitearch}/simplejson* %{python_sitearch}/simplejson*
%files %{python_files test}
%{python_sitearch}/simplejson/tests/*
%changelog %changelog