From 5f5257dc8ac7123fea39aedad5aeff28bd6eca84c613c4a7bce33d27a7805406 Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Sun, 7 Jul 2024 13:52:08 +0000 Subject: [PATCH] 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 --- python-pysrt.changes | 6 ++++++ python-pysrt.spec | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-pysrt.changes b/python-pysrt.changes index 3dec52b..f49ca2c 100644 --- a/python-pysrt.changes +++ b/python-pysrt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jul 7 13:50:02 UTC 2024 - Luigi Baldoni + +- Prepend executable name with pysrt- to avoid clash with + the python-srt package + ------------------------------------------------------------------- Wed Feb 14 04:41:27 UTC 2024 - Steve Kowalik diff --git a/python-pysrt.spec b/python-pysrt.spec index 2e9d3fd..dcbbacc 100644 --- a/python-pysrt.spec +++ b/python-pysrt.spec @@ -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