forked from pool/python-ZEO
- Remove msgpack restriction to < 0.6 release
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ZEO?expand=0&rev=19
This commit is contained in:
committed by
Git OBS Bridge
parent
8785ded944
commit
39a9c48e42
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 29 09:48:16 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Remove msgpack restriction to < 0.6 release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 4 14:10:06 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
%bcond_without test
|
||||
Name: python-ZEO
|
||||
Version: 5.2.1
|
||||
Release: 0
|
||||
@@ -31,33 +30,34 @@ Source: https://files.pythonhosted.org/packages/source/Z/ZEO/ZEO-%{versi
|
||||
Source99: %{name}-rpmlintrc
|
||||
BuildRequires: %{python_module ZConfig}
|
||||
BuildRequires: %{python_module ZODB >= 5.5.1}
|
||||
BuildRequires: %{python_module manuel}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module msgpack}
|
||||
BuildRequires: %{python_module random2}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module transaction >= 2.0.3}
|
||||
BuildRequires: %{python_module zc.lockfile}
|
||||
BuildRequires: %{python_module zdaemon}
|
||||
BuildRequires: %{python_module zodbpickle >= 0.6.0}
|
||||
BuildRequires: %{python_module zope.interface}
|
||||
BuildRequires: %{python_module zope.testing}
|
||||
BuildRequires: %{python_module zope.testrunner}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-futures
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python-trollius
|
||||
Requires: python-ZConfig
|
||||
Requires: python-ZODB >= 5.5.1
|
||||
Requires: python-persistent >= 4.1.0
|
||||
Requires: python-six
|
||||
Requires: python-transaction
|
||||
Requires: python-transaction >= 2.0.3
|
||||
Requires: python-zc.lockfile
|
||||
Requires: python-zdaemon
|
||||
Requires: python-zope.interface
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module manuel}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module msgpack}
|
||||
BuildRequires: %{python_module random2}
|
||||
BuildRequires: %{python_module zodbpickle >= 0.6.0}
|
||||
BuildRequires: %{python_module zope.testing}
|
||||
BuildRequires: %{python_module zope.testrunner}
|
||||
BuildRequires: python-futures
|
||||
BuildRequires: python-trollius
|
||||
%endif
|
||||
%ifpython2
|
||||
Requires: %{oldpython}-trollius
|
||||
%endif
|
||||
@@ -81,6 +81,8 @@ find . -name "*~" -print -delete
|
||||
# remove unwanted shebang
|
||||
find src -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
||||
rm -rf src/ZEO.egg-info
|
||||
# do not hardcode version
|
||||
sed -i -e 's:msgpack < 0.6:msgpack:g' setup.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -94,10 +96,8 @@ rm -rf src/ZEO.egg-info
|
||||
%python_clone -a %{buildroot}%{_bindir}/zeopack
|
||||
%python_clone -a %{buildroot}%{_bindir}/zeo-nagios
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%post
|
||||
%python_install_alternative runzeo zeoctl zeopack zeo-nagios
|
||||
|
||||
Reference in New Issue
Block a user