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:
wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/SRPMS/Packages/p/python-pyspf-2.0.14-8.el8.src.rpm
or
wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/36/Everything/source/tree/Packages/p/python-pyspf-2.0.14-11.fc36.src.rpm
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
cd SPECS/
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
Enjoy.
Sources:
https://pkgs.org/search/?q=python3-pyspf
Found the solution on linode forums:
For pypolicyd-spf
I installed pip3
, which I then used to install pypolicyd-spf
.
dnf install python3-pip
pip3 install pypolicyd-spf
Collecting 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
With 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 opendkim
:
dnf config-manager --set-enabled crb
dnf install opendkim