diff --git a/0001-add-setup.patch b/0001-add-setup.patch new file mode 100644 index 0000000000000000000000000000000000000000..f39f6e25c0066334076c9de3e8362247a928ca72 --- /dev/null +++ b/0001-add-setup.patch @@ -0,0 +1,15 @@ +--- c/setup.py 1970-01-01 08:00:00.000000000 +0800 ++++ a/setup.py 2023-02-28 17:01:05.764210848 +0800 +@@ -0,0 +1,12 @@ ++from setuptools import setup ++ ++ ++setup( ++ name = "pipdeptree", ++ version = "2.5.0", ++ entry_points = {'console_scripts': ++ [ ++ 'pipdeptree = pipdeptree:main', ++ ] ++ }, ++ ) diff --git a/pipdeptree-2.2.1.tar.gz b/pipdeptree-2.2.1.tar.gz deleted file mode 100644 index 279ddfde8ed825559394666109aa94c7eef0f093..0000000000000000000000000000000000000000 Binary files a/pipdeptree-2.2.1.tar.gz and /dev/null differ diff --git a/pipdeptree-2.5.0.tar.gz b/pipdeptree-2.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7d5870c6e18e14c9fefa8691b891a558e0d0b291 Binary files /dev/null and b/pipdeptree-2.5.0.tar.gz differ diff --git a/python-pipdeptree.spec b/python-pipdeptree.spec index ac619a3765688b7754fd1e7e1faaedd307f91371..6a77211f2af049b731211cbeba2e6bbb7c51e6a2 100644 --- a/python-pipdeptree.spec +++ b/python-pipdeptree.spec @@ -1,16 +1,14 @@ %global _empty_manifest_terminate_build 0 Name: python-pipdeptree -Version: 2.2.1 +Version: 2.5.0 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 +Source0: https://files.pythonhosted.org/packages/e2/e8/f3dc919f9fd0a00e387abcf419324f2561969189367b65a849b37e185049/pipdeptree-2.5.0.tar.gz +Patch0: 0001-add-setup.patch BuildArch: noarch -Requires: python3-pip -Requires: python3-graphviz - %description pipdeptree is a command line utility for displaying the installed python packages in form of a dependency tree. It works for packages installed globally @@ -19,9 +17,8 @@ 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 = %{version}-%{release} -BuildRequires: python3-devel +BuildRequires: python3-devel BuildRequires: python3-setuptools - %description -n python3-pipdeptree pipdeptree is a command line utility for displaying the installed python packages in form of a dependency tree. It works for packages installed globally @@ -30,9 +27,10 @@ on a machine as well as in a virtualenv. %package help Summary: Development documents and examples for pipdeptree Provides: python3-pipdeptree-doc - %description help -Documentation for python3-pipdeptree. +pipdeptree is a command line utility for displaying the installed python packages +in form of a dependency tree. It works for packages installed globally +on a machine as well as in a virtualenv. %prep %autosetup -n pipdeptree-%{version} @@ -47,6 +45,9 @@ 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 +if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst @@ -75,9 +76,11 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Tue Feb 28 2023 wangjunqi <wangjunqi@kylinos.cn> - 2.5.0-1 +- Update package to version 2.5.0 + * Thu Nov 03 2022 wangjunqi <wangjunqi@kylinos.cn> - 2.2.1-1 - Update package to version 2.2.1 * Fri Jul 16 2021 Kou Wenqi <kouwenqi@kylinos.cn> - 2.0.0-1 - Init package -