https://bugzilla.redhat.com/show_bug.cgi?id=2161518
--- Comment #15 from Lumír Balhar lbalhar@redhat.com --- Spec URL: https://lbalhar.fedorapeople.org/python-y-py.spec SRPM URL: https://lbalhar.fedorapeople.org/python-y-py-0.5.5-1.fc37.src.rpm
I have applied all the suggestions and it doesn't build now - the problem is with the debuginfo package:
Provides: python-y-py = 0.5.5-1.fc38 python3-y-py = 0.5.5-1.fc38 python3-y-py(x86-64) = 0.5.5-1.fc38 python3.11-y-py = 0.5.5-1.fc38 python3.11dist(y-py) = 0.5.5 python3dist(y-py) = 0.5.5 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.18)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.25)(64bit) libc.so.6(GLIBC_2.28)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3)(64bit) libgcc_s.so.1(GCC_4.2.0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) python(abi) = 3.11 rtld(GNU_HASH) Processing files: python-y-py-debugsource-0.5.5-1.fc38.x86_64 error: Empty %files file /builddir/build/BUILD/y_py-0.5.5/debugsourcefiles.list
RPM build errors: Empty %files file /builddir/build/BUILD/y_py-0.5.5/debugsourcefiles.list Finish: rpmbuild python-y-py-0.5.5-1.fc38.src.rpm Finish: build phase for python-y-py-0.5.5-1.fc38.src.rpm
The last build can be found here: https://copr.fedorainfracloud.org/coprs/lbalhar/notebook/build/5310880/
I cannot remember why I added the %global definition there so I looked at the other rust packages and it seems that a lot of them have it as well, I've found 1780 of them. The reason might be that rust2rpm has it in the template: https://pagure.io/fedora-rust/rust2rpm/blob/main/f/rust2rpm/templates/main.s... Although I'm not sure what the condition around that macro in the template means.