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

RE: varibale based %files



Hi,

I assume you want to relocate your package.
If yes, u can use the variable %{prefix}

This takes by default the directory set in the header section
Prefix: /opt/test

By doing this, u get the advantage that the user can specify any other
directory while installation by specifying as follows

rpm -i --prefix /home/test <pkgname>

With this user has flexibility to either default the installation to
/opt/test or any other directory like /home/test.

Hope it answers your question.

Regs,
Manjula

-----Original Message-----
From: rpm-list-bounces@redhat.com [mailto:rpm-list-bounces@redhat.com] On
Behalf Of Aamer Akhter
Sent: Sunday, August 01, 2004 8:02 AM
To: rpm-list@redhat.com
Subject: varibale based %files


Hello,

Is it possible to have dynamic/variable based files in the %files section:

eg:

%files
%{projRoot}/lib/bobo.so
%{projRoot}/lib/shimbo.so


projRoot is already set in the shell environment, and I suppose I could base
a define off of it...



-- 
Aamer Akhter / aakhter@gmail.com


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



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