From e6754efbc8de1f0d501fe5eb9adb78332a17e707e1920e56d977d51437d237cd Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Dec 2023 12:51:01 +0000 Subject: [PATCH] Accepting request 1130996 from home:jtorres:branches:devel:languages:python - Add .py suffix to avoid conflicts with the cog browser package. OBS-URL: https://build.opensuse.org/request/show/1130996 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cogapp?expand=0&rev=15 --- python-cogapp.changes | 5 +++++ python-cogapp.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-cogapp.changes b/python-cogapp.changes index db6795a..6b743ec 100644 --- a/python-cogapp.changes +++ b/python-cogapp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 5 14:29:56 UTC 2023 - Joan Torres + +- Add .py suffix to avoid conflicts with the cog browser package. + ------------------------------------------------------------------- Mon May 29 11:38:28 UTC 2023 - Daniel Garcia diff --git a/python-cogapp.spec b/python-cogapp.spec index 708e46f..4fc3bda 100644 --- a/python-cogapp.spec +++ b/python-cogapp.spec @@ -50,23 +50,24 @@ need. %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog -%python_clone -a %{buildroot}%{_bindir}/cog +%python_clone -a %{buildroot}%{_bindir}/cog.py +# remove redundant binary +rm %{buildroot}%{_bindir}/cog %check # reverse -q from addopts in setup.cfg %pytest -v %post -%python_install_alternative cog +%python_install_alternative cog.py %postun -%python_uninstall_alternative cog +%python_uninstall_alternative cog.py %files %{python_files} %license LICENSE.txt %doc README.rst -%python_alternative %{_bindir}/cog +%python_alternative %{_bindir}/cog.py %{python_sitelib}/cogapp %{python_sitelib}/cogapp-%{version}*-info