Accepting request 942645 from home:bnavigator:branches:devel:languages:python

- Cleanup specfile
- Unskip python36: required by httpbin

OBS-URL: https://build.opensuse.org/request/show/942645
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mistune?expand=0&rev=35
This commit is contained in:
Dirk Mueller 2021-12-27 09:14:03 +00:00 committed by Git OBS Bridge
parent 71e4eb3212
commit b6f8317dde
2 changed files with 14 additions and 13 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Dec 26 17:24:01 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Cleanup specfile
- Unskip python36: required by httpbin
-------------------------------------------------------------------
Thu Dec 16 19:49:28 UTC 2021 - Andreas Schneider <asn@cryptomilk.org>

View File

@ -18,19 +18,14 @@
%{?!python_module:%define python_module() python3-%{**}}
%define modname mistune
%define skip_python36 1
%if 0%{?suse_version} < 1550
%define skip_python2 1
%endif
Name: python-mistune
# Wait with the upgrade to 2.* when python-m2r is working
Name: python-%{modname}
Version: 2.0.0
Release: 0
Summary: A markdown parser in pure Python
Summary: Python Markdown parser with renderers and plugins
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/lepture/mistune
# Source0: https://files.pythonhosted.org/packages/source/m/mistune/mistune-%%{version}.tar.gz
Source: https://github.com/lepture/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
@ -42,10 +37,11 @@ BuildArch: noarch
%python_subpackages
%description
A markdown parser in pure Python, inspired by marked.
A Python Markdown parser with renderers and plugins,
compatible with sane CommonMark rules.
%prep
%autosetup -p1 -n mistune-%{version}
%autosetup -p1 -n %{modname}-%{version}
%build
%pyproject_wheel
@ -59,9 +55,8 @@ A markdown parser in pure Python, inspired by marked.
%files %{python_files}
%license LICENSE
%doc README.*
%{python_sitelib}/mistune
%dir %{python_sitelib}/mistune-%{version}.dist-info
%{python_sitelib}/mistune-%{version}.dist-info/*
%doc README.md
%{python_sitelib}/%{modname}
%{python_sitelib}/%{modname}-%{version}*-info
%changelog