Talk:SUSE Build Tutorial
From openSUSE
This guide on howto build rpm for suse needs to be improved. There is no step-by-step tutorial. I want to setup a build environment, but I don't really know how to do that. This guide introduces me to some tools but does not tell how to use them.
You don't need to setup your build environment manually. This is done for you in SUSE_Build_Tutorial#Step_Six_-_Build_the_package by calling y2pmbuild. -Azouhr
Contents |
How to build a package from a SUSE Source RPM?
I'm not sure, but I don't think this tutorial covers how to build a package from a SUSE source RPM. Where is this documented? In particular, I would like to (re)build the SUSE 9.3 x86_64 version of fltk-1.1.6-3 from the source RPM. How do I do this? Leopardi 17:33, 25 Dec 2005 (MST)
To answer my own question: what I did was:
rpmbuild --rebuild --target=x86_64 fltk-1.1.6-3.src.rpm
This not only built fltk-1.1.6-3.x86_64.rpm, but also built fltk-debuginfo-1.1.6-3.x86_64.rpm and fltk-devel-1.1.6-3.x86_64.rpm Leopardi
y2pmsh vs y2pmbuild
This tutorial does not make clear that y2pmsh is the name of the package and y2pmbuild is the name of a tool within the package. eg. "Step Two - Configure y2pmsh Configure the build tool (y2pmbuild)" This was initially confusing to me until I saw the file list for y2pmsh. Leopardi 17:33, 25 Dec 2005 (MST)
y2pmbuild configuration files
I am currently using SUSE 9.3 and y2pmsh does not include /etc/y2pmbuild/dists_common. Do I need to create it? Or does this tutorial only cover the SUSE 10.0 version of y2pmsh?
It is not clear whether eg. /etc/y2pmbuild/dists/9.3 is a set of instructions to y2pmbuild to tell it how to build SUSE 9.3 or a set of instructions to y2pmbuild to tell it how to build individual packages under SUSE 9.3. Which is it? If I want to build another package under SUSE 9.3 should I clone /etc/y2pmbuild/dists/9.3 to eg. /etc/y2pmbuild/dists/my-9.3 and change this file instead? Will I then need to
export BUILD_DIST=my9.3
Or should I just edit /etc/y2pmbuild/dists/9.3 ? Or should I just leave this file alone? Leopardi 17:33, 25 Dec 2005 (MST)
Examples
It is not initially clear what these are examples of. Are they examples of specfiles? If so, say so.
Also, where are the corresponding examples of y2pmbuild configuration files? Or should there only be one y2pmbuild configuration file for the distro? Leopardi 17:33, 25 Dec 2005 (MST)

