Lets say I want to make an RPM which delivers an Apache Webserver with its own OpenSSL:
Since Apache mod_ssl requires a real OpenSSL installation I have to
make install OpenSSL to
/mydir/openssl so Apache with
mod_ssl can actually compile with
Unthinkable on a build server (Jenkins) with no permissions on anything outside its jobs directory. But I need to build Apache with OpenSSL and package it into an RPM (to deliver postfixed multiple Apaches each with their own OpenSSL).
So I thought that
mock is the solution (which is more likely to be installed on the build server than we get any user/install permissions).
But I haven't found a full documentation on how I can use mock to use rpmbuilds full capabilities.
mock -r epel-7-x68_64 example.src.rpm but it is looking for
/builddir/build/SPECS/example.spec and so failing ... why? from where did it got this file?
This was just an example, the real problem consists of 7 independent software packages which should get configured/compiled against each other so they act as a single service ... and packaged into a single RPM for Red Hat Satellite to be delivered onto >200 servers ... without actually installing them on the build server ...
Any help or a link to usable documentation/examples are highly appreciable!