diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pip.spec | 120 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 122 insertions, 0 deletions
@@ -0,0 +1 @@ +/pip-23.0.1.tar.gz diff --git a/python-pip.spec b/python-pip.spec new file mode 100644 index 0000000..7c5ce77 --- /dev/null +++ b/python-pip.spec @@ -0,0 +1,120 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pip +Version: 23.0.1 +Release: 1 +Summary: The PyPA recommended tool for installing Python packages. +License: MIT +URL: https://pip.pypa.io/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6b/8b/0b16094553ecc680e43ded8f920c3873b01b1da79a54274c98f08cb29fca/pip-23.0.1.tar.gz +BuildArch: noarch + + +%description +pip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes. +Please take a look at our documentation for how to install and use pip: +* `Installation`_ +* `Usage`_ +We release updates regularly, with a new version every 3 months. Find more details in our documentation: +* `Release notes`_ +* `Release process`_ +In pip 20.3, we've `made a big improvement to the heart of pip`_; `learn more`_. We want your input, so `sign up for our user experience research studies`_ to help us do it right. +**Note**: pip 21.0, in January 2021, removed Python 2 support, per pip's `Python 2 support policy`_. Please migrate to Python 3. +If you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms: +* `Issue tracking`_ +* `Discourse channel`_ +* `User IRC`_ +If you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms: +* `GitHub page`_ +* `Development documentation`_ +* `Development IRC`_ + +%package -n python3-pip +Summary: The PyPA recommended tool for installing Python packages. +Provides: python-pip +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pip +pip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes. +Please take a look at our documentation for how to install and use pip: +* `Installation`_ +* `Usage`_ +We release updates regularly, with a new version every 3 months. Find more details in our documentation: +* `Release notes`_ +* `Release process`_ +In pip 20.3, we've `made a big improvement to the heart of pip`_; `learn more`_. We want your input, so `sign up for our user experience research studies`_ to help us do it right. +**Note**: pip 21.0, in January 2021, removed Python 2 support, per pip's `Python 2 support policy`_. Please migrate to Python 3. +If you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms: +* `Issue tracking`_ +* `Discourse channel`_ +* `User IRC`_ +If you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms: +* `GitHub page`_ +* `Development documentation`_ +* `Development IRC`_ + +%package help +Summary: Development documents and examples for pip +Provides: python3-pip-doc +%description help +pip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes. +Please take a look at our documentation for how to install and use pip: +* `Installation`_ +* `Usage`_ +We release updates regularly, with a new version every 3 months. Find more details in our documentation: +* `Release notes`_ +* `Release process`_ +In pip 20.3, we've `made a big improvement to the heart of pip`_; `learn more`_. We want your input, so `sign up for our user experience research studies`_ to help us do it right. +**Note**: pip 21.0, in January 2021, removed Python 2 support, per pip's `Python 2 support policy`_. Please migrate to Python 3. +If you find bugs, need help, or want to talk to the developers, please use our mailing lists or chat rooms: +* `Issue tracking`_ +* `Discourse channel`_ +* `User IRC`_ +If you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms: +* `GitHub page`_ +* `Development documentation`_ +* `Development IRC`_ + +%prep +%autosetup -n pip-23.0.1 + +%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-pip -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 23.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +f988022baba70f483744cc8c0e584010 pip-23.0.1.tar.gz |
