14
0

- Don't use %python3_only command, but properly use alternatives.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proselint?expand=0&rev=17
This commit is contained in:
2020-05-06 09:49:47 +00:00
committed by Git OBS Bridge
parent 5a2fc79945
commit b8301554d9
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 6 09:49:35 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Don't use %python3_only command, but properly use alternatives.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 20 10:51:03 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Mon Apr 20 10:51:03 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -46,6 +46,8 @@ BuildRequires: %{python_module six}
BuildRequires: python-mock BuildRequires: python-mock
%endif %endif
# /SECTION # /SECTION
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages %python_subpackages
%description %description
@@ -67,15 +69,22 @@ sed -i -e '/^#!\//, 1d' proselint/*.py
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/proselint
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py test %python_exec setup.py test
%post
%python_install_alternative proselint
%postun
%python_uninstall_alternative proselint
%files %{python_files} %files %{python_files}
%doc CHANGELOG.md README.md %doc CHANGELOG.md README.md
%license LICENSE.md %license LICENSE.md
%python3_only %{_bindir}/proselint %python_alternative %{_bindir}/proselint
%{python_sitelib}/proselint/ %{python_sitelib}/proselint/
%{python_sitelib}/proselint-%{version}-py*.egg-info %{python_sitelib}/proselint-%{version}-py*.egg-info