14
0

Accepting request 807236 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807236
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rollbar?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal
2020-05-19 12:13:14 +00:00
committed by Git OBS Bridge
parent f105e597b8
commit 7419a045de
2 changed files with 19 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 19 09:27:47 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 15 16:06:40 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com> Wed Apr 15 16:06:40 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -34,14 +34,16 @@ BuildRequires: %{python_module six >= 1.9.0}
BuildRequires: %{python_module unittest2} BuildRequires: %{python_module unittest2}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-requests >= 0.12.1
Requires: python-setuptools
Requires: python-six >= 1.9.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if %{with python2} %if %{with python2}
BuildRequires: python2-enum34 BuildRequires: python2-enum34
BuildRequires: python2-mock BuildRequires: python2-mock
%endif %endif
Requires: python-requests >= 0.12.1
Requires: python-setuptools
Requires: python-six >= 1.9.0
BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -55,15 +57,22 @@ Send messages and exceptions with arbitrary context, get back aggregates, and de
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/rollbar
%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 rollbar
%postun
%python_uninstall_alternative rollbar
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%python3_only %{_bindir}/rollbar %python_alternative %{_bindir}/rollbar
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog