Open fedora-copr-github-bot opened 1 year ago
Tested now (package is in Fedora):
$ upt package -f pypi -b fedora argparse-manpage
[INFO ] [Backend] Creating directory /home/praiskup/python-argparse-manpage
[INFO ] [Backend] Writing spec file to /home/praiskup/python-argparse-manpage/argparse-manpage.spec
[INFO ] [Backend] Writing /home/praiskup/python-argparse-manpage/sources
$ cd /home/praiskup/python-argparse-manpage
$ spectool -S *spec --get-files
Downloading: https://files.pythonhosted.org/packages/source/a/argparse-manpage/argparse-manpage-4.tar.gz
100% of 51.3 KiB |##################################################################################################################################################################################| Elapsed Time: 0:00:00 Time: 0:00:00
Downloaded: argparse-manpage-4.tar.gz
$ rpmbuild --define '_sourcedir /home/praiskup/python-argparse-manpage' --define '_rpmdir /home/praiskup/rh/projects/copr/copr/python-argparse-manpage' --define '_builddir /home/praiskup/rh/projects/copr/copr/python-argparse-manpage' --define '_specdir /home/praiskup/rh/projects/copr/copr/python-argparse-manpage' --define '_srcrpmdir /home/praiskup/rh/projects/copr/copr/python-argparse-manpage' --define '_source_filedigest_algorithm md5' --define '_binary_filedigest_algorithm md5' --define 'dist %nil' -bs argparse-manpage.spec
setting SOURCE_DATE_EPOCH=1674518400
Wrote: /home/praiskup/rh/projects/copr/copr/python-argparse-manpage/python-argparse-manpage-4-1.src.rpm
SRPM is generated, but mock build fails (might be a PyPI packaging issue):
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2mFQ4p
+ umask 022
+ cd /builddir/build/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd argparse-manpage-4
+ sleep 1
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes'
+ /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s'
Traceback (most recent call last):
File "setup.py", line 3, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools
Original issue: https://pagure.io/copr/copr/issue/1092 Opened: 2019-11-04 08:22:50 Opened by: praiskup
UPT is now in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1756899