2013-09-10 11:11:04 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-ZEO
|
|
|
|
|
#
|
2021-09-24 21:21:32 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-09-10 11:11:04 +00:00
|
|
|
# Copyright (c) 2013 LISA GmbH, Bingen, 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.
|
|
|
|
|
|
2019-03-04 16:15:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-09-10 11:11:04 +00:00
|
|
|
#
|
|
|
|
|
|
2014-11-14 15:27:34 +00:00
|
|
|
|
2017-07-10 08:56:23 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-16 06:36:19 +00:00
|
|
|
%bcond_without python2
|
2013-09-10 11:11:04 +00:00
|
|
|
Name: python-ZEO
|
2021-09-24 21:21:32 +00:00
|
|
|
Version: 5.2.3
|
2013-09-10 11:11:04 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Client-Server storage implementation for ZODB
|
|
|
|
|
License: ZPL-2.1
|
2019-03-04 16:15:52 +00:00
|
|
|
URL: https://github.com/zopefoundation/ZEO
|
2017-07-10 08:56:23 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/Z/ZEO/ZEO-%{version}.tar.gz
|
|
|
|
|
Source99: %{name}-rpmlintrc
|
2021-09-24 21:21:32 +00:00
|
|
|
# https://github.com/zopefoundation/ZEO/issues/184
|
|
|
|
|
Patch0: python-ZEO-no-mock.patch
|
2017-08-25 14:45:42 +00:00
|
|
|
BuildRequires: %{python_module ZConfig}
|
2019-03-04 16:15:52 +00:00
|
|
|
BuildRequires: %{python_module ZODB >= 5.5.1}
|
2019-03-29 09:55:54 +00:00
|
|
|
BuildRequires: %{python_module manuel}
|
|
|
|
|
BuildRequires: %{python_module msgpack}
|
|
|
|
|
BuildRequires: %{python_module random2}
|
2017-08-25 14:45:42 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module six}
|
2019-03-29 09:55:54 +00:00
|
|
|
BuildRequires: %{python_module transaction >= 2.0.3}
|
|
|
|
|
BuildRequires: %{python_module zc.lockfile}
|
2018-07-31 09:11:40 +00:00
|
|
|
BuildRequires: %{python_module zdaemon}
|
2019-03-29 09:55:54 +00:00
|
|
|
BuildRequires: %{python_module zodbpickle >= 0.6.0}
|
|
|
|
|
BuildRequires: %{python_module zope.interface}
|
|
|
|
|
BuildRequires: %{python_module zope.testing}
|
|
|
|
|
BuildRequires: %{python_module zope.testrunner}
|
2017-08-25 14:45:42 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-02 08:40:55 +00:00
|
|
|
Requires: python-ZConfig
|
2019-03-04 16:15:52 +00:00
|
|
|
Requires: python-ZODB >= 5.5.1
|
2018-05-02 08:40:55 +00:00
|
|
|
Requires: python-persistent >= 4.1.0
|
|
|
|
|
Requires: python-six
|
2019-03-29 09:55:54 +00:00
|
|
|
Requires: python-transaction >= 2.0.3
|
2018-05-02 08:40:55 +00:00
|
|
|
Requires: python-zc.lockfile
|
|
|
|
|
Requires: python-zdaemon
|
|
|
|
|
Requires: python-zope.interface
|
|
|
|
|
Requires(post): update-alternatives
|
2021-09-24 21:21:32 +00:00
|
|
|
Requires(preun):update-alternatives
|
2018-05-02 08:40:55 +00:00
|
|
|
BuildArch: noarch
|
2020-03-16 06:36:19 +00:00
|
|
|
%if %{with python2}
|
|
|
|
|
BuildRequires: python-futures
|
|
|
|
|
BuildRequires: python-trollius
|
|
|
|
|
%endif
|
2017-07-10 08:56:23 +00:00
|
|
|
%ifpython2
|
2020-03-16 06:36:19 +00:00
|
|
|
Requires: python-trollius
|
2017-07-10 08:56:23 +00:00
|
|
|
%endif
|
|
|
|
|
%python_subpackages
|
2013-09-10 11:11:04 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
ZEO provides a client-server storage implementation for ZODB.
|
|
|
|
|
|
2017-07-10 08:56:23 +00:00
|
|
|
%package -n %{name}-doc
|
2013-09-10 11:11:04 +00:00
|
|
|
Summary: Client-Server storage implementation for ZODB
|
2017-07-10 08:56:23 +00:00
|
|
|
Provides: %{python_module ZEO-doc = %{version}}
|
2013-09-10 11:11:04 +00:00
|
|
|
|
2017-07-10 08:56:23 +00:00
|
|
|
%description -n %{name}-doc
|
2013-09-10 11:11:04 +00:00
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n ZEO-%{version}
|
2021-09-24 21:21:32 +00:00
|
|
|
%patch0 -p1
|
2015-05-18 13:38:36 +00:00
|
|
|
# delete backup files
|
|
|
|
|
find . -name "*~" -print -delete
|
|
|
|
|
# remove unwanted shebang
|
|
|
|
|
find src -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
2017-07-10 08:56:23 +00:00
|
|
|
rm -rf src/ZEO.egg-info
|
2019-03-29 09:55:54 +00:00
|
|
|
# do not hardcode version
|
|
|
|
|
sed -i -e 's:msgpack < 0.6:msgpack:g' setup.py
|
2013-09-10 11:11:04 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-07-10 08:56:23 +00:00
|
|
|
%python_build
|
2013-09-10 11:11:04 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-07-10 08:56:23 +00:00
|
|
|
%python_install
|
2019-03-04 16:15:52 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-09-10 11:11:04 +00:00
|
|
|
|
2017-07-10 08:56:23 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/runzeo
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/zeoctl
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/zeopack
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/zeo-nagios
|
2013-09-10 11:11:04 +00:00
|
|
|
|
2017-07-10 08:56:23 +00:00
|
|
|
%check
|
2021-09-24 21:21:32 +00:00
|
|
|
pushd src
|
|
|
|
|
%pyunittest -v ZEO/tests/test*.py
|
2013-09-10 11:11:04 +00:00
|
|
|
|
|
|
|
|
%post
|
2017-07-10 08:56:23 +00:00
|
|
|
%python_install_alternative runzeo zeoctl zeopack zeo-nagios
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative runzeo
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-05-02 08:40:55 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc CHANGES.rst COPYRIGHT.txt README.rst
|
2017-07-10 08:56:23 +00:00
|
|
|
%python_alternative %{_bindir}/runzeo
|
|
|
|
|
%python_alternative %{_bindir}/zeoctl
|
|
|
|
|
%python_alternative %{_bindir}/zeopack
|
|
|
|
|
%python_alternative %{_bindir}/zeo-nagios
|
2013-09-10 11:11:04 +00:00
|
|
|
%{python_sitelib}/ZEO
|
2017-07-10 08:56:23 +00:00
|
|
|
%{python_sitelib}/ZEO-%{version}-py%{python_version}.egg-info
|
2013-09-10 11:11:04 +00:00
|
|
|
|
|
|
|
|
%changelog
|