Building RPM packages from SVN
Prev
Next

Building RPM packages from SVN

La vérification des mises à jour des sources

For initially checking out the sources you will need some disk space (about 25 megabytes) in a directory of your choice, the svn package of your favorite distribution and full access to the internet. If you get error messages about rejected connections you either have typed something wrong or your provider doesn't give you full access. A good place for the source files will be "$HOME/src".

  1. En premier lieu, vous devez créer le dossier où vous allez recevoir le sous-dossier qui stockera les sources de Kwave :

    % mkdir -p $HOME/src
    % cd $HOME/src
    

  2. Then check out the latest sources from the SVN server:

    % svn checkout https://kwave.svn.sourceforge.net/svnroot/kwave/trunk kwave
    

    or you can check out a specific release with the following command:

    % svn checkout https://kwave.svn.sourceforge.net/svnroot/kwave/tags/[release-tag] kwave
    
    You can look up the names of the release tags in the web svn page at "http://svn.sourceforge.net/viewvc/kwave/tags/". The release tags are always built out of the word Release- and the version number of the release, with underscores instead of dots. For example "Release-0_7_9" for v0.7.9.

Warning

There must not be a directory named kwave under the directory you want to check out. Otherwise the svn program will complain about already existing files and the checkout will not work.

Updating sources from SVN

The procedure described in the previous section is only necessary once. For further updates it is much easier. Just change into the directory where you have the checked out sources and do the following:

% svn update
Then go on to the next section and compile as usual.

Note

If you think that you have messed up your local source or if there are conflicts during updating, you can remove all files and directories from your Kwave source directory, except the .svn directory and then try again.

La compilation

Building rpm package from a SVN snapshot is quite simple. The procedure is nearly the same as described in the last section, so it unhappily also has the same problem with the rpmbuild -ta command our method internally uses. Like in the previous chapter, [arch] stands for the platform you have Built the package and might be something like i386, i586, sparc or whatever, XXX stands for the version number you have checked out.

Note

Pour les utilisateurs de la distribution SuSE LINUX : vous devez également indiquer le nom du dossier de stockage des paquetages en remplaçant /usr/src/packages par /usr/src/redhat !

Assuming that you are in the root of where you checked out from SVN, do the following to create a Makefile, the Kwave package and install it. If you already have a version of Kwave installed, please remove it first or use rpm -U instead of rpm -i for updating instead of installing.

% mkdir /tmp/kwave-build
% cd /tmp/kwave-build
% cmake $HOME/src/kwave
% make rpm
% rpm -ivh /usr/src/redhat/BUILD/[arch]/kwave-XXX.[arch].rpm

Note

Si vous avez des problèmes avec la commande make rpm, vous trouverez l'archive au format « .tar.gz » qui a été construite dans le dossier « /tmp ». Vous pouvez ensuite suivre les instructions de création d'un paquetage RPM dans le précédent chapitre.

Prev
Next
Home


Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team