Re: making a self depending rpm.

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

 



On Fri, Feb 23, 2007 at 11:05:40AM -0500, zac elston wrote:
> %prep
> %setup
> %define installDir /usr/local/
> ./configure --prefix=$RPM_BUILD_ROOT%{installDir}
> %build
> make
> %install
> make install

Usually, this is:
%prep
%setup
%define installDir /usr/local/
./configure --refix=%{installDir}
%build
make
%install
make install DESTDIR=$RPM_BUILD_ROOT

As you're not using this format (maybe the generated Makefiles don't
support DESTDIR?), example scripts or libraries installed will use as
the interpreter $RPM_BUILD_ROOT%{installDir}/bin/ruby.

I use something like the following to correct those:
%install
...
grep -rlIm1 "^#! \\?$RPM_BUILD_ROOT" $RPM_BUILD_ROOT/ | \
	xargs -r perl -pi -e 's,.*,#!%{installDir}/bin/ruby, if $. == 1'

-- 
lfr
0/0

Attachment: pgpOaSjkhNhrk.pgp
Description: PGP signature

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[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