diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 20:21:24 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 20:21:24 +0000 |
| commit | 7cb8e9e706f2c677b6f842e6139975612558bd91 (patch) | |
| tree | 66b42f501984ad8625032d64ff88d4476759a1e7 /python-interrogate.spec | |
| parent | ae513620f39635ec78a19016769c27d69d3c9b9c (diff) | |
automatic import of python-interrogate
Diffstat (limited to 'python-interrogate.spec')
| -rw-r--r-- | python-interrogate.spec | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/python-interrogate.spec b/python-interrogate.spec new file mode 100644 index 0000000..b21a542 --- /dev/null +++ b/python-interrogate.spec @@ -0,0 +1,92 @@ +%global _empty_manifest_terminate_build 0 +Name: python-interrogate +Version: 1.5.0 +Release: 1 +Summary: Interrogate a codebase for docstring coverage. +License: MIT License +URL: https://interrogate.readthedocs.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/82/71/36679473d57fb844ebd1bb2dbda0974f4b72b1677a6864622fceb4f89891/interrogate-1.5.0.tar.gz +BuildArch: noarch + +Requires: python3-attrs +Requires: python3-click +Requires: python3-colorama +Requires: python3-py +Requires: python3-tabulate +Requires: python3-toml +Requires: python3-cairosvg +Requires: python3-sphinx +Requires: python3-sphinx-autobuild +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-pytest-mock +Requires: python3-wheel +Requires: python3-pre-commit +Requires: python3-sphinx +Requires: python3-sphinx-autobuild +Requires: python3-cairosvg +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-pytest-mock + +%description + + +%package -n python3-interrogate +Summary: Interrogate a codebase for docstring coverage. +Provides: python-interrogate +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-interrogate + + +%package help +Summary: Development documents and examples for interrogate +Provides: python3-interrogate-doc +%description help + + +%prep +%autosetup -n interrogate-1.5.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-interrogate -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.0-1 +- Package Spec generated |
