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:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 5 14:29:56 UTC 2023 - Joan Torres <joan.torres@suse.com>
|
||||
|
||||
- Add .py suffix to avoid conflicts with the cog browser package.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 29 11:38:28 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user