-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.0.2, 2.0.9, 2.2.5, 2.4.4, 2.5.0
-
Component/s: Packaging
-
Environment:CentOS 5.6, RedHat
-
Build
We should provide RPM spec files that will allow users to build their own packages. There are several reasons this won't work currently (the biggest being that our .spec files download binary archives and build RPM's with them instead of compiling source)
Comments on RHEL5 specifically:
RHEL 5 (and by extension, CentOS and others) doesn't provide Python 2.6 by default, so building/packaging the RPMs using the .spec file in the source distribution doesn't work without some modifications:
In the BuildRequires section, add:
%{?el5:BuildRequires: python26-devel}
In the %build, %install, and %clean sections, add:
%{?el5:alias scons='python26 `which --skip-alias scons`'}
There's probably a cleaner way to do this, but with these modifications (and SERVER-2040 - wrong package name and %setup macro, typo in the %files section), Mongo cleanly builds on CentOS 5.6.
- is related to
-
SERVER-2040 SPEC File %setup
- Closed