forked from pool/python-pysrt
Accepting request 800527 from devel:languages:python
- Don't use %python3_only command, but properly use alternatives. OBS-URL: https://build.opensuse.org/request/show/800527 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysrt?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 5 22:18:14 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Don't use %python3_only command, but properly use alternatives.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 17 11:45:05 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
|
@@ -31,6 +31,8 @@ BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-chardet
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -48,14 +50,21 @@ sed -e '1d' -i pysrt/commands.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/srt
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative srt
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative srt
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%python3_only %{_bindir}/srt
|
||||
%python_alternative %{_bindir}/srt
|
||||
%{python_sitelib}/pysrt
|
||||
%{python_sitelib}/pysrt-%{version}-py%{python_version}.egg-info
|
||||
|
||||
|
Reference in New Issue
Block a user