Merged
upgrade python-mistune to 3.0.1 #12
AtomGit-BotAdd on Jul 13, 2023
upgrade python-mistune to 3.0.1 #12
Merged
Merged fromrefs/pull/12/headintomaster
Total: 3 files changed+23-13
| @@ -1,12 +1,20 @@ | |||
| 1 | -Name: python-mistune | 1 | +%global _empty_manifest_terminate_build 0 |
| 2 | -Version: 0.8.3 | 2 | +%global pypi_name mistune |
| 3 | -Release: 9 | 3 | + |
| 4 | +Name: python-%{pypi_name} | ||
| 5 | +Version: 3.0.1 | ||
| 6 | +Release: 1 | ||
| 4 | Summary: A Python Markdown Parser | 7 | Summary: A Python Markdown Parser |
| 5 | License: BSD | 8 | License: BSD |
| 6 | URL: https://github.com/lepture/mistune | 9 | URL: https://github.com/lepture/mistune |
| 7 | -Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz | 10 | +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz |
| 8 | 11 | ||
| 9 | -BuildRequires: python3-Cython python3-devel python3-pytest python3-setuptools | 12 | +BuildRequires: python3-Cython |
| 13 | +BuildRequires: python3-pip | ||
| 14 | +BuildRequires: python3-devel | ||
| 15 | +BuildRequires: python3-setuptools | ||
| 16 | +BuildRequires: python3-setuptools_scm | ||
| 17 | +BuildRequires: python3-wheel | ||
| 10 | 18 | ||
| 11 | %description | 19 | %description |
| 12 | The python-mistune package is a fast yet powerful Python Markdown | 20 | The python-mistune package is a fast yet powerful Python Markdown |
| @@ -26,22 +34,24 @@ rules. | |||
| 26 | find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' | 34 | find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' |
| 27 | 35 | ||
| 28 | %build | 36 | %build |
| 29 | -CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build | 37 | +%pyproject_build |
| 30 | 38 | ||
| 31 | %install | 39 | %install |
| 32 | -%{__python3} setup.py install --skip-build --root %{buildroot} | 40 | +%pyproject_install |
| 33 | -%{_fixperms} %{buildroot}/* | ||
| 34 | 41 | ||
| 35 | %check | 42 | %check |
| 36 | -/usr/bin/pytest | 43 | +%{__python3} setup.py test |
| 37 | 44 | ||
| 38 | %files -n python3-mistune | 45 | %files -n python3-mistune |
| 39 | -%doc LICENSE README.rst | 46 | +%doc README.rst |
| 40 | -%{python3_sitearch}/mistune.* | 47 | +%license LICENSE |
| 41 | -%{python3_sitearch}/mistune-%{version}-py%{python3_version}.egg-info | 48 | +%{python3_sitelib}/mistune-*.dist-info/ |
| 42 | -%{python3_sitearch}/__pycache__/mistune* | 49 | +%{python3_sitelib}/mistune/ |
| 43 | 50 | ||
| 44 | %changelog | 51 | %changelog |
| 52 | +* Thu Jul 13 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 3.0.1-1 | ||
| 53 | +- Update package python-mistune to version 3.0.1 | ||
| 54 | + | ||
| 45 | * Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9 | 55 | * Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9 |
| 46 | - Remove dependency on python-nose | 56 | - Remove dependency on python-nose |
| 47 | 57 | ||
Binary files do not support preview