forked from pool/python-sure
		
	Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA256 | Date | |
|---|---|---|---|
| a350d11614 | |||
| a61177e8e9 | 
| @@ -1,3 +1,8 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Mon Aug 25 14:05:31 UTC 2025 - Markéta Machová <mmachova@suse.com> | ||||
|  | ||||
| - Convert to libalternatives on SLE-16-based and newer systems | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Tue Mar 26 19:06:01 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file for package python-sure | ||||
| # | ||||
| # Copyright (c) 2024 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 | ||||
| @@ -16,6 +16,11 @@ | ||||
| # | ||||
|  | ||||
|  | ||||
| %if 0%{?suse_version} > 1500 | ||||
| %bcond_without libalternatives | ||||
| %else | ||||
| %bcond_with libalternatives | ||||
| %endif | ||||
| %{?sle15_python_module_pythons} | ||||
| Name:           python-sure | ||||
| Version:        2.0.1 | ||||
| @@ -34,9 +39,14 @@ BuildRequires:  %{python_module wheel} | ||||
| BuildRequires:  fdupes | ||||
| BuildRequires:  python-rpm-macros | ||||
| Requires:       python-six >= 1.10.0 | ||||
| BuildArch:      noarch | ||||
| %if %{with libalternatives} | ||||
| BuildRequires:  alts | ||||
| Requires:       alts | ||||
| %else | ||||
| Requires(post): update-alternatives | ||||
| Requires(postun): update-alternatives | ||||
| BuildArch:      noarch | ||||
| %endif | ||||
| %python_subpackages | ||||
|  | ||||
| %description | ||||
| @@ -67,6 +77,9 @@ rm tests/test_old_api.py | ||||
| %postun | ||||
| %python_uninstall_alternative sure | ||||
|  | ||||
| %pre | ||||
| %python_libalternatives_reset_alternative sure | ||||
|  | ||||
| %files %{python_files} | ||||
| %license COPYING | ||||
| %doc README.rst | ||||
|   | ||||
		Reference in New Issue
	
	Block a user