diff --git a/mistune-2.0.4.tar.gz b/mistune-2.0.4.tar.gz new file mode 100644 index 0000000..7307a6e Binary files /dev/null and b/mistune-2.0.4.tar.gz differ diff --git a/python-mistune.spec b/python-mistune.spec index fa5b740..8d1b975 100644 --- a/python-mistune.spec +++ b/python-mistune.spec @@ -1,12 +1,20 @@ Name: python-mistune -Version: 0.8.3 -Release: 9 +Version: 2.0.4 +Release: 1 Summary: A Python Markdown Parser -License: BSD +License: BSD-3-Clause URL: https://github.com/lepture/mistune -Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz +Source0: %url/archive/v%{version}/mistune-%{version}.tar.gz + +BuildArch: noarch -BuildRequires: python3-Cython python3-devel python3-pytest python3-setuptools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-pytest %description The python-mistune package is a fast yet powerful Python Markdown @@ -23,25 +31,25 @@ rules. %prep %autosetup -n mistune-%{version} -p1 -find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' %build -CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build +%pyproject_build %install -%{__python3} setup.py install --skip-build --root %{buildroot} -%{_fixperms} %{buildroot}/* +%pyproject_install %check -/usr/bin/pytest +%pytest %files -n python3-mistune %doc LICENSE README.rst -%{python3_sitearch}/mistune.* -%{python3_sitearch}/mistune-%{version}-py%{python3_version}.egg-info -%{python3_sitearch}/__pycache__/mistune* +%{python3_sitelib}/mistune +%{python3_sitelib}/mistune-*.dist-info %changelog +* Tue Nov 7 2023 Dongxing Wang - 2.0.4-1 +- Upgrade package to version 2.0.4 + * Thu May 5 2022 caodongxia - 0.8.3-9 - Remove dependency on python-nose diff --git a/v0.8.3.tar.gz b/v0.8.3.tar.gz deleted file mode 100644 index 4f7273e..0000000 Binary files a/v0.8.3.tar.gz and /dev/null differ