 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

22nd November 2007, 05:19 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 5

|
|
|
make rpmbuild donload the sources
Hi,
I just installed Fedora 8 and use it, it is great, but I need to install gspiceui and there is not package for it, so I had to create my own package. So I write gspaceui.spec and tried to use rpmbuild to build a package, however I have the following error:
Code:
$ rpmbuild -ba gspaceui.spec
error: File /home/mildred/.rpmbuild/SOURCES/gspiceui-v0.9.33.tar.gz: No such file or directory
Of course I can download the file manually (and I did), but that's not very convenient. And if I have to do it, i wonder why I provided an URL where the file can be downloaded. So do you know how to make rpmbuild download the file ?
Thanks.
Mildred
|

22nd November 2007, 05:57 PM
|
 |
Registered User
|
|
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511

|
|
|
Don't have a clue since not seeing the contents of the spec file.
Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
|

22nd November 2007, 05:58 PM
|
 |
Retired Administrator
|
|
Join Date: Oct 2006
Posts: 21,509

|
|
try here
http://www.sp5pbe.waw.pl/~sp5smk/spice.html
Code:
su
yum groupinstall "Developmen Tool"
yum install rpmdevtools
wget http://www.sp5pbe.waw.pl/~sp5smk/gspiceui-0.9.33-16.fc7.src.rpm
rpmbuild --rebuild gspiceui-0.9.33-16.fc7.src.rpm
__________________
My Hardware
- CPU: AMD Phenom II X6 Hex Core 1055T 95W Edition @3.5Ghz
- Motherboard: Gigabyte GA-880GM-UD2H
- Cooler: Corsair H50 CPU Cooler
- RAM: Corsair Dominator 8GB (4x2GB) DDR3 1600MHz
- Graphics: Gigabyte GeForce GTS 450 OC 1024MB GDDR5
Last edited by leigh123linux; 22nd November 2007 at 06:00 PM.
|

22nd November 2007, 07:11 PM
|
 |
Retired Community Manager -- Banned from Texas by popular demand.
|
|
Join Date: Sep 2007
Location: NYC
Posts: 8,142

|
|
I could be wrong, but it seems to me that somewhere along the line, I read that the spec file ignores everything before the version name part. You can put anything you want in that URL, although, of course, it's best practice to put the correct url in there. I don't believe a spec file actually seeks out and downloads the tarbal.
That seems to be correct, judging from, for example, this page. It seems you have to download the source before building.
|

23rd November 2007, 12:12 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 5

|
|
|
Ok, thanks.
So the url is useless ...
For spice, I successfully installed it, but I still have to learn how to use it (and how to add symbols)
Thanks.
Mildred
|

23rd November 2007, 02:20 PM
|
|
Registered User
|
|
Join Date: Mar 2007
Posts: 1,047

|
|
Study the msttcorefonts spec file here http://corefonts.sourceforge.net/
Somehow, it downloaded files.
|

23rd November 2007, 04:53 PM
|
 |
Retired Community Manager -- Banned from Texas by popular demand.
|
|
Join Date: Sep 2007
Location: NYC
Posts: 8,142

|
|
|
If you look at it, you'll see that he included a function (that I assume he wrote) to do the downloading. It's a separate part of the spec file.
So, Mildred, that's something to consider--putting in a separate command (hrrm, maybe in %prep?) to actually download the source. I'm no expert on spec files, I'm not sure how much work that adds and how it affects things if it's not done before the url line, etc.
However, to go back to the original question, of how come it's asking for the file even though you put in a url, more googling indicated that my memory was correct--it pretty much ignores that url and just looks at the part saying {name}-{version}. Apparently, you could put in a completely fictitious url and it would still work--so long as the tarball is in your SOURCES directory.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 14:04 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|