|
|
@ -99,19 +99,19 @@ This package contains the test suite for the Python bindings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n pyzmq-%{version}
|
|
|
|
%autosetup -p1 -n pyzmq-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
# remove bundled libraries
|
|
|
|
# remove bundled libraries
|
|
|
|
rm -rv bundled/
|
|
|
|
rm -rv bundled/
|
|
|
|
|
|
|
|
|
|
|
|
# remove the Cython .c files in order to regenerate them:
|
|
|
|
# Remove any Cython-generated .c files in order to regenerate them:
|
|
|
|
find zmq -name "*.c" -delete
|
|
|
|
find zmq -name '*.c' -print -delete
|
|
|
|
|
|
|
|
|
|
|
|
# remove shebangs
|
|
|
|
# Remove shebangs from non-script sources. The find-then-modify pattern
|
|
|
|
grep -lr "^#\!/usr/bin/env python" | xargs sed -i "1d"
|
|
|
|
# preserves mtimes on sources that did not need to be modified.
|
|
|
|
|
|
|
|
find 'src' -type f -name '*.py' \
|
|
|
|
# remove excecutable bits
|
|
|
|
-exec gawk '/^#!/ { print FILENAME }; { nextfile }' '{}' '+' |
|
|
|
|
find . -type f -executable | xargs chmod -x
|
|
|
|
xargs -r sed -r -i '1{/^#!/d}'
|
|
|
|
|
|
|
|
|
|
|
|
# BUG: A file is licensed Apache-2.0, but the license text is not distributed
|
|
|
|
# BUG: A file is licensed Apache-2.0, but the license text is not distributed
|
|
|
|
# https://github.com/zeromq/pyzmq/issues/2048
|
|
|
|
# https://github.com/zeromq/pyzmq/issues/2048
|
|
|
|