Mailinglist Archive: opensuse-buildservice (312 mails)

< Previous Next >
Re: [opensuse-buildservice] Need help to build package - ramlog
  • From: <doiggl@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 22 Jul 2009 17:11:07 +1000
  • Message-id: <95391932759391828628c7f0dd110c47@xxxxxxxxxxxxxxxxxxxxxxx>
Hello
I made another change, 2 lines added before the %install section in the
ramlog.spec

# %prep
# %setup -c %{name}

I Triggered a rebuild.

The result was this:
-----------------------------------------------------------------
----- building ramlog.spec (user abuild)
-----------------------------------------------------------------
-----------------------------------------------------------------
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl
obs://build.opensuse.org/home:doiggl/openSUSE_Factory/44950a54c52ea954cc9fbeb6079e5e33-ramlog'
/usr/src/packages/SOURCES/ramlog.spec
error: File /usr/src/packages/SOURCES/ramlog-1.1.0-6.1.tar.gz: No such file
or directory
System halted.

Question: How do I get the file(ramlog-1.1.0-6.1.tar.gz) unpacked in
correct location ?.

I have the file(ramlog-1.1.0-1.tar.gz) attached to the "Files Add" location
(visiable on the page in the files section)
I Must be missing something in the ramlog.spec
Any help most welcome.
Glenn

Package details
https://build.opensuse.org/package/view_file?file=ramlog.spec&package=ramlog&project=home%3Adoiggl

Michal Seben wrote:
you must add %prep section with %setup macro
for extract tarball (e.g. before %install section):

%prep
%setup -q -c %{name}

-q -- less verbose
-c create directory, because your tarball doesn't looks health :(

see http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups