diff --git a/python-pip.spec b/python-pip.spec index 15967ec..b5db78b 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -64,9 +64,7 @@ BuildRequires: python-wheel-wheel # git clone https://github.com/pypa/pip && cd pip # VERSION= # define the version you want # git checkout $VERSION && tar -czvf ../pip-$VERSION-tests.tar.gz tests/ -%if %{with tests} Source1: pip-%{version}-tests.tar.gz -%endif # Themes required to build the docs. %if %{with doc} @@ -239,9 +237,8 @@ A Python wheel of pip to use with venv. %prep %setup -q -n %{srcname}-%{version} -%if %{with tests} tar -xf %{SOURCE1} -%endif + %if %{with doc} pushd docs/html tar -xf %{SOURCE2} @@ -261,10 +258,8 @@ popd rm src/pip/_vendor/certifi/*.pem sed -i '/\.pem$/d' src/pip.egg-info/SOURCES.txt -%if %{with tests} # tests expect wheels in here ln -s %{python_wheeldir} tests/data/common_wheels -%endif %build