15
0

Accepting request 809239 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/809239
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils-ast-writer?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2020-05-27 10:12:34 +00:00
committed by Git OBS Bridge
parent 59325e8023
commit bb424281d1
2 changed files with 22 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 26 07:22:45 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon Feb 25 00:58:33 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-docutils-ast-writer
#
# Copyright (c) 2018 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
@@ -12,25 +12,28 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-docutils-ast-writer
Version: 0.1.2
Release: 0
License: MIT
Summary: AST Writer for docutils
Url: https://github.com/jimo1001/docutils-ast-writer
License: MIT
Group: Development/Languages/Python
URL: https://github.com/jimo1001/docutils-ast-writer
Source: https://files.pythonhosted.org/packages/source/d/docutils-ast-writer/docutils-ast-writer-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/jimo1001/docutils-ast-writer/master/LICENSE
BuildRequires: %{python_module docutils >= 0.12}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module docutils >= 0.12}
Requires: python-docutils >= 0.12
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
@@ -45,14 +48,21 @@ cp %{SOURCE1} .
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/rst2ast
%python_expand %fdupes %{buildroot}%{$python_sitelib}
#%%check has no tests https://github.com/jimo1001/docutils-ast-writer/issues/2
%post
%python_install_alternative rst2ast
%postun
%python_uninstall_alternative rst2ast
%files %{python_files}
%license LICENSE
%doc README.rst
%python3_only %{_bindir}/rst2ast
%python_alternative %{_bindir}/rst2ast
%{python_sitelib}/*
%changelog