Difference between revisions of "Release Instructions"

From Net-SNMP Wiki
Jump to: navigation, search
(Fuller description of generating Linux RPMs)
(Linux RPMs: add description about the fedora RPM process... needs the public git URL)
Line 25: Line 25:
 
together with a source RPM file (under <code>$HOME/rpmbuild/SRPMs</code>)
 
together with a source RPM file (under <code>$HOME/rpmbuild/SRPMs</code>)
  
 +
=== Fedora RPMs ===
 +
 +
# git clone ssh://YOURUSERID@pkgs.fedoraproject.org/net-snmp
 +
# cd net-snmp
 +
# vi net-snmp.spec
 +
# fedpkg local
  
 
== Linux DEBs ==
 
== Linux DEBs ==

Revision as of 16:12, 7 January 2011

This page documents varios aspects of creating releases and binary builds suitable for distribution of the project products:

Releasing Source Code

The current release procedures are reliant on the makerelease system

...

Producing Binaries

Linux RPMs

Creating binaries for SuSE-based and RedHat-based systems (including RHEL, Fedora and CentOS distributions) uses the RPM spec file from dist/net-snmp.spec.

The procedure is as follows:

  • Create $HOME/rpmbuild/SPECS and copy the spec file there
  • Create $HOME/rpmbuild/SOURCES and copy the tarball there
  • Ensure Version in the spec file matches the version of the tarball
  • Append a suitable vendor identifier to the Release in the spec file
  • Run the command rpmbuild -ba $HOME/rpmbuild/SPECS/net-snmp.spec

This produces three binary RPM files (under $HOME/rpmbuild/RPMs) together with a source RPM file (under $HOME/rpmbuild/SRPMs)

Fedora RPMs

  1. git clone ssh://YOURUSERID@pkgs.fedoraproject.org/net-snmp
  2. cd net-snmp
  3. vi net-snmp.spec
  4. fedpkg local

Linux DEBs

Solaris

  • SYSV packages
    • see dist/net-snmp-solaris-build
  • tar balls
    • to be unpacked beneath /usr/local

Windows