forked from pool/python-abseil
Accepting request 642547 from home:mslacken:ml
fixed tests and use diect github relased source OBS-URL: https://build.opensuse.org/request/show/642547 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abseil?expand=0&rev=1
This commit is contained in:
70
python-abseil.spec
Normal file
70
python-abseil.spec
Normal file
@@ -0,0 +1,70 @@
|
||||
#
|
||||
# spec file for package python-abseil
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-abseil
|
||||
Version: 0.5.0
|
||||
Release: 0
|
||||
Summary: Abseil Python Common Libraries
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
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: python-enum34
|
||||
BuildRequires: python-mock
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module six}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-six
|
||||
BuildRequires: python-six
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This package is a collection of Python library code for building Python
|
||||
applications. The code is collected from Google's own Python code base, and has
|
||||
been extensively tested and used in production.
|
||||
* Simple application startup
|
||||
* Distributed commandline flags system
|
||||
* Custom logging module with additional features
|
||||
* Testing utilities
|
||||
|
||||
%prep
|
||||
%setup -q -n abseil-py-pypi-v%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%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}
|
||||
%doc README.md
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user