15
0

- add update-alternative support for py2/py3 coinstallability

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-chardet?expand=0&rev=30
This commit is contained in:
2017-08-15 09:57:44 +00:00
committed by Git OBS Bridge
parent 387018e51d
commit f3f4d457c0
2 changed files with 18 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 15 09:57:21 UTC 2017 - dmueller@suse.com
- add update-alternative support for py2/py3 coinstallability
-------------------------------------------------------------------
Thu Jun 29 08:43:41 UTC 2017 - ecsos@opensuse.org

View File

@@ -73,15 +73,26 @@ or more files::
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%{python_expand %$python_install
mv %{buildroot}%{_bindir}/chardetect %{buildroot}%{_bindir}/chardetect-%{$python_bin_suffix}
%fdupes -s %{buildroot}%{$python_sitelib}
}
%prepare_alternative chardetect
%check
%python_exec setup.py test
%post
%python_install_alternative chardetect
%postun
%python_install_alternative chardetect
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%python3_only %{_bindir}/chardetect
%python_alternative %{_bindir}/chardetect
%{python_sitelib}/chardet
%{python_sitelib}/chardet-%{version}-py%{python_version}.egg-info