update package of version 1.5.2 mkdocs

This commit is contained in:
luolu12 2023-08-25 15:24:24 +08:00
parent 0b07cde742
commit 528bad3235
3 changed files with 35 additions and 37 deletions

View File

@ -1,25 +0,0 @@
From 48e5ffc4610957f263f37d1665624142f4f4244a Mon Sep 17 00:00:00 2001
From: luolu12 <luluoc@isoftstone.com>
Date: Tue, 27 Jun 2023 10:24:30 +0800
Subject: [PATCH] patch
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index 9c32c94..4209fe8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -35,7 +35,7 @@ requires-python = ">=3.7"
dependencies = [
"click >=7.0",
"Jinja2 >=2.11.1",
- "Markdown >=3.2.1, <3.4",
+ "Markdown >=3.2.1, <=3.4.1",
"PyYAML >=5.1",
"watchdog >=2.0",
"ghp-import >=1.0",
--
2.33.0

View File

@ -1,21 +1,19 @@
# Created by pyp2rpm-3.3.9
%global pypi_name mkdocs %global pypi_name mkdocs
%global pypi_version 1.4.3
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: %{pypi_version} Version: 1.5.2
Release: 1 Release: 1
Summary: Project documentation with Markdown Summary: Project documentation with Markdown
License: BSD License: BSD
URL: https://www.mkdocs.org URL: https://www.mkdocs.org
Source0: https://files.pythonhosted.org/packages/b0/ef/49b4427e5eec761b77a3c3c421d3fd63010e2798b7401dc0fa2b875ef6b5/mkdocs-1.4.3.tar.gz Source0: https://files.pythonhosted.org/packages/35/6a/63612e19d9c903a608caf91fd2c1f07ccbb9610de4ddb6f187aec1cce197/mkdocs-1.5.2.tar.gz
BuildArch: noarch BuildArch: noarch
Patch001:0001-markdown_mkdocs1.4.3.patch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3dist(setuptools) BuildRequires: python3-setuptools
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-wheel BuildRequires: python3-wheel
BuildRequires: python3-editables BuildRequires: python3-editables
@ -34,6 +32,16 @@ MkDocs is Python powered, this package is built with Python 3.
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}} %{?python_provide:%python_provide python3-%{pypi_name}}
%package help
Summary: %{summary}
Provides: python3-%{pypi_name}-doc
%description help
MkDocs is a fast and simple way to create a website from source files written
in Markdown, and configured with a YAML configuration file, the documentation
can be hosted anywhere, even in free hosting services like Read the Docs and
GitHub Pages.
MkDocs is Python powered, this package is built with Python 3.
%description -n python3-%{pypi_name} %description -n python3-%{pypi_name}
MkDocs is a fast and simple way to create a website from source files written MkDocs is a fast and simple way to create a website from source files written
in Markdown, and configured with a YAML configuration file, the documentation in Markdown, and configured with a YAML configuration file, the documentation
@ -41,27 +49,42 @@ can be hosted anywhere, even in free hosting services like Read the Docs and
GitHub Pages. GitHub Pages.
MkDocs is Python powered, this package is built with Python 3. MkDocs is Python powered, this package is built with Python 3.
%patch001 -p1
%prep %prep
%autosetup -n %{pypi_name}-%{pypi_version} %autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build %build
%pyproject_build %pyproject_build
%install %install
%pyproject_install %pyproject_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}
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}/doclist.lst .
%files -n python3-%{pypi_name} %files -n python3-%{pypi_name}
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{_bindir}/mkdocs %{_bindir}/mkdocs
%{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}*
%{python3_sitelib}/%{pypi_name}-*-info
%files help
%{_docdir}/*
%changelog %changelog
* Fri Aug 25 2023 luolu12 <luluoc@isoftstone.com> - 1.5.2-1
- update package of version 1.5.2.
* Mon Jun 26 2023 luolu12 <luluoc@isoftstone.com> - 1.4.3-1 * Mon Jun 26 2023 luolu12 <luluoc@isoftstone.com> - 1.4.3-1
- update package of version 1.4.3. - update package of version 1.4.3.