Accepting request 785450 from devel:languages:python
Staging:I py2 OBS-URL: https://build.opensuse.org/request/show/785450 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aspectlib?expand=0&rev=2
This commit is contained in:
commit
102cec9e67
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 16 06:39:42 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 19 00:30:47 UTC 2017 - toddrme2178@gmail.com
|
Thu Oct 19 00:30:47 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-aspectlib
|
# spec file for package python-aspectlib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,40 +12,40 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
# Test requires network connection
|
# Test requires network connection
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%define oldpython python
|
|
||||||
Name: python-aspectlib
|
Name: python-aspectlib
|
||||||
Version: 1.4.2
|
Version: 1.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
License: BSD-2-Clause
|
|
||||||
Summary: Aspect-oriented programming
|
Summary: Aspect-oriented programming
|
||||||
Url: https://github.com/ionelmc/python-aspectlib
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Python
|
URL: https://github.com/ionelmc/python-aspectlib
|
||||||
Source: https://files.pythonhosted.org/packages/source/a/aspectlib/aspectlib-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/a/aspectlib/aspectlib-%{version}.tar.gz
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-fields
|
||||||
|
Recommends: python-tornado
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module fields}
|
BuildRequires: %{python_module fields}
|
||||||
BuildRequires: %{python_module process-tests}
|
BuildRequires: %{python_module process-tests}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module tornado}
|
BuildRequires: %{python_module tornado}
|
||||||
|
%if %{with python2}
|
||||||
BuildRequires: python-mock
|
BuildRequires: python-mock
|
||||||
BuildRequires: python-trollius
|
BuildRequires: python-trollius
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: fdupes
|
|
||||||
Requires: python-fields
|
|
||||||
Recommends: python-tornado
|
|
||||||
%ifpython2
|
|
||||||
Requires: %{oldpython}-trollius
|
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
%ifpython2
|
||||||
|
Requires: python-trollius
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -67,12 +67,12 @@ framework.
|
|||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
%python_expand py.test-%{$python_bin_suffix} -vv --ignore=src
|
%pytest --ignore=src
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE
|
||||||
%doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user