14
0

Accepting request 807634 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807634
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-bidi?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2020-05-20 11:33:50 +00:00
committed by Git OBS Bridge
parent b14c488807
commit 7d53eb6623
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 20 07:26:49 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon Jul 22 13:25:46 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-bidi
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -29,6 +29,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module six}
@@ -47,15 +49,22 @@ sed -i -e '/^#!\//, 1d' bidi/__init__.py
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pybidi
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%post
%python_install_alternative pybidi
%postun
%python_uninstall_alternative pybidi
%files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst
%license COPYING COPYING.LESSER
%python3_only %{_bindir}/pybidi
%python_alternative %{_bindir}/pybidi
%{python_sitelib}/*
%changelog