Compare commits
8 Commits
Author | SHA256 | Date | |
---|---|---|---|
8c4690bbca | |||
4513d74ddb | |||
0c609ca796 | |||
f8a6423aec | |||
466e1e2c92 | |||
85da7095dc | |||
32d1c52172 | |||
4454e252fd |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 14 05:41:25 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
Wed May 14 05:41:25 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -16,6 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# rubygem-dotenv also provides executable dotenv
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%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 +40,14 @@ BuildRequires: %{python_module sh >= 2.0}
|
|||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-click >= 5.0
|
%if %{with libalternatives}
|
||||||
# rubygem-dotenv also provides executable dotenv
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
|
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
|
||||||
Conflicts: python-dotenv
|
Conflicts: python-dotenv
|
||||||
@@ -72,6 +82,9 @@ $python -m pytest -v -k "not ipython"
|
|||||||
}
|
}
|
||||||
mv %{buildroot}%{_bindir}/dotenv.orig %{buildroot}%{_bindir}/dotenv
|
mv %{buildroot}%{_bindir}/dotenv.orig %{buildroot}%{_bindir}/dotenv
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative dotenv
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative dotenv
|
%python_install_alternative dotenv
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user