Need Help Building RPM Package

I want to build OpenSuse RPMs for Gnome-Inform7, the problem being I’m kind of ignorant as far as spec files are concerned, and so the only thing I know how to do is to issue the command rpmbuild -ba. I’ve battled with the spec file (which the author told me works for Fedora) until I got one that builds an RPM. The RPM installs, but the gnome-inform still won’t run.

So I give up, I need help from someone who knows what to do next.

So, here’s the Git version: SourceForge.net: Gnome Inform 7 - Develop
Here’s the spec file I tweeked so that it built something: http://dl.dropbox.com/u/9025602/gnome-inform7.spec

What I’m asking is actually for someone to jump into the “Let’s build an OpenSUSE RPM for gnome-inform7” boat with me.

Thanks!

PS.: I know there is Buildservice, but I think it still needs a valid spec file, right?

Hi
Ask this user to update, or grab the src rpm, install and then tweak
the spec file as required for the newer version.
http://software.opensuse.org/search?q=gnome-inform7&baseproject=ALL&lang=en&include_home=true&exclude_debug=true

Click on the email for the maintainer to aske them about updating;
https://build.opensuse.org/package/users?package=gnome-inform7&project=home%3Aleandroribeiro


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 11:49, 4 users, load average: 0.36, 0.26, 0.23
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

I’m actually the builder of that version. I didn’t have issues when building that one, but something changed and I can’t get my head around it. Before succeeding in building the RPM for this version, most of my errors were about Gconf. The spec file I posted here already is a altered version of the spec file you can find in the src.rpm in buildservice.

OK, will branch and have a look.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 15:56, 3 users, load average: 0.23, 0.34, 0.27
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Hi
OK, so it needs a special compiler, because it’s a binary blob (ni) it
can’t be built on OBS, unless you can locate the ni source and build
that first.

I see they have an i586 openSUSE 11.4 on their site, or are you after
an x86_64 version? I would suggest approaching the inform7 folks and
ask them to produce an x86_64 version if that’s what you need.
http://inform7.com/download/


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 16:47, 5 users, load average: 0.09, 0.27, 0.28
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

OK, so it needs a special compiler, because it’s a binary blob (ni) it
can’t be built on OBS, unless you can locate the ni source and build
that first.

You just need to add the ni binary (here it is) to the /src/ni/ folder.

BTW, which spec file are you trying? The one with opensuse in the file name? That one has an old %files section. It should be replaced by the section in gnome-inform7.spec.

Ps.: thanks for helping me out with this one.

Hi
Yes, I know, I have downloaded the file, OBS terms and conditions/rules
preclude the use of binary blobs which is what ni is, so you are not
allowed to build on the openSUSE Build Service using ni unless it can
be build from source first :frowning: Making sense?

I will get it building locally though.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 17:27, 5 users, load average: 0.35, 0.15, 0.16
GPU GeForce 8600 GTS Silent - Driver Version: 280.13

Making sense?

Yeah. Didn’t think about it at the time, though :frowning:

Anyway, If we can build it locally, the RPM will be distributed via the official Inform7 site.

Hi
OK, have it building for openSUSE_11.4 x86_64 and i586. Just uploading to OBS (new source and ni sources), will then SR it back to you;
Keep and eye out here;
https://build.opensuse.org/package/files?package=gnome-inform7&project=home%3Amalcolmlewis%3Abranches%3Ahome%3Aleandroribeiro

Now once it’s accepted, your really need to remove from OBS…
https://build.opensuse.org/request/show/87306

Thanks! Will do!

Would you share what you did to the spec file with me? I would like to know, so that I’m ready in time for the next Inform version.

Hi
Not a lot, the schemas install is just done the %gconf_schemas rpm macro, then catting it into a file list and appending to the files section.

I added the ni sources and just extracted the relevant arch version, then build and adding in the BuildRequires as it hits a missing file/lib.

Split out the lang files into it’s own package then once it builds add the files as required to the file lists instead of a huge list of individual files.

I’ve fixed the x86_64 build error and sent a new SR;
https://build.opensuse.org/request/show/87312

OH, you will need to add the openSUSE 11.4 repository as well.

Ok, good to know it’s working :wink:
I was a little bit puzzled when I saw the request, since I had checked out the OBS before and was aware that binary blobs were not allowed. And still I don’t know why it was sent to me for approval :wink:

Leandro, feel free to add the new spec file to your checked-out git repo and send me a patch with git format-patch. I’ll commit it on your behalf.

If I told you I don’t really know what happened between having asked for help here and looking at the RPM files in OBS, would you believe me? :smiley:

Ok! Just deleted package from OBS.