Hi Denny, On Wednesday 16 June 2010 10:18:19 am Denny Beyer wrote:
in the spec file I had several times the situation, where a stucture of folders and subfolders containing files needed to be copied from the the original extracted package into the structure of the programs folder to be packaged, e.g. if you have additional support files other than code/binaries.
at the moment, I have to create each folder idividually in the spec file because install does not seem to support folders. A simple copy would also do, but then rights might not set correctly.
I have this: dir1
|- dir1.1 : file1, file2 | |-dir1.2: file10,file20
This doesn't work: %__install -m 755 dir1 %{buildroot}%{_datadir}/%{name}/
I'm sure this is an easy one for you guy's, but it keeps bugging me :-)
"install" indeed doesn't seem to handle recursive copies, so I fear you have to do it on your own, using cp -r for the copy, followed by chown -R and chmod -R on the destination tree. -- Jean Delvare Suse L3 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org