Can I use cp in %install section of spec

ram s ramforummail at gmail.com
Fri Sep 18 06:17:35 UTC 2009


Hello ,

Can I use cp call in %install section.

%install

rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/

#install  -d bin  /home/myhome


mkdir -m 777 -p $RPM_BUILD_ROOT/home/dictator/nco
cp -r bin $RPM_BUILD_ROOT/home/myhome
cp -r jar $RPM_BUILD_ROOT/home/myhome


is it correct.

If I use install to copy directories and sub directories it creates problem.

I need this question help soon.

thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20090918/67c2af9d/attachment.htm>


More information about the Rpm-list mailing list