Mailinglist Archive: opensuse-buildservice (312 mails)

< Previous Next >
Re: [opensuse-buildservice] Need help to build package - ramlog
  • From: Michal Seben <mseben@xxxxxxx>
  • Date: Wed, 22 Jul 2009 10:11:57 +0200
  • Message-id: <4A66C9CD.4060900@xxxxxxx>
doiggl@xxxxxxxxxxxxxxxxxx wrote:
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.htm

problem is that you mixed %release tag from spec, with your tarball name
and %release tag is managed (incremented) by obs, so you should not use
this tag in your package name

I created submitrequest 15094, also with other changes to see diff use :
#osc request show --diff 15094
for accept use
#osc request accept 15094
if you don't won't accept them use
#osc request decline 15094

check also warnings after build and
http://en.opensuse.org/SUSE_Package_Conventions/RPM_Macros for post/pre
install macros
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups