forked from pool/python-simplejson
- Do not package tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simplejson?expand=0&rev=79
This commit is contained in:
committed by
Git OBS Bridge
parent
abf10c4ecb
commit
5370449e9e
@@ -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
|
||||
|
Reference in New Issue
Block a user