14
0
forked from pool/python-pysrt

Accepting request 1186011 from home:alois:branches:devel:languages:python

- Prepend executable name with pysrt- to avoid clash with
  the python-srt package

OBS-URL: https://build.opensuse.org/request/show/1186011
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysrt?expand=0&rev=19
This commit is contained in:
2024-07-07 13:52:08 +00:00
committed by Git OBS Bridge
parent dd8835faa5
commit 5f5257dc8a
2 changed files with 11 additions and 4 deletions

View File

@@ -52,21 +52,22 @@ sed -e '1d' -i pysrt/commands.py
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/srt
mv %{buildroot}%{_bindir}/srt %{buildroot}%{_bindir}/pysrt-srt
%python_clone -a %{buildroot}%{_bindir}/pysrt-srt
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative srt
%python_install_alternative pysrt-srt
%postun
%python_uninstall_alternative srt
%python_uninstall_alternative pysrt-srt
%files %{python_files}
%doc README.rst
%python_alternative %{_bindir}/srt
%python_alternative %{_bindir}/pysrt-srt
%{python_sitelib}/pysrt
%{python_sitelib}/pysrt-%{version}.dist-info