Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM build error on CentOS 7.9 #107

Open
kcgthb opened this issue Jan 28, 2022 · 1 comment
Open

RPM build error on CentOS 7.9 #107

kcgthb opened this issue Jan 28, 2022 · 1 comment

Comments

@kcgthb
Copy link

kcgthb commented Jan 28, 2022

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:

%{python3_sitearch}/*

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
Copy link

bauno commented Apr 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants