Building RPM packages from GIT

Checking out the sources

For initially checking out the sources you will need some disk space
(about 25 megabytes) in a directory of your choice, the git 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".

First create the directory that will receive the subdirectoy with
Kwave sources and change into it:

You can look up the names of the release tags in the git web page at
http://sourceforge.net/p/kwave/code/ref/master~/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_8_99" for v0.8.99.

Warning

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

Updating fresh sources from GIT

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
to update to the latest version:

% git pull

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

Note

If you think that you have messed up your local source tree or if there
are conflicts during updating and you want to start through from a clean
state, you can do the following to discard all local changes and switch
back to the latest version from the master branch:

% git clean --force -d% git reset --hard% git checkout master

Compiling

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

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 GIT, 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.