2013-09-10 11:11:04 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-ZEO
|
|
|
|
|
#
|
2025-03-26 02:05:16 +00:00
|
|
|
# Copyright (c) 2025 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
|
|
|
|
2013-09-10 11:11:04 +00:00
|
|
|
Name: python-ZEO
|
2024-03-22 10:43:59 +00:00
|
|
|
Version: 6.0.0
|
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
|
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}
|
2024-03-22 13:43:42 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-03-29 09:55:54 +00:00
|
|
|
BuildRequires: %{python_module random2}
|
2017-08-25 14:45:42 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-03-29 09:55:54 +00:00
|
|
|
BuildRequires: %{python_module transaction >= 2.0.3}
|
2024-03-22 13:43:42 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-29 09:55:54 +00:00
|
|
|
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
|
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
|
2024-03-22 10:43:59 +00:00
|
|
|
Requires(preun): update-alternatives
|
2018-05-02 08:40:55 +00:00
|
|
|
BuildArch: noarch
|
2017-07-10 08:56:23 +00:00
|
|
|
%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
|
2024-03-22 13:43:42 +00:00
|
|
|
%autosetup -p1 -n ZEO-%{version}
|
2022-02-28 14:11:25 +00:00
|
|
|
|
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
|
2024-03-22 13:43:42 +00:00
|
|
|
%pyproject_wheel
|
2013-09-10 11:11:04 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-03-22 13:43:42 +00:00
|
|
|
%pyproject_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
|
2022-02-28 14:11:25 +00:00
|
|
|
export ZEO4_SERVER=1
|
2024-03-22 13:26:00 +00:00
|
|
|
%python_expand PYTHONPATH=src %{_bindir}/zope-testrunner-%{$python_bin_suffix} -vvv --test-path src
|
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
|
2025-03-26 02:05:16 +00:00
|
|
|
%{python_sitelib}/zeo-%{version}.dist-info
|
2013-09-10 11:11:04 +00:00
|
|
|
|
|
|
|
|
%changelog
|