forked from pool/python-zope.testrunner
		
	Accepting request 1301411 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems OBS-URL: https://build.opensuse.org/request/show/1301411 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.testrunner?expand=0&rev=29
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Tue Aug 26 09:52:11 UTC 2025 - Markéta Machová <mmachova@suse.com>
 | 
			
		||||
 | 
			
		||||
- Convert to libalternatives on SLE-16-based and newer systems
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Tue Apr  1 16:06:08 UTC 2025 - Markéta Machová <mmachova@suse.com>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
#
 | 
			
		||||
# spec file for package python-zope.testrunner
 | 
			
		||||
#
 | 
			
		||||
# Copyright (c) 2025 SUSE LLC
 | 
			
		||||
# Copyright (c) 2025 SUSE LLC and contributors
 | 
			
		||||
#
 | 
			
		||||
# All modifications and additions to the file contributed by third parties
 | 
			
		||||
# remain the property of their copyright owners, unless otherwise agreed
 | 
			
		||||
@@ -24,6 +24,11 @@
 | 
			
		||||
%define psuffix %{nil}
 | 
			
		||||
%bcond_with test
 | 
			
		||||
%endif
 | 
			
		||||
%if 0%{?suse_version} > 1500
 | 
			
		||||
%bcond_without libalternatives
 | 
			
		||||
%else
 | 
			
		||||
%bcond_with libalternatives
 | 
			
		||||
%endif
 | 
			
		||||
%{?sle15_python_module_pythons}
 | 
			
		||||
Name:           python-zope.testrunner%{psuffix}
 | 
			
		||||
Version:        6.6.1
 | 
			
		||||
@@ -31,7 +36,7 @@ Release:        0
 | 
			
		||||
Summary:        Zope testrunner script
 | 
			
		||||
License:        ZPL-2.1
 | 
			
		||||
URL:            https://github.com/zopefoundation/zope.testrunner
 | 
			
		||||
Source:         https://files.pythonhosted.org/packages/source/z/zope.testrunner/zope_testrunner-%{version}.tar.gz
 | 
			
		||||
Source:         https://files.pythonhosted.org/packages/source/z/zope_testrunner/zope_testrunner-%{version}.tar.gz
 | 
			
		||||
BuildRequires:  %{python_module pip}
 | 
			
		||||
BuildRequires:  %{python_module setuptools}
 | 
			
		||||
BuildRequires:  %{python_module wheel}
 | 
			
		||||
@@ -42,9 +47,14 @@ BuildRequires:  python-rpm-macros
 | 
			
		||||
Requires:       python-setuptools
 | 
			
		||||
Requires:       python-zope.exceptions
 | 
			
		||||
Requires:       python-zope.interface
 | 
			
		||||
BuildArch:      noarch
 | 
			
		||||
%if %{with libalternatives}
 | 
			
		||||
BuildRequires:  alts
 | 
			
		||||
Requires:       alts
 | 
			
		||||
%else
 | 
			
		||||
Requires(post): update-alternatives
 | 
			
		||||
Requires(postun): update-alternatives
 | 
			
		||||
BuildArch:      noarch
 | 
			
		||||
%endif
 | 
			
		||||
%if %{with test}
 | 
			
		||||
BuildRequires:  %{python_module zope.testing}
 | 
			
		||||
BuildRequires:  %{python_module zope.testrunner = %{version}}
 | 
			
		||||
@@ -84,6 +94,9 @@ $python -m zope.testrunner --test-path=src -vv
 | 
			
		||||
%postun
 | 
			
		||||
%python_uninstall_alternative zope-testrunner
 | 
			
		||||
 | 
			
		||||
%pre
 | 
			
		||||
%python_libalternatives_reset_alternative zope-testrunner
 | 
			
		||||
 | 
			
		||||
%files %{python_files}
 | 
			
		||||
%license LICENSE.md
 | 
			
		||||
%doc README.rst
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user