RPM building for CentOS 8 and Stream

Issues related to applications and software problems and general support
Post Reply
k_mikhail
Posts: 2
Joined: 2022/05/08 10:11:00

RPM building for CentOS 8 and Stream

Post by k_mikhail » 2022/05/08 10:24:00

Hello!

Need some help/assistance on RPM-package building for CentOS 8/Stream.

Currently I have RPM of python-pcapy-ng module, built via OBS service: https://build.opensuse.org/package/show ... n-pcapy-ng

Deal is that CentOS 7 is OK to build for, instead of Centos 8/Stream. Diagnosis: unresolvable: nothing provides python.

As far as I remember python means python 2, but there's no python in spec file, python3 only: https://build.opensuse.org/package/view ... py-ng.spec

Would be pretty thankful, if someone can give a hint what is wrong and how to workaround this problem.

Thanks!
Attachments
centos8.png
centos8.png (32.84 KiB) Viewed 520 times

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: RPM building for CentOS 8 and Stream

Post by TrevorH » 2022/05/08 12:29:23

I can't tell you how to fix this but I suspect I know what the problem is. RHEL 8 has several copies of python available and the one that used to be the 'system' python no longer exists. I would find a similar package that comes from say EPEL and look at how their spec file does this for clues.

You should probably also look at moving away from building for CentOS 8 entirely as it no longer exists - it went EOL nearly 6 months ago at the end of 2021 and, for CentOS 8, there is only Stream now. If you want to build for a clone of RHEL 8 then you should probably build for either Rocky or Alma Linux, both of which are clones of RHEL 8 in the same way that CentOS 8 once was.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

k_mikhail
Posts: 2
Joined: 2022/05/08 10:11:00

Re: RPM building for CentOS 8 and Stream

Post by k_mikhail » 2022/05/09 05:44:28

Hello!

Unfortunately, OBS has CentOS 7/8/Stream only for packaging. So, having deal with what is on.

"I would find a similar package that comes from say EPEL and look at how their spec file does this for clues." <-- thanks!

Post Reply