6 Commits

Author SHA256 Message Date
8de3240c90 Accepting request 1291023 from devel:languages:python
- fix build without libalternatives

OBS-URL: https://build.opensuse.org/request/show/1291023
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pyro5?expand=0&rev=6
2025-07-07 12:50:08 +00:00
11077300ba - fix build without libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro5?expand=0&rev=15
2025-07-07 10:27:08 +00:00
7f8cdcf038 Accepting request 1284012 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1284012
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pyro5?expand=0&rev=5
2025-06-10 07:06:53 +00:00
46dfa07e57 Accepting request 1283651 from home:fstegmeier:branches:devel:languages:python
- fix usage of libalternatives

OBS-URL: https://build.opensuse.org/request/show/1283651
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro5?expand=0&rev=13
2025-06-09 08:20:13 +00:00
6b7fb0876c Accepting request 1276906 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1276906
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Pyro5?expand=0&rev=4
2025-05-12 18:19:28 +00:00
ff1c3876b2 Accepting request 1276893 from home:mcalabkova:branches:devel:languages:python
- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1276893
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pyro5?expand=0&rev=11
2025-05-12 15:14:15 +00:00
2 changed files with 30 additions and 12 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Jul 7 10:25:21 UTC 2025 - Dirk Müller <dmueller@suse.com>
- fix build without libalternatives
-------------------------------------------------------------------
Wed Jun 4 15:35:12 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- fix usage of libalternatives
-------------------------------------------------------------------
Mon May 12 14:36:01 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Tue Jan 9 21:39:34 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Pyro5
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-Pyro5
Version: 5.15
@@ -24,19 +25,22 @@ Summary: Distributed object middleware for Python (RPC)
License: MIT
URL: https://github.com/irmen/Pyro5
Source: https://files.pythonhosted.org/packages/source/P/Pyro5/Pyro5-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%endif
Requires: python-serpent >= 1.41
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: ca-certificates
Recommends: python-cloudpickle >= 0.4.0
Recommends: python-dill >= 0.2.6
Recommends: python-msgpack-python >= 0.5.2
BuildArch: noarch
# SECTION test requirements
BuildRequires: sqlite3
BuildRequires: %{python_module cloudpickle >= 0.4.0}
BuildRequires: %{python_module dbm}
BuildRequires: %{python_module dill >= 0.2.6}
@@ -44,6 +48,7 @@ BuildRequires: %{python_module msgpack-python >= 0.5.2}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module serpent >= 1.41}
BuildRequires: ca-certificates
BuildRequires: sqlite3
# /SECTION
%python_subpackages
@@ -62,10 +67,10 @@ runs on many different platforms and Python versions.
%autosetup -p1 -n Pyro5-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/pyro5-check-config
%python_clone -a %{buildroot}%{_bindir}/pyro5-echoserver
@@ -76,11 +81,9 @@ runs on many different platforms and Python versions.
%check
%pytest -m "not network"
%post
%{python_install_alternative pyro5-check-config pyro5-echoserver pyro5-httpgateway pyro5-ns pyro5-nsc}
%postun
%python_uninstall_alternative pyro5-check-config
%pre
# Removing old update-alternatives entries.
%python_libalternatives_reset_alternative pyro5-check-config
%files %{python_files}
%license LICENSE
@@ -90,6 +93,6 @@ runs on many different platforms and Python versions.
%python_alternative %{_bindir}/pyro5-ns
%python_alternative %{_bindir}/pyro5-nsc
%{python_sitelib}/Pyro5
%{python_sitelib}/Pyro5-%{version}*-info
%{python_sitelib}/[Pp]yro5-%{version}*-info
%changelog