From b6f8317ddef1994cc6828002512b5c498aba0d26b366ec023970934da6f533bd Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 27 Dec 2021 09:14:03 +0000 Subject: [PATCH] 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 --- python-mistune.changes | 6 ++++++ python-mistune.spec | 21 ++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/python-mistune.changes b/python-mistune.changes index 024f851..ba01424 100644 --- a/python-mistune.changes +++ b/python-mistune.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Dec 26 17:24:01 UTC 2021 - Ben Greiner + +- Cleanup specfile +- Unskip python36: required by httpbin + ------------------------------------------------------------------- Thu Dec 16 19:49:28 UTC 2021 - Andreas Schneider diff --git a/python-mistune.spec b/python-mistune.spec index 704a9e1..95eb34d 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -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