[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Sources?



On Fri, May 05, 2006 at 11:22:54AM +0200, Oscar Haeger wrote:
> Hi.
> Is there some way to make rpmbuild look for sources in some other 
> directory than "SOURCES" in the rpm-build-dir?
> I'd prefer to use a command line switch to point to another source dir 
> if possible. Is it?
> The reason is that I get the sources from a directory where they're all 
> dropped and I'd like to try to build it from there, instead of moving a 
> lot of data to other directories.
> I've googled for something like this but all references points to 
> .rpmrc or .rpmmacros and I'd like to leave those unchanged.

You can do the define on the command line. I use, on some automated
builds (from svn sources):
rpmbuild -ba \
  --define "_rpmdir /tmp" \
  --define "_srcrpmdir /tmp" \
  --define "_topdir $TMPD" \
  --define "_rpmfilename %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm" \
  $TMPD/$NAME.spec

You can define your own variables, btw (--define "other /usr/src/other").

-- 
lfr
0/0

Attachment: pgpKfPcSiacr7.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]