17
0

Accepting request 615009 from home:TheBlackCat:branches:devel:languages:python

- Don't use update-alternatives
  Also fixes conflicts with python-coveralls

OBS-URL: https://build.opensuse.org/request/show/615009
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-coveralls?expand=0&rev=2
This commit is contained in:
Todd R
2018-06-07 17:09:53 +00:00
committed by Git OBS Bridge
parent 13be185023
commit 4c05154b4b
2 changed files with 7 additions and 10 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 7 17:08:37 UTC 2018 - toddrme2178@gmail.com
- Don't use update-alternatives
Also fixes conflicts with python-coveralls
-------------------------------------------------------------------
Thu May 24 17:40:21 UTC 2018 - toddrme2178@gmail.com

View File

@@ -46,8 +46,6 @@ Requires: python-requests
Requires: python-six
Conflicts: python-coveralls
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
@@ -66,23 +64,16 @@ tar -xvzf %{S:1}
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/coveralls
%check
pushd python-coveralls-example
%python_expand py.test example/tests.py --cov=example
popd
%post
%python_install_alternative coveralls
%postun
%python_uninstall_alternative coveralls
%files %{python_files}
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/coveralls
%python3_only %{_bindir}/coveralls
%{python_sitelib}/*
%changelog