forked from pool/python-urllib3
Accepting request 338795 from home:TheBlackCat:branches:devel:languages:python
Delete the system egg-info during pre phase: older versions of the package installed it as a directory, the latest update creates a file, and rpm has known issues with replacing this. OBS-URL: https://build.opensuse.org/request/show/338795 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urllib3?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 14 09:35:30 UTC 2015 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Delete the system egg-info during pre phase: older versions of
|
||||||
|
the package installed it as a directory, the latest update
|
||||||
|
creates a file, and rpm has known issues with replacing this.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 6 15:03:05 UTC 2015 - hpj@urpla.net
|
Tue Oct 6 15:03:05 UTC 2015 - hpj@urpla.net
|
||||||
|
|
||||||
|
@@ -66,10 +66,17 @@ python setup.py build
|
|||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# previous versions of the package installed .egg-info as a directory,
|
||||||
|
# the new update now installs it as a file. Clean out the directory, should it exist.
|
||||||
|
if [ -d %{python_sitelib}/urllib3-%{version}-py*.egg-info ]; then
|
||||||
|
rm -rf %{python_sitelib}/urllib3-%{version}-py*.egg-info
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES.rst CONTRIBUTORS.txt LICENSE.txt README.rst
|
%doc CHANGES.rst CONTRIBUTORS.txt LICENSE.txt README.rst
|
||||||
%{python_sitelib}/urllib3
|
%{python_sitelib}/urllib3
|
||||||
%{python_sitelib}/urllib3-%{version}-py%{py_ver}.egg-info
|
%{python_sitelib}/urllib3-%{version}-py*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user