Package python3-module-pip: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | %define _unpackaged_files_terminate_build 1 %define pypi_name pip %define system_wheels_path %(%__python3 -c 'import os, sys, system_seed_wheels; sys.stdout.write(os.path.dirname(system_seed_wheels.__file__))' 2>/dev/null || echo unknown) %def_with check Name: python3-module-%pypi_name Version: 22.2.2 Release: alt1 Summary: The PyPA recommended tool for installing Python packages License: MIT Group: Development/Python3 Url: https://pip.pypa.io Source0: %name-%version.tar Patch0: %name-%version-alt.patch BuildRequires(pre): rpm-build-python3 # build backend and its deps BuildRequires: python3(setuptools) BuildRequires: python3(wheel) # namespace package for system seed wheels which will be used within venv # created by virtualenv BuildRequires: python3(system_seed_wheels) %if_with check BuildRequires: git-core BuildRequires: python3(cryptography) BuildRequires: python3(freezegun) BuildRequires: python3(installer) BuildRequires: python3(pytest) BuildRequires: python3(scripttest) BuildRequires: python3(werkzeug) BuildRequires: python3(tomli_w) %endif Obsoletes: python3-module-pip-pickles %description %summary %add_findprov_skiplist %python3_sitelibdir/pip/_vendor/* %filter_from_requires /python3\(\.[[:digit:]]\)\?(pip\._vendor\(\..*\)\?)/d # don't allow vendored distributions have deps other than stdlib %add_findreq_skiplist %python3_sitelibdir/pip/_vendor/* %package wheel Summary: %summary Group: Development/Python3 %py3_requires system_seed_wheels %description wheel %summary Packaged as wheel. Provides the seed package for virtualenv. %package -n pip Summary: Executable for PIP Group: Development/Python3 Requires: python3-module-pip Obsoletes: python3-module-pip <= 21.2.1-alt2 Conflicts: python3-module-pip <= 21.2.1-alt2 BuildArch: noarch %description -n pip %summary %prep %setup %autopatch -p1 # remove bundled exes rm -f ./src/pip/_vendor/distlib/*.exe # never unbundle vendored packages # built wheel being installed into virtualenv will lack of unbundled packages %build %pyproject_build %install %pyproject_install # since we package python modules as arch dependent %if "%python3_sitelibdir" != "%python3_sitelibdir_noarch" mkdir -p %buildroot%python3_sitelibdir mv %buildroot%python3_sitelibdir_noarch/* %buildroot%python3_sitelibdir/ %endif # drop deprecated ntlm support rm -v %buildroot%python3_sitelibdir/pip/_vendor/urllib3/contrib/ntlmpool.py # package a built wheel (will be used within venv created by virtualenv) built_wheel=$(cat ./dist/.wheeltracker) || \ { echo Make sure you built a pyproject ; exit 1 ; } mkdir -p "%buildroot%system_wheels_path" cp -t "%buildroot%system_wheels_path/" "./dist/$built_wheel" %check %tox_create_default_config export NO_LATEST_WHEELS=YES export TOX_TESTENV_PASSENV='NO_LATEST_WHEELS' %tox_check_pyproject -- -vra -m 'not network and unit' %files -n pip %_bindir/pip %files %doc *.txt *.rst %_bindir/pip3 %_bindir/pip%__python3_version %python3_sitelibdir/pip/ %python3_sitelibdir/%{pyproject_distinfo %pypi_name}/ %files wheel %system_wheels_path/%{pep427_name %pypi_name}-%version-*.whl %changelog * Wed Aug 10 2022 Stanislav Levin <slev@altlinux.org> 22.2.2-alt1 - 22.0.4 -> 22.2.2. * Wed Mar 09 2022 Stanislav Levin <slev@altlinux.org> 22.0.4-alt1 - 22.0.3 -> 22.0.4. * Tue Feb 08 2022 Stanislav Levin <slev@altlinux.org> 22.0.3-alt1 - 21.3.1 -> 22.0.3. * Mon Oct 25 2021 Stanislav Levin <slev@altlinux.org> 21.3.1-alt1 - 21.3 -> 21.3.1. * Mon Oct 18 2021 Stanislav Levin <slev@altlinux.org> 21.3-alt1 - 21.2.4 -> 21.3. * Fri Sep 10 2021 Stanislav Levin <slev@altlinux.org> 21.2.4-alt1 - 21.2.1 -> 21.2.4. * Wed Aug 18 2021 Vitaly Lipatov <lav@altlinux.ru> 21.2.1-alt5 - NMU: drop ntlm support from urllib3 * Wed Aug 04 2021 Stanislav Levin <slev@altlinux.org> 21.2.1-alt4 - Built pip package as arch-independent. * Tue Aug 03 2021 Stanislav Levin <slev@altlinux.org> 21.2.1-alt3 - Moved pip executable into its own package. * Fri Jul 30 2021 Stanislav Levin <slev@altlinux.org> 21.2.1-alt2 - Added conflict to python2-pip (closes: #40612). * Mon Jul 26 2021 Stanislav Levin <slev@altlinux.org> 21.2.1-alt1 - 21.1.2 -> 21.2.1. * Mon May 24 2021 Stanislav Levin <slev@altlinux.org> 21.1.2-alt1 - 21.1.1 -> 21.1.2. * Fri May 07 2021 Stanislav Levin <slev@altlinux.org> 21.1.1-alt1 - 21.0.1 -> 21.1.1 (Updated bundled urllib3 1.26.2 -> 1.26.4 to fix CVE-2021-28363). - Enabled testing (unit tests for now). * Fri Apr 23 2021 Stanislav Levin <slev@altlinux.org> 21.0.1-alt1 - 20.1.1 -> 21.0.1. - Built wheel package(for virtualenv). * Thu Jun 04 2020 Fr. Br. George <george@altlinux.ru> 20.1.1-alt1 - Autobuild version bump to 20.1.1 * Fri Oct 18 2019 Stanislav Levin <slev@altlinux.org> 19.3.1-alt1 - 19.3 -> 19.3.1. * Fri Oct 18 2019 Stanislav Levin <slev@altlinux.org> 19.3-alt1 - 19.2.3 -> 19.3. * Thu Oct 03 2019 Fr. Br. George <george@altlinux.ru> 19.2.3-alt1 - Autobuild version bump to 19.2.3 * Thu Aug 01 2019 Stanislav Levin <slev@altlinux.org> 19.2.1-alt1 - 19.1.1 -> 19.2.1. * Mon May 13 2019 Stanislav Levin <slev@altlinux.org> 19.1.1-alt1 - 19.0.3 -> 19.1.1. * Fri Apr 19 2019 Mikhail Gordeev <obirvalger@altlinux.org> 19.0.3-alt2 - Change hardcoded python3 version to macros * Fri Mar 01 2019 Stanislav Levin <slev@altlinux.org> 19.0.3-alt1 - 19.0.1 -> 19.0.3. * Sun Jan 27 2019 Stanislav Levin <slev@altlinux.org> 19.0.1-alt1 - 18.1 -> 19.0.1. * Thu Oct 18 2018 Fr. Br. George <george@altlinux.ru> 18.1-alt1 - Autobuild version bump to 18.1 - Pickle modules removed * Thu Aug 02 2018 Fr. Br. George <george@altlinux.ru> 18.0-alt1 - Autobuild version bump to 18.0 * Tue Jun 12 2018 Fr. Br. George <george@altlinux.ru> 10.0.1-alt2 - Autobuild version bump to 10.0.1 - Introduce python3 generated documentation * Tue Jun 05 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 10.0.1-alt1 - Updated to upstream version 10.0.1. * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 9.0.1-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Mon Mar 13 2017 Fr. Br. George <george@altlinux.ru> 9.0.1-alt1 - Autobuild version bump to 9.0.1 * Mon Oct 31 2016 Fr. Br. George <george@altlinux.ru> 8.1.2-alt1 - Autobuild version bump to 8.1.2 - Fix python3 version * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 8.0.2-alt1.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 8.0.2-alt1.1 - NMU: Use buildreq for BR. * Tue Jan 26 2016 Fr. Br. George <george@altlinux.ru> 8.0.2-alt1 - Autobuild version bump to 8.0.2 * Tue Jan 26 2016 Fr. Br. George <george@altlinux.ru> 7.1.2-alt2 - New build scheme * Sun Aug 23 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 7.1.2-alt1 - Version 7.1.2 * Wed Aug 12 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 7.1.0-alt1 - Version 7.1.0 * Mon Jan 19 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 6.0.6-alt1 - Version 6.0.6 * Wed Dec 24 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 6.0.3-alt1 - Version 6.0.3 * Tue Dec 23 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 6.0.1-alt1 - Version 6.0.1 * Sat Jul 19 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.6-alt1 - Version 1.5.6 - Added module for Python 3 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.0-alt1.1 - Rebuild with Python-2.7 * Fri Jun 10 2011 Sergey Alembekov <rt@altlinux.ru> 1.0-alt1 - new version - spec fixes * Sun Mar 20 2011 Sergey Alembekov <rt@altlinux.ru> 0.8.3-alt1 - initial build for ALTLinux |