SimFQT Logo  1.00.0
C++ Simulated Fare Quote System Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
Make a new release

Introduction

This document describes briefly the recommended procedure of releasing a new version of SimFQT using a Linux development machine and the SourceForge project site.

The following steps are required to make a release of the distribution package.

Initialisation

Clone locally the full Git project:

cd ~
mkdir -p dev/sim
cd ~/dev/sim
git clone git://simfqt.git.sourceforge.net/gitroot/simfqt/simfqt simfqtgit
cd simfqtgit
git checkout trunk

Release branch maintenance

Switch to the release branch, on your local clone, and merge the latest updates from the trunk. Decide about the new version to be released.

cd ~/dev/sim/simfqtgit
git checkout releases
git merge trunk

Update the version in the various build system files, replacing the old version numbers by the correct ones:

vi CMakeLists.txt
vi autogen.sh
vi README

Update the version, add some news in the NEWS file, add a change-log in the ChangeLog file and in the RPM specification files:

vi NEWS
vi ChangeLog
vi simfqt.spec

Commit and publish the release branch

Commit the new release:

cd ~/dev/sim/simfqtgit
git add -A
git commit -m "[Release 0.5.0] Release of the 0.5.0 version of SimFQT."
git push

Create distribution packages

Create the distribution packages using the following command:

cd ~/dev/sim/simfqtgit
git checkout releases
rm -rf build && mkdir -p build
cd build
export INSTALL_BASEDIR=/home/user/dev/deliveries
export LIBSUFFIX_4_CMAKE="-DLIB_SUFFIX=64"
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_BASEDIR}/simfqt-0.5.0 \
 -DWITH_STDAIR_PREFIX=${INSTALL_BASEDIR}/stdair-stable \
 -DWITH_AIRRAC_PREFIX=${INSTALL_BASEDIR}/airsched-stable \
 -DWITH_AIRRAC_PREFIX=${INSTALL_BASEDIR}/airrac-stable \
 -DWITH_RMOL_PREFIX=${INSTALL_BASEDIR}/rmol-stable \
 -DWITH_RMOL_PREFIX=${INSTALL_BASEDIR}/airinv-stable \
 -DWITH_RMOL_PREFIX=${INSTALL_BASEDIR}/simfqt-stable \
 -DCMAKE_BUILD_TYPE:STRING=Debug -DINSTALL_DOC:BOOL=ON \
 ${LIBSUFFIX_4_CMAKE} ..
make check && make dist
make install

This will configure, compile and check the package. The output packages will be named, for instance, simfqt-0.5.0.tar.gz and simfqt-0.5.0.tar.bz2.

Upload the HTML documentation to SourceForge

In order to update the Web site files, either:

  • synchronise them with rsync and SSH: Upload the just generated HTML (and PDF) documentation onto the SourceForge Web site.
    cd ~/dev/sim/simfqtgit/build
    git checkout releases
    rsync -aiv ${INSTALL_BASEDIR}/simfqt-0.5.0/share/doc/simfqt-0.5.0/html/ \
     your_sf_user,simfqt@web.sourceforge.net:htdocs/
    
    where -aiv options mean:
    • -a: archive/mirror mode; equals -rlptgoD (no -H, -A, -X)
    • -v: increase verbosity
    • -i: output a change-summary for all updates
    • Note the trailing slashes (/) at the end of both the source and target directories. It means that the content of the source directory (doc/html), rather than the directory itself, has to be copied into the content of the target directory.
  • or use the SourceForge Shell service.

Generate the RPM packages

Optionally, generate the RPM package (for instance, for Fedora/RedHat):

cd ~/dev/sim/simfqtgit/build
git checkout releases
make dist

To perform this step, rpm-build, rpmlint and rpmdevtools have to be available on the system.

cp ../simfqt.spec ~/dev/packages/SPECS \
  && cp simfqt-0.5.0.tar.bz2 ~/dev/packages/SOURCES
cd ~/dev/packages/SPECS
rpmbuild -ba simfqt.spec
cd ~/dev/packages
rpmlint -i SPECS/simfqt.spec SRPMS/simfqt-0.5.0-1.fc16.src.rpm \
  RPMS/noarch/simfqt-* RPMS/i686/simfqt-*

Update distributed change log

Update the NEWS and ChangeLog files with appropriate information, including what has changed since the previous release. Then commit and push the changes into the SimFQT's Git repository.

Create the binary package, including the documentation

Create the binary package, which includes HTML and PDF documentation, using the following command:

cd ~/dev/sim/simfqtgit/build
git checkout releases
make package

The output binary package will be named, for instance, simfqt-0.5.0-Linux.tar.bz2. That package contains both the HTML and PDF documentation. The binary package contains also the executables and shared libraries, as well as C++ header files, but all of those do not interest us for now.

Upload the files to SourceForge

Upload the distribution and documentation packages to the SourceForge server. Check SourceForge help page on uploading software.

Make a new post

Send an email on the announcement mailing-list

Finally, you should send an announcement to simfqt-announce@lists.sourceforge.net (see https://lists.sourceforge.net/lists/listinfo/simfqt-announce for the archives)