CentOS Linux release 7.6.1810 (Core)
Пакую pip пакет в rpm
pyp2rpm semaphore -t epel7 -b2 -p2 -v 0.4.65 > semaphore-0.4.65.spec
rpmbuild -bb semaphore-0.4.65.spec
Вывод:
Выполняется(%prep): /bin/sh -e /var/tmp/rpm-tmp.63FGwo + umask 022 + cd /home/centos/rpmbuild/BUILD + cd /home/centos/rpmbuild/BUILD + rm -rf semaphore-0.4.65 + /usr/bin/unzip -qq /home/centos/rpmbuild/SOURCES/semaphore-0.4.65.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd semaphore-0.4.65 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Выполняется(%build): /bin/sh -e /var/tmp/rpm-tmp.gRqFOO + umask 022 + cd /home/centos/rpmbuild/BUILD + cd semaphore-0.4.65 + /usr/bin/python2 setup.py build Installed /home/centos/rpmbuild/BUILD/semaphore-0.4.65/milksnake-0.1.5-py2.7.egg running build running build_py creating build/lib creating build/lib/semaphore copying semaphore/_compat.py -> build/lib/semaphore copying semaphore/envelope.py -> build/lib/semaphore copying semaphore/exceptions.py -> build/lib/semaphore copying semaphore/utils.py -> build/lib/semaphore copying semaphore/processing.py -> build/lib/semaphore copying semaphore/auth.py -> build/lib/semaphore copying semaphore/consts.py -> build/lib/semaphore copying semaphore/__init__.py -> build/lib/semaphore error: No such file or directory ошибка: Неверный код возврата из /var/tmp/rpm-tmp.gRqFOO (%build) Ошибки сборки пакетов: Неверный код возврата из /var/tmp/rpm-tmp.gRqFOO (%build)
Содержимое /var/tmp/rpm-tmp.gRqFOO
cat /var/tmp/rpm-tmp.gRqFOO #!/bin/sh RPM_SOURCE_DIR="/home/centos/rpmbuild/SOURCES" RPM_BUILD_DIR="/home/centos/rpmbuild/BUILD" RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic" RPM_LD_FLAGS="-Wl,-z,relro " RPM_ARCH="x86_64" RPM_OS="linux" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_LD_FLAGS RPM_ARCH RPM_OS RPM_DOC_DIR="/usr/share/doc" export RPM_DOC_DIR RPM_PACKAGE_NAME="python-semaphore" RPM_PACKAGE_VERSION="0.4.65" RPM_PACKAGE_RELEASE="1.el7" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE LANG=C export LANG unset CDPATH DISPLAY ||: RPM_BUILD_ROOT="/home/centos/rpmbuild/BUILDROOT/python-semaphore-0.4.65-1.el7.x86_64" export RPM_BUILD_ROOT PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig" export PKG_CONFIG_PATH set -x umask 022 cd "/home/centos/rpmbuild/BUILD" cd 'semaphore-0.4.65' /usr/bin/python2 setup.py build
Выполняю вручную: