EDIT (MAYBE A BETTER SOLUTION THAN USING PYTHON PIP):
Instead of using python-pip we can build the package from source easily with Mock from Fedora 36 or CentOS 8. I don’t know it is harmful but I’ve done it and it works:
Get the pacakge from CentOS or Fedora with wget:
sudo dnf install -y epel-release
sudo dnf install -y mock rpm-build
sudo usermod -a -G mock username
rpm -i ./fullpackagename.src.rpm
If it doesn’t work for regular user, switch to root and do with it.
The files will be under /root directory
Change the specs file if needed.
rpmbuild -bs packagename.spec
mock -r almalinux-9-x86_64 --rebuild fullpackagename.src.rpm
dnf localinstall /var/lib/mock/almalinux-9-x86_64/result/python3-pyspf-2.0.14-8.el9.noarch.rpm
Now the dependency is ready. We can install pypolicyd-spf from repos:
dnf install pypolicyd-spf
Found the solution on linode forums:
pypolicyd-spf I installed
pip3, which I then used to install
dnf install python3-pip
pip3 install pypolicyd-spf
Downloading pypolicyd-spf-2.0.2.tar.gz (38 kB)
Using legacy 'setup.py install' for pypolicyd-spf, since package 'wheel' is not installed.
Installing collected packages: pypolicyd-spf
Running setup.py install for pypolicyd-spf ... done
Successfully installed pypolicyd-spf-2.0.2
opendkim the issue is with the missing
milter packages. Another user brought this up in the AlmaLinux forums, and was able to find a work around by enabling the CodeReady Linux Builder (CRB) repository.
After running the suggested command to enable CRB I was able to install
dnf config-manager --set-enabled crb
dnf install opendkim