Merged
Update package #9
AtomGit-BotAdd on Aug 1, 2022
Update package #9
Merged
Merged fromrefs/pull/9/headintomaster
Total: 3 files changed+55-22
| @@ -1,12 +1,13 @@ | |||
| 1 | -Name: python-mistune | 1 | +%global _empty_manifest_terminate_build 0 |
| 2 | -Version: 0.8.3 | 2 | +Name: python-mistune |
| 3 | -Release: 9 | 3 | +Version: 2.0.4 |
| 4 | -Summary: A Python Markdown Parser | 4 | +Release: 1 |
| 5 | -License: BSD | 5 | +Summary: A sane Markdown parser with useful plugins and renderers |
| 6 | -URL: https://github.com/lepture/mistune | 6 | +License: BSD-3-Clause |
| 7 | -Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz | 7 | +URL: https://github.com/lepture/mistune |
| 8 | +Source0: https://files.pythonhosted.org/packages/cd/9b/0f98334812f548a5ee4399b76e33752a74fc7bb976f5efb34d962f03d585/mistune-2.0.4.tar.gz | ||
| 9 | +BuildArch: noarch | ||
| 8 | 10 | ||
| 9 | -BuildRequires: python3-Cython python3-devel python3-pytest python3-setuptools | ||
| 10 | 11 | ||
| 11 | %description | 12 | %description |
| 12 | The python-mistune package is a fast yet powerful Python Markdown | 13 | The python-mistune package is a fast yet powerful Python Markdown |
| @@ -14,34 +15,66 @@ parser with renderers and plugins, compatible with sane CommonMark | |||
| 14 | rules. | 15 | rules. |
| 15 | 16 | ||
| 16 | %package -n python3-mistune | 17 | %package -n python3-mistune |
| 17 | -Summary: A Python Markdown Parser | 18 | +Summary: A Python Markdown Parser |
| 18 | - | 19 | +Provides: python-mistune |
| 20 | +BuildRequires: python3-devel | ||
| 21 | +BuildRequires: python3-setuptools | ||
| 19 | %description -n python3-mistune | 22 | %description -n python3-mistune |
| 20 | The python-mistune package is a fast yet powerful Python Markdown | 23 | The python-mistune package is a fast yet powerful Python Markdown |
| 21 | parser with renderers and plugins, compatible with sane CommonMark | 24 | parser with renderers and plugins, compatible with sane CommonMark |
| 22 | rules. | 25 | rules. |
| 23 | 26 | ||
| 27 | + | ||
| 28 | +%package help | ||
| 29 | +Summary: Development documents and examples for mistune | ||
| 30 | +Provides: python3-mistune-doc | ||
| 31 | +%description help | ||
| 32 | +A fast yet powerful Python Markdown parser with renderers and plugins. | ||
| 33 | + | ||
| 24 | %prep | 34 | %prep |
| 25 | -%autosetup -n mistune-%{version} -p1 | 35 | +%autosetup -n mistune-%{version} |
| 26 | -find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' | ||
| 27 | 36 | ||
| 28 | %build | 37 | %build |
| 29 | -CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build | 38 | +%py3_build |
| 30 | 39 | ||
| 31 | %install | 40 | %install |
| 32 | -%{__python3} setup.py install --skip-build --root %{buildroot} | 41 | +%py3_install |
| 33 | -%{_fixperms} %{buildroot}/* | 42 | +install -d -m755 %{buildroot}/%{_pkgdocdir} |
| 43 | +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi | ||
| 44 | +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi | ||
| 45 | +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi | ||
| 46 | +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi | ||
| 47 | +pushd %{buildroot} | ||
| 48 | +if [ -d usr/lib ]; then | ||
| 49 | + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst | ||
| 50 | +fi | ||
| 51 | +if [ -d usr/lib64 ]; then | ||
| 52 | + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst | ||
| 53 | +fi | ||
| 54 | +if [ -d usr/bin ]; then | ||
| 55 | + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst | ||
| 56 | +fi | ||
| 57 | +if [ -d usr/sbin ]; then | ||
| 58 | + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst | ||
| 59 | +fi | ||
| 60 | +touch doclist.lst | ||
| 61 | +if [ -d usr/share/man ]; then | ||
| 62 | + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst | ||
| 63 | +fi | ||
| 64 | +popd | ||
| 65 | +mv %{buildroot}/filelist.lst . | ||
| 66 | +mv %{buildroot}/doclist.lst . | ||
| 34 | 67 | ||
| 35 | -%check | 68 | +%files -n python3-mistune -f filelist.lst |
| 36 | -/usr/bin/pytest | 69 | +%dir %{python3_sitelib}/* |
| 37 | 70 | ||
| 38 | -%files -n python3-mistune | 71 | +%files help -f doclist.lst |
| 39 | -%doc LICENSE README.rst | 72 | +%{_docdir}/* |
| 40 | -%{python3_sitearch}/mistune.* | ||
| 41 | -%{python3_sitearch}/mistune-%{version}-py%{python3_version}.egg-info | ||
| 42 | -%{python3_sitearch}/__pycache__/mistune* | ||
| 43 | 73 | ||
| 44 | %changelog | 74 | %changelog |
| 75 | +* Mon Aug 01 2022 liqiuyu <liqiuyu@kylinos.cn> - 2.0.4-1 | ||
| 76 | +- Update to 2.0.4 | ||
| 77 | + | ||
| 45 | * Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9 | 78 | * Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9 |
| 46 | - Remove dependency on python-nose | 79 | - Remove dependency on python-nose |
| 47 | 80 | ||
Binary files do not support preview