From d08c8c864ae9943081ccb32e2ce54356253ce64c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 18:16:22 +0000 Subject: automatic import of python-johnnydep --- python-johnnydep.spec | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 python-johnnydep.spec (limited to 'python-johnnydep.spec') 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 - 1.17.5-1 +- Package Spec generated -- cgit v1.2.3