14
0

Accepting request 807233 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807233
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-restview?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2020-05-19 12:13:03 +00:00
committed by Git OBS Bridge
parent c8ed326e0c
commit d804ed17d7
2 changed files with 21 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 19 09:27:44 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 10 07:12:21 UTC 2019 - Jan Engelhardt <jengelh@inai.de> Tue Sep 10 07:12:21 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-restview # spec file for package python-restview
# #
# 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
@@ -26,19 +26,20 @@ Group: Development/Languages/Python
URL: https://mg.pov.lt/restview/ URL: https://mg.pov.lt/restview/
Source: https://files.pythonhosted.org/packages/source/r/restview/restview-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/r/restview/restview-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-docutils
Requires: python-pygments
Requires: python-readme_renderer
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module docutils} BuildRequires: %{python_module docutils}
BuildRequires: %{python_module mock} BuildRequires: %{python_module mock}
BuildRequires: %{python_module pygments} BuildRequires: %{python_module pygments}
BuildRequires: %{python_module readme_renderer} BuildRequires: %{python_module readme_renderer}
# /SECTION # /SECTION
BuildRequires: fdupes
Requires: python-docutils
Requires: python-pygments
Requires: python-readme_renderer
BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -52,15 +53,22 @@ A viewer for ReStructuredText documents that renders them on the fly.
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/restview
%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 restview
%postun
%python_uninstall_alternative restview
%files %{python_files} %files %{python_files}
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst
%license LICENSE %license LICENSE
%python3_only %{_bindir}/restview %python_alternative %{_bindir}/restview
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog