Mailinglist Archive: opensuse-packaging (156 mails)
| < Previous | Next > |
Re: [opensuse-packaging] copying folder structures with install in spec file
- From: Denny Beyer <opensuse@xxxxxxxxxxxxx>
- Date: Wed, 16 Jun 2010 11:19:56 +0200
- Message-id: <201006161119.56910.opensuse@xxxxxxxxxxxxx>
On Wednesday 16 June 2010 10:26:22 Jean Delvare wrote:
If this is the way to go ... just wanted to make sure not missing out on
something.
cheers,
Denny
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
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.
If this is the way to go ... just wanted to make sure not missing out on
something.
cheers,
Denny
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |