summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 17:01:47 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 17:01:47 +0000
commit7857b2077ddb492b4e731063ec0afa2521fc621b (patch)
tree822ed18d60ae38d0cd8b7abef9994208da7ad4c1
parentfab19fc387ce2f6a7cb6fb8f7329f823c65d8418 (diff)
automatic import of python-sphinx-epytext
-rw-r--r--.gitignore1
-rw-r--r--python-sphinx-epytext.spec90
-rw-r--r--sources1
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e17d5f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sphinx-epytext-0.0.4.tar.gz
diff --git a/python-sphinx-epytext.spec b/python-sphinx-epytext.spec
new file mode 100644
index 0000000..786101a
--- /dev/null
+++ b/python-sphinx-epytext.spec
@@ -0,0 +1,90 @@
+%global _empty_manifest_terminate_build 0
+Name: python-sphinx-epytext
+Version: 0.0.4
+Release: 1
+Summary: Sphinx "epytext" extension.
+License: MIT
+URL: https://github.com/jayvdb/sphinx-epytext
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a2/d1/60a763434d39552b4a392c409ba769accbe9ad96b7227f66bc7a08129fcf/sphinx-epytext-0.0.4.tar.gz
+BuildArch: noarch
+
+
+%description
+sphinx-epytext provides basic support for epytext docstrings
+<http://epydoc.sourceforge.net/epytext.html>
+in Sphinx autodoc <http://sphinx-doc.org/ext/autodoc.html>.
+It connects to the 'autodoc-process-docstring' hook of Sphinx, to perform the following:
+- Replaces '@' with ':' for epydoc fields. <http://epydoc.sourceforge.net/fields.html>
+- Replaces L{..} and C{..} with :py:obj:`..`
+- Removes U{..} from around links
+
+%package -n python3-sphinx-epytext
+Summary: Sphinx "epytext" extension.
+Provides: python-sphinx-epytext
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-sphinx-epytext
+sphinx-epytext provides basic support for epytext docstrings
+<http://epydoc.sourceforge.net/epytext.html>
+in Sphinx autodoc <http://sphinx-doc.org/ext/autodoc.html>.
+It connects to the 'autodoc-process-docstring' hook of Sphinx, to perform the following:
+- Replaces '@' with ':' for epydoc fields. <http://epydoc.sourceforge.net/fields.html>
+- Replaces L{..} and C{..} with :py:obj:`..`
+- Removes U{..} from around links
+
+%package help
+Summary: Development documents and examples for sphinx-epytext
+Provides: python3-sphinx-epytext-doc
+%description help
+sphinx-epytext provides basic support for epytext docstrings
+<http://epydoc.sourceforge.net/epytext.html>
+in Sphinx autodoc <http://sphinx-doc.org/ext/autodoc.html>.
+It connects to the 'autodoc-process-docstring' hook of Sphinx, to perform the following:
+- Replaces '@' with ':' for epydoc fields. <http://epydoc.sourceforge.net/fields.html>
+- Replaces L{..} and C{..} with :py:obj:`..`
+- Removes U{..} from around links
+
+%prep
+%autosetup -n sphinx-epytext-0.0.4
+
+%build
+%py3_build
+
+%install
+%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 .
+
+%files -n python3-sphinx-epytext -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ea61fc9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5a7850b097af91ce495a6898fc4cbbe7 sphinx-epytext-0.0.4.tar.gz