Bug 436392 - error in spec file, build fails when not using standard build directories
Summary: error in spec file, build fails when not using standard build directories
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libsvm
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Ding-Yi Chen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-06 22:10 UTC by Karsten Hopp
Modified: 2008-07-30 20:03 UTC (History)
0 users

Fixed In Version: 2.85-6.fc8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-30 20:03:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Karsten Hopp 2008-03-06 22:10:40 UTC
Description of problem:
the libsvm spec file wrongly assumes that there's always a ../SOURCES directory
and tries to copy files from there.
This fails when you run rpmbuild like this:
--define "_sourcedir $HOME/source/" or have it defined differently in your rpmrc.

Version-Release number of selected component (if applicable):
libsvm-2.85-3.fc9

  
Actual results:
+ cp ../../SOURCES/log ChangeLog
cp: cannot stat `../../SOURCES/log': No such file or directory
error: Bad exit status from /var/tmp/libsvm-2.85-3.fc9.src.rpm/rpm-tmp.33063 (%prep)


Additional info:
log and guide.pdf are already defined as Source1 and Source2, so you just need
to change the cp commands to
cp %{SOURCE1} ChangeLog
cp %{SOURCE2} .

Comment 1 Ding-Yi Chen 2008-03-11 00:15:42 UTC
cp lines in SPEC file are fixed. Thanks for pointing this out.

Comment 2 Fedora Update System 2008-03-11 08:04:43 UTC
libsvm-2.85-6.fc7 has been submitted as an update for Fedora 7

Comment 3 Fedora Update System 2008-03-11 08:06:31 UTC
libsvm-2.85-6.fc8 has been submitted as an update for Fedora 8

Comment 4 Karsten Hopp 2008-03-11 10:41:23 UTC
looks ok now. Thanks !

Comment 5 Fedora Update System 2008-07-30 20:03:18 UTC
libsvm-2.85-6.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.