On Tue, Oct 9, 2012 at 11:11 PM, John Dennis <jdennis@redhat.com> wrote:
On 10/09/2012 11:55 AM, John Horne wrote:
On Tue, 2012-10-09 at 11:19 -0400, John Dennis wrote: Unfortunately (?) the differences now between Fedora and RHEL, especially in terms of Fedora using systemctl rather than SysV startup scripts, means that using a Fedora SPEC file to build a package for RHEL is generally fraught with problems.
However. I have this afternoon been rebuilding FreeRadius 2.2 using the latest CentOS 5.8 freeradius2 RPM SPEC file. (Basically, using a SPEC file that you know will work on the server, but replace the actual source tarball with the latest available.) In this instance the modifications to the SPEC file were minor, but one patch also had to be modified. So, again, not trivial, you need to know a bit about SPEC files and patching, but it did build.
I should add that for other packages this approach hasn't been too good! The differences between code versions can mean that a lot of patches in the RPM either become redundant or need modifying. It can add up to a lot of work.
Yup. It's probably easier to modify an existing spec file for a distribution than trying to move spec files between distributions.
If you want the latest version and a set of RPM's is not yet available you basically have 2 choices:
1) local build using configure/make/install
2) local RPM build using a tweaked spec file
There's also: (3) use the included specfile in release tarball The bundled distro-specific recipe in 2.2.0 included most part of distro's own recipe, with some changes necessary to build, and was build-tested against RHEL/centos 5 and 6, Ubuntu, and opensuse. So it should just work. -- Fajar