14
0

Accepting request 807674 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/807674
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-bidi?expand=0&rev=4
This commit is contained in:
2020-05-26 15:18:12 +00:00
committed by Git OBS Bridge
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> 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -29,6 +29,8 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-six Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module six} BuildRequires: %{python_module six}
@@ -47,15 +49,22 @@ sed -i -e '/^#!\//, 1d' bidi/__init__.py
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/pybidi
%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 pybidi
%postun
%python_uninstall_alternative pybidi
%files %{python_files} %files %{python_files}
%doc AUTHORS.rst CHANGELOG.rst README.rst %doc AUTHORS.rst CHANGELOG.rst README.rst
%license COPYING COPYING.LESSER %license COPYING COPYING.LESSER
%python3_only %{_bindir}/pybidi %python_alternative %{_bindir}/pybidi
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog