15
0
forked from pool/python-cogapp

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
This commit is contained in:
2023-12-06 12:51:01 +00:00
committed by Git OBS Bridge
parent cd2ee1d16e
commit e6754efbc8
2 changed files with 11 additions and 5 deletions

View File

@@ -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