openSUSE Forums > openSUSE Build Service (OBS) » Step by step HOWTO build an rpm

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-Sep-2009, 10:32
vodoo's Avatar
Busy Penguin
 
Join Date: Jan 2009
Location: Switzerland
Posts: 251
vodoo hasn't been rated much yet
Default Step by step HOWTO build an rpm

Hello building experts

I am quite familiar with compiling applications from source. I have done so a few times for an application named j-chkmail which I found here: Index of /download

This is a milter working with postfix or sendmail (in my case sendmail). It provides greylisting and a bunch of other nice features. As I have this running on different servers I would like to build an rpm for this application.

So far I have read (and reread ...) the SUSE Build Tutorial. Found it quite confusing for someone who is new to this. I have installed 'osc' and 'build'. I understand that my first step would be to build locally. Are you willing to talk me through this process?
Reply With Quote
  #2 (permalink)  
Old 25-Sep-2009, 10:59
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: Step by step HOWTO build an rpm

One of the starting points can be here:

Maximum RPM

There are lots of tutorials found with


Building RPMs - google search


Taking a look at the specs (extracted from src.rpms) of well known packager's work is another good way of learning.
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #3 (permalink)  
Old 25-Sep-2009, 11:10
Explorer Penguin
 
Join Date: Apr 2009
Posts: 690
ab@novell.com hasn't been rated much yet
Default Re: Step by step HOWTO build an rpm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm sure somebody who has finished everything completely can help you more
but once you build locally I believe the only thing left is to complete
the spec file. I've done most of that and had OBS work mostly but the
part I have not completed (lack of time) is specifying in the spec file
the files that need to be bundled in the RPM. If you can figure that part
out feel free to steal the other data from my own repository on the OBS
server. It's fairly simplistic but that's the part missing. SPEC files
govern the creation of the RPM so they need to specify which files make it
to the RPM after the build is complete (binaries, libraries, configuration
files, etc.).

Good luck.





vodoo wrote:
> Hello building experts
>
> I am quite familiar with compiling applications from source. I have
> done so a few times for an application named j-chkmail which I found
> here: 'Index of /download' (http://www.j-chkmail.org/download/)
>
> This is a milter working with postfix or sendmail (in my case
> sendmail). It provides greylisting and a bunch of other nice features.
> As I have this running on different servers I would like to build an rpm
> for this application.
>
> So far I have read (and reread ...) the SUSE Build Tutorial. Found it
> quite confusing for someone who is new to this. I have installed 'osc'
> and 'build'. I understand that my first step would be to build locally.
> Are you willing to talk me through this process?
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJKvOt1AAoJEF+XTK08PnB5nFEQAJWxTzbtIr O5/cefekJyyhKw
rOiiorOV4ozCqW1zWCG9PHympEeedZW9qM0i4QgaU3uzRenPP5 9O7SpOBEBGUVEa
vm68s0HSheH/iDyEDdy7yWBMncyO7/1KXEJyC3Hu4D1yi2N7j4L/EbfWZ6e26+1e
HhKjVOreTdGgCQ6qxOPGlbCxqmVgl2zLlOVAMrt3LbIlYyvruT BYLnXF6QspNYoU
dX6JwFENH66Yl1oFymHSdEYEERTjMFmapOESNjM7rhRK84rz1k JS3KrEH7lsVYru
F6GgQEIe7N+HkFhUipW7q+UhCQ6We9irEiiyaEPQTLDz3MBa24 afdzAxVwyf4zyY
DL3+xjB2ANkWdGaxUYGSFgiGSZYcBKX037rzxDQJFDaSoQ+EU9 oqY1HDV1m8KfZs
+3YNkFyCpZpDiaXuNei7kW89tD9SMHI3/M0avkjsC2P71Aynr36Qf6DQzVdfNSIl
FzCo2h/twfEZZW+SMFEIK2nk4OHZC0dzoPzi1a3SDCpwamiv1TPDJaftB 61CNv6B
9K7GZ4BgXwSd2o6fuOmGhVmEC/zOpm3VDkRSnssbS+ixE+Oa0uKOdKWTLyOwghA/
RGZl7nyddBJpitatjLQx7zIwXptqfUWTn3sU2njxwggjr+89uJ lkO9Hwnmd2aSg4
7Fb5hPfmM69QaffWVZZs
=Wpxp
-----END PGP SIGNATURE-----
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2