diff --git a/2.0.0.tar.gz b/2.0.0.tar.gz deleted file mode 100644 index dd35240903c1c5ca9d88f026c69e909dfb906ec3..0000000000000000000000000000000000000000 Binary files a/2.0.0.tar.gz and /dev/null differ diff --git a/pipdeptree-2.2.1.tar.gz b/pipdeptree-2.2.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..279ddfde8ed825559394666109aa94c7eef0f093 Binary files /dev/null and b/pipdeptree-2.2.1.tar.gz differ diff --git a/python-pipdeptree.spec b/python-pipdeptree.spec index b7f2286e38a42c4985b7986b4ea9740ef12ce45e..ac619a3765688b7754fd1e7e1faaedd307f91371 100644 --- a/python-pipdeptree.spec +++ b/python-pipdeptree.spec @@ -1,11 +1,15 @@ -Name: python-pipdeptree -Version: 2.0.0 -Release: 1 -Summary: Command line utility to show dependency tree of packages -License: MIT -URL: https://github.com/naiquevin/pipdeptree -Source0: https://github.com/naiquevin/pipdeptree/archive/refs/tags/2.0.0.tar.gz -BuildArch: noarch +%global _empty_manifest_terminate_build 0 +Name: python-pipdeptree +Version: 2.2.1 +Release: 1 +Summary: Command line utility to show dependency tree of packages +License: MIT +URL: https://github.com/tox-dev/pipdeptree +Source0: https://files.pythonhosted.org/packages/9e/c0/2ca9cb24d8045a1c84bdeca2b2646fcf438266a930301a7672c4cb8d0ff9/pipdeptree-2.2.1.tar.gz +BuildArch: noarch + +Requires: python3-pip +Requires: python3-graphviz %description pipdeptree is a command line utility for displaying the installed python packages @@ -13,10 +17,10 @@ in form of a dependency tree. It works for packages installed globally on a machine as well as in a virtualenv. %package -n python3-pipdeptree -Summary: Command line utility to show dependency tree of packages -Provides: python-pipdeptree -Requires: python3-pip python3-graphviz -BuildRequires: python3-devel python3-setuptools +Summary: Command line utility to show dependency tree of packages +Provides: python-pipdeptree = %{version}-%{release} +BuildRequires: python3-devel +BuildRequires: python3-setuptools %description -n python3-pipdeptree pipdeptree is a command line utility for displaying the installed python packages @@ -24,31 +28,56 @@ in form of a dependency tree. It works for packages installed globally on a machine as well as in a virtualenv. %package help -Summary: Development documents and examples for pipdeptree -Provides: python3-pipdeptree-doc -Requires: python3-pipdeptree +Summary: Development documents and examples for pipdeptree +Provides: python3-pipdeptree-doc %description help Documentation for python3-pipdeptree. %prep -%autosetup -n pipdeptree-2.0.0 +%autosetup -n pipdeptree-%{version} %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-pipdeptree -%{_bindir}/pipdeptree -%{python3_sitelib}/__pycache__/* -%{python3_sitelib}/pipdeptree.py -%{python3_sitelib}/pipdeptree-2.0.0-py%{python3_version}.egg-info +%files -n python3-pipdeptree -f filelist.lst +%dir %{python3_sitelib}/* -%files help -%doc docs +%files help -f doclist.lst +%{_docdir}/* %changelog +* Thu Nov 03 2022 wangjunqi - 2.2.1-1 +- Update package to version 2.2.1 + * Fri Jul 16 2021 Kou Wenqi - 2.0.0-1 - Init package +