wiki:DistributionPackaging

Version 1 (modified by andree, 13 years ago) (diff)

Copy from BerliOS

SVN repository Management

First you need to get the content of the SVN repository:

    # cd /to/desired/path 
    # svn checkout ????? 

or

    # svn checkout ????? 

Then depending on your distribution you'll have to follow one of the following recipe:

Debian

  1. for mondo package, cd into mondo directory and run ./bootstrap
  2. rename package directory: <package>-<latest release><branch><yymmdd>
    Note: <branch> = 'bt' for berlios trunk and 'bb' for berlios branch
  3. create tarball: tar cvzf <package>_<latest release><branch><yymmdd>.orig.tar.gz <package>-<latest release><branch><yymmdd>
  4. create new directory <package>-<latest release><branch><yymmdd>-1
  5. copy tarball in new directory and unpack there
  6. cd into tarball directory
  7. copy debian directory from last package
  8. dch --newversion <latest release><branch><yymmdd>-1
  9. build ;-)

RPM Based Distributions

This has currently only be tested with RedHat Enterprise Linux 3 and 4, Fedora Core 4/5, SLES 9, OpenSuSE 10 and Mandriva 10.2/2005 and 2006.0

From the sources rpm packages the nearest from your distro, you may build packages for your target distribution by doi,g:

# rpm -ivh mindi*.src.rpm mondo*.src.rpm 
# rpmbuild -ba /usr/src/*/SPECS/mondo.spec 
# rpmbuild -ba /usr/src/*/SPECS/mindi.spec 
# rpm -ivh /usr/src/*/RPMS/i?86/mondo*.i?86.rpm /usr/src/*/RPMS/i?86/mindi*.i?86.rpm 

Or from the SVN tree extracted:

# tools/svn2build 

which will create for you a build directory with all files expanded

then you can call

# tools/build2pkg 

in order to produce local packages for your distribution.

If you have virtual machines of other distributions that you want to generate packages for, then after setting them up following the documentation under tools/qemu-vm.txt you can call:

# tools/build2qemu 

to produce packages for all supported distros (in tools/DISTROS)

Location of mondo and mindi files