diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 18:16:22 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 18:16:22 +0000 |
| commit | d08c8c864ae9943081ccb32e2ce54356253ce64c (patch) | |
| tree | e790ca88170a27ae84a9434318ce9a6339932390 | |
| parent | efa6dea8cca714f7118ee3478005669071e1c896 (diff) | |
automatic import of python-johnnydep
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-johnnydep.spec | 88 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 90 insertions, 0 deletions
@@ -0,0 +1 @@ +/johnnydep-1.17.5.tar.gz diff --git a/python-johnnydep.spec b/python-johnnydep.spec new file mode 100644 index 0000000..4b75a39 --- /dev/null +++ b/python-johnnydep.spec @@ -0,0 +1,88 @@ +%global _empty_manifest_terminate_build 0 +Name: python-johnnydep +Version: 1.17.5 +Release: 1 +Summary: Display dependency tree of Python distribution +License: MIT +URL: https://github.com/wimglenn/johnnydep +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/31/d3/38a7a2727610ca1b128997419acca1f25225fa2472517aea6b9f465dfc1c/johnnydep-1.17.5.tar.gz +BuildArch: noarch + +Requires: python3-anytree +Requires: python3-structlog +Requires: python3-tabulate +Requires: python3-wimpy +Requires: python3-colorama +Requires: python3-cachetools +Requires: python3-oyaml +Requires: python3-toml +Requires: python3-pip +Requires: python3-packaging +Requires: python3-wheel +Requires: python3-setuptools +Requires: python3-pkginfo + +%description +Pretty-print a dependency tree for a Python distribution. A simple example: + $ johnnydep requests + +%package -n python3-johnnydep +Summary: Display dependency tree of Python distribution +Provides: python-johnnydep +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-johnnydep +Pretty-print a dependency tree for a Python distribution. A simple example: + $ johnnydep requests + +%package help +Summary: Development documents and examples for johnnydep +Provides: python3-johnnydep-doc +%description help +Pretty-print a dependency tree for a Python distribution. A simple example: + $ johnnydep requests + +%prep +%autosetup -n johnnydep-1.17.5 + +%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-johnnydep -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.17.5-1 +- Package Spec generated @@ -0,0 +1 @@ +05db4718f031d45af98f822d955915e4 johnnydep-1.17.5.tar.gz |
