From 100d9bc2d80b3007f52358d6a81e255a4f111d72 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:17:57 +0100 Subject: [PATCH] added python3 subpackage [release 6.1.1-2mamba;Sun May 17 2015] --- python-pip.spec | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/python-pip.spec b/python-pip.spec index 60c8066..6ca0372 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -1,11 +1,11 @@ Name: python-pip Version: 6.1.1 -Release: 1mamba +Release: 2mamba Summary: A tool for installing and managing Python packages Group: System/Libraries Vendor: openmamba Distribution: openmamba -Packager: openmamba WebBuild System +Packager: Silvan Calarco URL: http://www.pip-installer.org/ Source: http://pypi.python.org/packages/source/p/pip/pip-%{version}.tar.gz License: MIT @@ -21,6 +21,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %description pip is a tool for installing and managing Python packages, such as those found in the Python Package Index. It’s a replacement for easy_install. +%if "%{?with_pyver}" +%pyver_package +%endif + %prep %setup -q -n pip-%{version} @@ -39,16 +43,18 @@ CFLAGS="%{optflags}" %{__python} setup.py build sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist -%files -f %{name}.filelist -%defattr(-,root,root) -## note: this list is just an example; modify as required -# %{python_sitearch}/%{name}.py* -# %{python_sitearch}/%{name}.so +%if "%{?pyappend}" +rm -f %{buildroot}%{_bindir}/pip +sed -i "\,%{_bindir}/pip$,d" %{name}.filelist +%endif -## note: eventually add the remaining documents (if any) -# +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) %changelog +* Sun May 17 2015 Silvan Calarco 6.1.1-2mamba +- added python3 subpackage + * Tue Apr 07 2015 Automatic Build System 6.1.1-1mamba - automatic version update by autodist