summaryrefslogtreecommitdiff
path: root/python-sphinxcontrib-httpexample.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 02:37:20 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 02:37:20 +0000
commit21ee618695b489d4425db3bd5ed912f082f03e80 (patch)
treee4a9511cb23150bf6f8cb1142f60f2ad83d72fc7 /python-sphinxcontrib-httpexample.spec
parentf4974f6384f77100253db15d3a370832d15956de (diff)
automatic import of python-sphinxcontrib-httpexample
Diffstat (limited to 'python-sphinxcontrib-httpexample.spec')
-rw-r--r--python-sphinxcontrib-httpexample.spec79
1 files changed, 79 insertions, 0 deletions
diff --git a/python-sphinxcontrib-httpexample.spec b/python-sphinxcontrib-httpexample.spec
new file mode 100644
index 0000000..6c082dc
--- /dev/null
+++ b/python-sphinxcontrib-httpexample.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+Name: python-sphinxcontrib-httpexample
+Version: 1.1
+Release: 1
+Summary: Adds example directive for sphinx-contrib httpdomain
+License: GPL version 2
+URL: https://github.com/collective/sphinxcontrib-httpexample
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/70/ff/99f15df8a357fbe1b94b6642f0f02e695b502136e6a5f18ab7e4d9d1ad5d/sphinxcontrib-httpexample-1.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-astunparse
+Requires: python3-docutils
+Requires: python3-sphinx
+Requires: python3-sphinxcontrib-httpdomain
+
+%description
+sphinxcontrib-httpexample enhances `sphinxcontrib-httpdomain`_, a Sphinx domain extension for describing RESTful HTTP APIs in detail, with a simple call example directive. The new directive provided by this extension generates RESTful HTTP API call examples for different tools from a single HTTP request example.
+The audience for this extension are developers and technical writes documenting their RESTful HTTP APIs. This extension has originally been developed for documenting `plone.restapi`_.
+
+%package -n python3-sphinxcontrib-httpexample
+Summary: Adds example directive for sphinx-contrib httpdomain
+Provides: python-sphinxcontrib-httpexample
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-sphinxcontrib-httpexample
+sphinxcontrib-httpexample enhances `sphinxcontrib-httpdomain`_, a Sphinx domain extension for describing RESTful HTTP APIs in detail, with a simple call example directive. The new directive provided by this extension generates RESTful HTTP API call examples for different tools from a single HTTP request example.
+The audience for this extension are developers and technical writes documenting their RESTful HTTP APIs. This extension has originally been developed for documenting `plone.restapi`_.
+
+%package help
+Summary: Development documents and examples for sphinxcontrib-httpexample
+Provides: python3-sphinxcontrib-httpexample-doc
+%description help
+sphinxcontrib-httpexample enhances `sphinxcontrib-httpdomain`_, a Sphinx domain extension for describing RESTful HTTP APIs in detail, with a simple call example directive. The new directive provided by this extension generates RESTful HTTP API call examples for different tools from a single HTTP request example.
+The audience for this extension are developers and technical writes documenting their RESTful HTTP APIs. This extension has originally been developed for documenting `plone.restapi`_.
+
+%prep
+%autosetup -n sphinxcontrib-httpexample-1.1
+
+%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-sphinxcontrib-httpexample -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1-1
+- Package Spec generated