- Drop the test conditional

- Use %license macro

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyrsistent?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal 2018-08-11 06:34:45 +00:00 committed by Git OBS Bridge
parent 6fc74f1470
commit fdca55c5c4
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Aug 11 06:34:31 UTC 2018 - tchvatal@suse.com
- Drop the test conditional
- Use %license macro
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Aug 10 23:33:25 UTC 2018 - jsikes@suse.de Fri Aug 10 23:33:25 UTC 2018 - jsikes@suse.de

View File

@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-pyrsistent Name: python-pyrsistent
Version: 0.14.4 Version: 0.14.4
Release: 0 Release: 0
@ -31,11 +30,9 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-six Requires: python-six
%if %{with test}
BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six} BuildRequires: %{python_module six}
%endif
%python_subpackages %python_subpackages
%description %description
@ -59,15 +56,14 @@ export CFLAGS="%{optflags}"
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%if %{with test}
%check %check
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
py.test-%{$python_bin_suffix} py.test-%{$python_bin_suffix}
} }
%endif
%files %{python_files} %files %{python_files}
%doc CHANGES.txt LICENCE.mit README README.rst %license LICENSE.mit
%doc CHANGES.txt README README.rst
%{python_sitearch}/* %{python_sitearch}/*
%changelog %changelog