14
0
forked from pool/python-abseil

- Require enum34 also on runtime when on python2

- Install license

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2018-10-17 07:48:53 +00:00
committed by Git OBS Bridge
parent ddcf9ebc44
commit 2ea5936a85
2 changed files with 17 additions and 8 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 17 07:47:32 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Require enum34 also on runtime when on python2
- Install license
-------------------------------------------------------------------
Tue Oct 16 16:03:22 UTC 2018 - cgoll@suse.com

View File

@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -23,21 +23,23 @@ Release: 0
Summary: Abseil Python Common Libraries
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/abseil/abseil-py
URL: https://github.com/abseil/abseil-py
Source0: https://github.com/abseil/abseil-py/archive/pypi-v%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-enum34
BuildRequires: python-mock
BuildRequires: python-rpm-macros
BuildRequires: python-six
Requires: python-six
BuildArch: noarch
%ifpython2
Requires: python-enum34
%endif
# SECTION test requirements
BuildRequires: %{python_module six}
# /SECTION
BuildRequires: fdupes
Requires: python-six
BuildRequires: python-six
BuildArch: noarch
%python_subpackages
%description
@@ -58,12 +60,13 @@ been extensively tested and used in production.
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python smoke_tests/sample_app.py --echo smoke 2>&1 |grep 'echo is smoke.'
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python smoke_tests/sample_test.py 2>&1 | grep 'msg_for_test'
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/*