forked from pool/python-micropipenv
		
	Accepting request 1284162 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1284162 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-micropipenv?expand=0&rev=3
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Mon Jun  9 10:56:35 UTC 2025 - Markéta Machová <mmachova@suse.com>
 | 
			
		||||
 | 
			
		||||
- Convert to libalternatives
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Thu Dec  7 22:12:49 UTC 2023 - Dirk Müller <dmueller@suse.com>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
#
 | 
			
		||||
# spec file for package python-micropipenv
 | 
			
		||||
#
 | 
			
		||||
# Copyright (c) 2023 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
 | 
			
		||||
@@ -17,6 +17,7 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
%define modname micropipenv
 | 
			
		||||
%bcond_without libalternatives
 | 
			
		||||
Name:           python-micropipenv
 | 
			
		||||
Version:        1.6.0
 | 
			
		||||
Release:        0
 | 
			
		||||
@@ -27,11 +28,11 @@ URL:            https://github.com/thoth-station/micropipenv
 | 
			
		||||
Source:         https://github.com/thoth-station/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
 | 
			
		||||
BuildRequires:  %{python_module pip}
 | 
			
		||||
BuildRequires:  %{python_module wheel}
 | 
			
		||||
BuildRequires:  alts
 | 
			
		||||
BuildRequires:  fdupes
 | 
			
		||||
BuildRequires:  python-rpm-macros
 | 
			
		||||
Requires:       alts
 | 
			
		||||
Requires:       python-pip
 | 
			
		||||
Requires(post): update-alternatives
 | 
			
		||||
Requires(postun):update-alternatives
 | 
			
		||||
Suggests:       python-toml
 | 
			
		||||
BuildArch:      noarch
 | 
			
		||||
# SECTION test requirements
 | 
			
		||||
@@ -60,11 +61,8 @@ sed -i '1{\@^#!%{_bindir}/env python@d}' micropipenv.py
 | 
			
		||||
%check
 | 
			
		||||
%pytest
 | 
			
		||||
 | 
			
		||||
%post
 | 
			
		||||
%python_install_alternative micropipenv
 | 
			
		||||
 | 
			
		||||
%postun
 | 
			
		||||
%python_uninstall_alternative micropipenv
 | 
			
		||||
%pre
 | 
			
		||||
%python_libalternatives_reset_alternative micropipenv
 | 
			
		||||
 | 
			
		||||
%files %{python_files}
 | 
			
		||||
%doc README.rst
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user