forked from pool/python-pysrt
Accepting request 1186012 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1186012 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysrt?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 7 13:50:02 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
- Prepend executable name with pysrt- to avoid clash with
|
||||||
|
the python-srt package
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 14 04:41:27 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
Wed Feb 14 04:41:27 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -52,21 +52,22 @@ sed -e '1d' -i pysrt/commands.py
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_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}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative srt
|
%python_install_alternative pysrt-srt
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative srt
|
%python_uninstall_alternative pysrt-srt
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%python_alternative %{_bindir}/srt
|
%python_alternative %{_bindir}/pysrt-srt
|
||||||
%{python_sitelib}/pysrt
|
%{python_sitelib}/pysrt
|
||||||
%{python_sitelib}/pysrt-%{version}.dist-info
|
%{python_sitelib}/pysrt-%{version}.dist-info
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user