diff --git a/python-pip.spec b/python-pip.spec index 0721af6..e364fe7 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -71,9 +71,7 @@ BuildRequires: python-wheel-wheel # to get tests: # git clone https://github.com/pypa/pip && cd pip # 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} @@ -303,9 +301,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} @@ -329,10 +326,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