Re: Setting the path for the source file

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

 



On Mon, Oct 09, 2006 at 03:36:35PM +0200, Erez Zilber wrote:
> i,
> 
> When I run rpmbuild --bs my_file.spec, I get the following error:
> 
> error: File /usr/src/packages/SOURCES/my_file.tar.gz: No such file or 
> directory
> 
> That's because my_file.tar.gz is in the current directory with the spec 
> file. I guess that the default path for the source file is 
> /usr/src/packages/SOURCES. How can I change that to the current dir (or 
> any other dir)?

rpmbuild -bs my_file.spec --define "_sourcedir $PWD"

-- 
lfr
0/0

Attachment: pgpXSViM0y2qs.pgp
Description: PGP signature

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux