Merged
Update package #9
AtomGit-BotAdd on Aug 1, 2022
Update package #9
Merged
AtomGit-BotAdd on Aug 1, 2022
Merged fromrefs/pull/9/headintomaster
Total: 3 files changed+55-22
Binary files do not support preview
@@ -1,12 +1,13 @@
1-Name: python-mistune1+%global _empty_manifest_terminate_build 0
2-Version: 0.8.32+Name: python-mistune
3-Release: 93+Version: 2.0.4
4-Summary: A Python Markdown Parser4+Release: 1
5-License: BSD5+Summary: A sane Markdown parser with useful plugins and renderers
6-URL: https://github.com/lepture/mistune6+License: BSD-3-Clause
7-Source0: https://github.com/lepture/mistune/archive/v%{version}.tar.gz7+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%description12%description
12The python-mistune package is a fast yet powerful Python Markdown13The python-mistune package is a fast yet powerful Python Markdown
@@ -14,34 +15,66 @@ parser with renderers and plugins, compatible with sane CommonMark
14rules.15rules.
15 16 
16%package -n python3-mistune17%package -n python3-mistune
17-Summary: A Python Markdown Parser18+Summary: A Python Markdown Parser
18- 19+Provides: python-mistune
20+BuildRequires: python3-devel
21+BuildRequires: python3-setuptools
19%description -n python3-mistune22%description -n python3-mistune
20The python-mistune package is a fast yet powerful Python Markdown23The python-mistune package is a fast yet powerful Python Markdown
21parser with renderers and plugins, compatible with sane CommonMark24parser with renderers and plugins, compatible with sane CommonMark
22rules.25rules.
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%prep34%prep
25-%autosetup -n mistune-%{version} -p135+%autosetup -n mistune-%{version}
26-find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
27 36 
28%build37%build
29-CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build38+%py3_build
30 39 
31%install40%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-%check68+%files -n python3-mistune -f filelist.lst
36-/usr/bin/pytest69+%dir %{python3_sitelib}/*
37 70 
38-%files -n python3-mistune71+%files help -f doclist.lst
39-%doc LICENSE README.rst72+%{_docdir}/*
40-%{python3_sitearch}/mistune.*
41-%{python3_sitearch}/mistune-%{version}-py%{python3_version}.egg-info
42-%{python3_sitearch}/__pycache__/mistune*
43 73 
44%changelog74%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-978* Thu May 5 2022 caodongxia <caodongxia@h-partners.com> - 0.8.3-9
46- Remove dependency on python-nose79- Remove dependency on python-nose
47 80 
Binary files do not support preview