diff --git a/Markdown-3.3.7.tar.gz b/Markdown-3.3.7.tar.gz deleted file mode 100644 index f122abfeb2e801762cdcab5d6c7ab15bca17022d..0000000000000000000000000000000000000000 Binary files a/Markdown-3.3.7.tar.gz and /dev/null differ diff --git a/Markdown-3.4.1.tar.gz b/Markdown-3.4.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..23bdcec4a0a947f10282a40b16fbf85d74a7b62b Binary files /dev/null and b/Markdown-3.4.1.tar.gz differ diff --git a/python-markdown.spec b/python-markdown.spec index 8be1cba6f67b25fe4633b3638959c5df63d3a2cc..3132b38a35d57f38cb98df35671aa60a52c49e95 100644 --- a/python-markdown.spec +++ b/python-markdown.spec @@ -1,16 +1,15 @@ -%{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")} - -Name: python-markdown -Version: 3.3.7 -Release: 1 -Summary: A Python implementation of John Gruber’s Markdown -License: BSD-3-Clause -URL: https://pypi.org/project/Markdown/ -Source0: https://pypi.python.org/packages/source/M/Markdown/Markdown-%{version}.tar.gz - -BuildArch: noarch - -BuildRequires: python3-devel >= 3.1 python3-nose2 python3-pyyaml +%global _empty_manifest_terminate_build 0 +Name: python-markdown +Version: 3.4.1 +Release: 1 +Summary: A Python implementation of John Gruber’s Markdown +License: BSD-3-Clause +URL: https://pypi.org/project/Markdown/ +Source0: https://files.pythonhosted.org/packages/85/7e/133e943e97a943d2f1d8bae0c5060f8ac50e6691754eb9dbe036b047a9bb/Markdown-3.4.1.tar.gz +BuildArch: noarch + +Requires: python3 >= 3.1 +Requires: importlib-metadata >= 4.4 %description This is a Python implementation of John Gruber’s Markdown. @@ -18,35 +17,73 @@ It is almost completely compliant with the reference implementation, though there are a few known issues. %package -n python3-markdown -Summary: Markdown implementation in Python -Requires: python3 >= 3.1 -%{?python_provide:%python_provide python3-markdown} +Summary: Markdown implementation in Python +Provides: python-markdown = %{version}-%{release} +BuildRequires: python3-devel >= 3.1 +BuildRequires: python3-nose2 +BuildRequires: python3-pyyaml %description -n python3-markdown This is a Python implementation of John Gruber’s Markdown. It is almost completely compliant with the reference implementation, though there are a few known issues. -%prep -%autosetup -n Markdown-%{version} -p1 +%package help +Summary: Development documents and examples for Markdown +Provides: python3-markdown-doc -find markdown -type f -name '*.py' -exec sed -i -e '/^#!/{1D}' {} \; -find docs -type f -exec sed -i 's/\r//' {} \; +%description help +This is a Python implementation of John Gruber’s Markdown. +It is almost completely compliant with the reference implementation, +though there are a few known issues. + +%prep +%autosetup -n Markdown-%{version} %build -%{__python3} setup.py build +%py3_build %install -%{__python3} setup.py install -O1 --skip-build --root %{buildroot} +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . %check %{__python3} -m unittest discover tests -%files -n python3-markdown -%{python3_sitelib}/* -%{_bindir}/markdown_py +%files -n python3-markdown -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Nov 21 2022 wangjunqi - 3.4.1-1 +- Update package to version 3.4.1 + * Thu Jun 09 2022 SimpleUpdate Robot - 3.3.7-1 - Upgrade to version 3.3.7