|
From: | Stuart Hughes |
Subject: | Re: [Ltib] My "source" file is a binary, not a tarball or patch |
Date: | Thu, 30 Jul 2009 09:14:53 +0100 |
User-agent: | Thunderbird 2.0.0.16 (X11/20080707) |
Hi Timur,rpm will only process files you mention in the %prep section (%setup will untar/process SOURCE0). Take a look at dist/lfs-5.1/dropbear/dropbear.spec for an example of something like this. Basically you need something like:
Source0: package_file_to_untar.tgz Source1: file_to_copy .... %prep %setup .... %install cp %{SOURCE1} _some_path_you_can_write_toGenerally speaking you should not be copying files to the local filesystem. The only hackish but acceptable exception is to the project's local bin directory.
Regards, Stuart Timur Tabi wrote:
I have a plain old binary file that I need to have processed in a spec file. I just want the file copied from PPP (or GPP or whatever) to a path in my local hard drive. If I define the file as a "Source" file in my spec.in, LTIB and/or RPM thinks it's a tarball and tries to untar it. How do I tell LTIB to just grab a plain old binary file and place it in a local directory?
[Prev in Thread] | Current Thread | [Next in Thread] |