Building RPM packages from CVS

Building RPM packages from CVS

Checking out the sources

For initially checking out the sources you will need some disk space (about 70 megabytes) in a directory of your choice, the cvs 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. First create the directory that will receive the subdirectoy with Kwave sources and change into it:

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

  2. Then log in into the CVS server. As I guess that you want to do that as normal user, you log in as anonymous:

    % cvs -d:pserver:anonymous@cvs.kwave.sourceforge.net:/cvsroot/kwave login
    
    Then the server asks you for a password. Simply press enter, as we do not have a password for anonymous access.

  3. % cvs -z3 -d:pserver:anonymous@cvs.kwave.sourceforge.net:/cvsroot/kwave co kwave
    

Warning

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

Updating sources from CVS

The procedure described in the previous section is only necessary once. For further updates it is much easier. Just change into the directory you want to update and do the following:

% make clean
% cvs update
Then go on to the next section and compile as usual.

Compiling

Building rpm package from a CVS 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 rpm -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

Note for SuSE users: here you have to specify the directory /usr/src/packages instead of /usr/src/redhat too!

Assuming that you are in the root of where you checked out from CVS, 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.

% cd kwave
% make -f Makefile.dist
% ./configure
% make rpm
% rpm -i /usr/src/redhat/BUILD/[arch]/kwave-XXX.[arch].rpm

Note

If you still have problems with make rpm, you will find the tar.gz archive that were produced in /tmp. Please follow the instructions in the previous chapter.

KDE Logo