forked from pool/python-python-dotenv
- Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dotenv?expand=0&rev=38
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 14 13:01:31 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 8 13:08:26 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Tue Jul 8 13:08:26 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
@@ -17,7 +17,11 @@
|
|||||||
|
|
||||||
|
|
||||||
# rubygem-dotenv also provides executable dotenv
|
# rubygem-dotenv also provides executable dotenv
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
%bcond_without libalternatives
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-python-dotenv
|
Name: python-python-dotenv
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
@@ -34,10 +38,15 @@ BuildRequires: %{python_module pytest >= 3.0.5}
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module sh >= 2.0}
|
BuildRequires: %{python_module sh >= 2.0}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: alts
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
Requires: alts
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
Requires: python-click >= 5.0
|
Requires: python-click >= 5.0
|
||||||
Suggests: python-jupyter_ipython
|
Suggests: python-jupyter_ipython
|
||||||
# There is a very similar Python package which also used `dotenv` namespace
|
# There is a very similar Python package which also used `dotenv` namespace
|
||||||
@@ -76,6 +85,12 @@ mv %{buildroot}%{_bindir}/dotenv.orig %{buildroot}%{_bindir}/dotenv
|
|||||||
%pre
|
%pre
|
||||||
%python_libalternatives_reset_alternative dotenv
|
%python_libalternatives_reset_alternative dotenv
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative dotenv
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative dotenv
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Reference in New Issue
Block a user