Re: Creating RPMs from ./configure'd source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Or to be more specific;

%install
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
mkdir -p $RPM_BUILD_ROOT

make DESTDIR=$RPM_BUILD_ROOT install


Cheers,
D

On Mon, 2005-05-16 at 17:56 -0400, Matthew Miller wrote:
On Mon, May 16, 2005 at 03:55:22PM -0600, Chris Cameron wrote:
> I want to package Apache, but when creating the RPM I don't want Apache 
> installed on the system, but rather just in a build directory. The 
> simple answer would seem to be add --prefix= to the ./configure line.

The answer is to use BuildRoot.

> This has to be a common problem to run into, what is the proper way to 
> deal with this?

Check how the httpd (apache) RPM in Fedora or RHEL does it. :)



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux