This PR adds an RPM spec file and workflow steps to build an RPM package for Enterprise Linux 9. The spec file uses macros from pyproject-rpm-macros which is installed via EPEL as part of the build process. The package is built against Python 3.11 since the setuptools version on EL9 provided by python3-setuptools (53.0.0) is too old compared to python3.11-setuptools (65.5.1) to support PEP 517/pyproject.toml-based builds.
The required version of setuptools has also been downgraded to >=65 in pyproject.toml in order to support this. This won't affect the version that is actually used by the Debian or standalone builds since they currently install build-time requirements based on requirements.txt.
The package has been named wordfence-el9.rpm to leave open the possibility of targeting additional EL versions or distros that use RPMs in the future.
The documentation has been updated with install steps, the new version number in example output, and a fix for the PCRE installation command on RHEL/Fedora/etc.
This PR adds an RPM spec file and workflow steps to build an RPM package for Enterprise Linux 9. The spec file uses macros from pyproject-rpm-macros which is installed via EPEL as part of the build process. The package is built against Python 3.11 since the
setuptools
version on EL9 provided bypython3-setuptools
(53.0.0) is too old compared topython3.11-setuptools
(65.5.1) to support PEP 517/pyproject.toml
-based builds.The required version of
setuptools
has also been downgraded to>=65
inpyproject.toml
in order to support this. This won't affect the version that is actually used by the Debian or standalone builds since they currently install build-time requirements based onrequirements.txt
.The package has been named
wordfence-el9.rpm
to leave open the possibility of targeting additional EL versions or distros that use RPMs in the future.The documentation has been updated with install steps, the new version number in example output, and a fix for the PCRE installation command on RHEL/Fedora/etc.