Open kcgthb opened 2 years ago
RPM builds fails on CentOS 7.9 with
rpm-build-4.11.3-48.el7_9.x86_64
python3-3.6.8-18.el7.x86_64
The error is apparently caused by this: https://github.com/dell/libsmbios/blob/f01a21763180c9c11d70326ad36b9761cde9131c/pkg/libsmbios.spec.in#L219
Processing files: python3-smbios-2.4.3-1.el7.x86_64 error: File must begin with "/": %{python3_sitearch}/* Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.hYqc71 + umask 022 + cd /tmp/libsmbios-2.4.3/_builddir/_rpmbuild + cd libsmbios-2.4.3 + DOCDIR=/tmp/libsmbios-2.4.3/_builddir/BUILDROOT/libsmbios-2.4.3-1.el7.x86_64/usr/share/doc/python3-smbios-2.4.3 + export DOCDIR + /usr/bin/mkdir -p /tmp/libsmbios-2.4.3/_builddir/BUILDROOT/libsmbios-2.4.3-1.el7.x86_64/usr/share/doc/python3-smbios-2.4.3 + cp -pr COPYING-GPL /tmp/libsmbios-2.4.3/_builddir/BUILDROOT/libsmbios-2.4.3-1.el7.x86_64/usr/share/doc/python3-smbios-2.4.3 + cp -pr COPYING-OSL /tmp/libsmbios-2.4.3/_builddir/BUILDROOT/libsmbios-2.4.3-1.el7.x86_64/usr/share/doc/python3-smbios-2.4.3 + exit 0 RPM build errors: File must begin with "/": %{python3_sitearch}/* make: *** [rpm] Error 1
I had the same error on Fedora, solved by installing python3-rpm-macros with dnf.
RPM builds fails on CentOS 7.9 with
rpm-build-4.11.3-48.el7_9.x86_64
python3-3.6.8-18.el7.x86_64
The error is apparently caused by this: https://github.com/dell/libsmbios/blob/f01a21763180c9c11d70326ad36b9761cde9131c/pkg/libsmbios.spec.in#L219