15
0

Accepting request 809822 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/809822
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-certstream?expand=0&rev=7
This commit is contained in:
2020-06-09 22:44:19 +00:00
committed by Git OBS Bridge
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 27 09:36:43 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Wed Jan 1 11:09:59 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

@@ -30,6 +30,8 @@ BuildRequires: %{python_module termcolor}
BuildRequires: %{python_module websocket-client >= 0.48.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
# /SECTION
Requires: python3-termcolor
Requires: python3-websocket-client >= 0.48.0
@@ -52,15 +54,22 @@ sed -i -e 's:==:>=:g' requirements.txt
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/certstream
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# there are no tests
%post
%python_install_alternative certstream
%postun
%python_uninstall_alternative certstream
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/certstream/
%{python_sitelib}/certstream-%{version}-py*.egg-info
%python3_only %{_bindir}/certstream
%python_alternative %{_bindir}/certstream
%changelog