diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 17:07:34 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 17:07:34 +0000 |
commit | 593564108459f9484349fcc7d7205daf8b144f21 (patch) | |
tree | f47c4404478d3582a363336136e52fdc77e3d1f3 | |
parent | e2e3871d006898aa8e41f606992b7daa60c01e2a (diff) |
automatic import of python-sphinxcontrib-phpdomain
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-sphinxcontrib-phpdomain.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/sphinxcontrib-phpdomain-0.9.0.tar.gz diff --git a/python-sphinxcontrib-phpdomain.spec b/python-sphinxcontrib-phpdomain.spec new file mode 100644 index 0000000..b9fb9d8 --- /dev/null +++ b/python-sphinxcontrib-phpdomain.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sphinxcontrib-phpdomain +Version: 0.9.0 +Release: 1 +Summary: Sphinx extension to enable documenting PHP code +License: BSD +URL: https://github.com/markstory/sphinxcontrib-phpdomain +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bf/af/ca4fecfbf8c0cee5734ee58d292bbb95c8ee2621e4eb4575417a87b5a67a/sphinxcontrib-phpdomain-0.9.0.tar.gz +BuildArch: noarch + + +%description +This package contains the phpdomain Sphinx extension. + +This extension provides a PHP domain for sphinx + +%package -n python3-sphinxcontrib-phpdomain +Summary: Sphinx extension to enable documenting PHP code +Provides: python-sphinxcontrib-phpdomain +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sphinxcontrib-phpdomain +This package contains the phpdomain Sphinx extension. + +This extension provides a PHP domain for sphinx + +%package help +Summary: Development documents and examples for sphinxcontrib-phpdomain +Provides: python3-sphinxcontrib-phpdomain-doc +%description help +This package contains the phpdomain Sphinx extension. + +This extension provides a PHP domain for sphinx + +%prep +%autosetup -n sphinxcontrib-phpdomain-0.9.0 + +%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-phpdomain -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.0-1 +- Package Spec generated @@ -0,0 +1 @@ +1981f6f38fe246b2b68275510069e45b sphinxcontrib-phpdomain-0.9.0.tar.gz |