LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Thread Tools
Old 12-13-2007, 03:50 PM   #1
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276
Thanked: 0
rpmbuild error: File ./test-2.3.0/SOURCES/test-2.3.0.tar.gz: No such file


[Log in to get rid of this advertisement]
$ rpmbuild -bb ./test.spec
error: File ./test-2.3.0/SOURCES/test-2.3.0.tar.gz: No such file or
directory

The file test-2.3.0.tar.gz is located at /tmp/SOURCES/
test-2.3.0.tar.gz.
How to change test.spec to do that?
The linux is FC6.

I tried to set BuildRoot but it does not work:
BuildRoot: /tmp

Last edited by powah; 12-13-2007 at 04:17 PM..
powah is offline     Reply With Quote
Old 12-13-2007, 04:30 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,716
Blog Entries: 30
Thanked: 283
In your ~/.rpmmacros file setting "%_sourcedir /tmp/SOURCES" should work. IMHO it's easier / efficient to have a separate tree for building RPM's under which you locate the build, source, temp, spec and such dirs.
unSpawn is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
to test that a file exists but is not writeable? johnpaulodonnell Linux - Newbie 2 01-30-2007 07:11 AM
test.c:1:19: error: stdio.h: No such file or directory Lokathor Debian 2 09-14-2006 01:11 PM
if test for a file name pattern Melsync Programming 12 12-15-2005 06:42 PM
test.c:1:19: Stdio.h: No such file or directory :( wogga Linux - Software 1 06-11-2004 03:57 PM
Test for file cxel91a Programming 6 04-15-2003 12:23 PM


All times are GMT -5. The time now is 06:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration