python3.11-dotenv: rename conflicting binary

This commit is contained in:
Raven 2024-04-16 12:31:00 +06:00
parent d63459d7e4
commit dfbc477997

View File

@ -1,6 +1,6 @@
Name: python-dotenv
Version: 1.0.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Read key-value pairs from a .env file and set them as environment variables
License: BSD
@ -42,6 +42,8 @@ sed -i 's/import mock/from unittest import mock/' tests/test_*.py
%install
%py3_install
mv %{buildroot}%{_bindir}/dotenv %{buildroot}%{_bindir}/dotenv-%{python3_pkgversion}
%check
%pytest -v
@ -54,10 +56,13 @@ sed -i 's/import mock/from unittest import mock/' tests/test_*.py
%{python3_sitelib}/python_dotenv-%{version}-py%{python3_version}.egg-info/
%{?python_extras_subpkg:%{python_extras_subpkg -n python%{python3_pkgversion}-dotenv -i %{python3_sitelib}/*.egg-info cli}}
%{_bindir}/dotenv
%{_bindir}/dotenv-%{python3_pkgversion}
%changelog
* Tue Apr 16 2024 Raven <raven@sysadmins.ws> - 1.0.1-2
- fix conflict with python3-dotenv
* Tue Feb 6 2024 Raven <raven@sysadmins.ws> - 1.0.1-1
- Update to 1.0.1