diff --git a/python-sphinx-mdinclude.spec b/python-sphinx-mdinclude.spec new file mode 100644 index 0000000..f19771a --- /dev/null +++ b/python-sphinx-mdinclude.spec @@ -0,0 +1,68 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sphinx-mdinclude +Version: 0.5.3 +Release: 1 +Summary: Markdown extension for Sphinx. +License: MIT +URL: https://github.com/omnilib/sphinx-mdinclude +Source0: https://files.pythonhosted.org/packages/9f/53/7a4f8c341066f12795a32d544ead6a1a1f0f7d8ccf7fe3465d994437f44a/sphinx_mdinclude-0.5.3.tar.gz +BuildArch: noarch + + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-flit-core +BuildRequires: python3-docutils +BuildRequires: python3-mistune +BuildRequires: python3-pygments +%description +Markdown extension for Sphinx. + + +%package -n python3-sphinx-mdinclude +Summary: Markdown extension for Sphinx. +Provides: python-sphinx-mdinclude +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-hatchling +%description -n python3-sphinx-mdinclude +Markdown extension for Sphinx. + +%package help +Summary: Development documents and examples for sphinx-mdinclude +Provides: python3-sphinx-mdinclude-doc + +%description help +Development documents and examples for sphinx-mdinclude. + +%prep +%autosetup -n sphinx_mdinclude-%{version} + +%build +%pyproject_build + +%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 + +%files -n python3-sphinx-mdinclude +%doc README.md +%license LICENSE +%{python3_sitelib}/sphinx_mdinclude +%{python3_sitelib}/sphinx_mdinclude*.dist-info/ + + +%files help +%{_docdir}/* + +%changelog +* Tue Nov 7 2023 Dongxing Wang - 0.5.3-1 +- Init package diff --git a/sphinx_mdinclude-0.5.3.tar.gz b/sphinx_mdinclude-0.5.3.tar.gz new file mode 100644 index 0000000..3934baf Binary files /dev/null and b/sphinx_mdinclude-0.5.3.tar.gz differ