dell / libsmbios

library for interacting with Dell SMBIOS tables
Other
192 stars 39 forks source link

RPM build error on CentOS 7.9 #107

Open kcgthb opened 2 years ago

kcgthb commented 2 years ago

RPM builds fails on CentOS 7.9 with

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
bauno commented 1 year ago

I had the same error on Fedora, solved by installing python3-rpm-macros with dnf.