LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   regarding rpm installation (https://www.linuxquestions.org/questions/programming-9/regarding-rpm-installation-582273/)

munna_dude 09-05-2007 12:13 AM

regarding rpm installation
 
hi all
i created a rpm for my application.
i am asking about, is there any way to write in spec file.....
at the time of installation give the permission to a file placed in /usr/lib/

how to give the permissions for that file in /usr/lib while installing the rpm.

for this, how to write in spec file.
please help me

thank you in advance

colucix 09-05-2007 02:42 AM

Maybe you are looking for the %attr directive:
Code:

%attr(<mode>, <user>, <group>) file
Refer to the official docs here.

munna_dude 09-05-2007 11:39 PM

Quote:

Originally Posted by colucix (Post 2881673)
Maybe you are looking for the %attr directive:
Code:

%attr(<mode>, <user>, <group>) file
Refer to the official docs here.

hi
how to excute an exe while installing the rpm?
how to write it in spec file.
for example like :
%files
/usr/bin/munna
exec munna


is any way

please help me

thank you in advance

munna_dude 09-19-2007 03:07 AM

Quote:

Originally Posted by colucix (Post 2881673)
Maybe you are looking for the %attr directive:
Code:

%attr(<mode>, <user>, <group>) file
Refer to the official docs here.

hi
at present am doing suse10.3 rpm..
i given
%attr(<mode>, <user>, <group>) file

coz of this line it copying the total file
which am giving permission.. so that rpm size increasing..

i tried for this
here i would like to give the permission to that folder..
while installing the rpm
Code:

%file
%attr(0777, root, root) /usr/lib/xulrunner*/plugins/

what is the wrong with this..

please help me

thank you in advance


All times are GMT -5. The time now is 09:00 AM.