forked from pool/python-Pyro5
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| cb8de2e90e | |||
| 771a08c425 | |||
| 0c75b1a78f | |||
| b0537d81d4 | |||
| c8ab07e18f | |||
| 3f1fe01505 |
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user