From 9d511ca1c92a13199f31bf6ef06229db2aa11c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 27 Jul 2018 14:40:21 +0200 Subject: [PATCH] Fix couple of rpmlint issues --- python-setuptools.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-setuptools.spec b/python-setuptools.spec index 98562c9..ac3dd2f 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -144,11 +144,13 @@ execute the software that requires pkg_resources.py. # otherwise setuptools are installed as dependency into buildroot # Strip shbang -find setuptools -name \*.py | xargs sed -i -e '1 {/^#!\//d}' +find setuptools pkg_resources -name \*.py | xargs sed -i -e '1 {/^#!\//d}' # Remove bundled exes rm -f setuptools/*.exe # These tests require internet connection rm setuptools/tests/test_integration.py +# Spurious executable perm https://github.com/pypa/setuptools/pull/1441 +chmod -x README.rst %build %if %{with python2}