
TO CREATE GAMBAS PACKAGES FOR MANDRAKELINUX
-------------------------------------------

(0) Look at http://www.linux-mandrake.com/en/howtos/mdk-rpm/mdk-rpm.html

(1) Create the following hierarchy in your home directory:

~
~/RPM/
~/RPM/BUILD/
~/RPM/RPMS/
~/RPM/RPMS/i586
~/RPM/RPMS/noarch
~/RPM/SOURCES/
~/RPM/SPECS/
~/RPM/SRPM/
~/RPM/tmp/

(2) Copy the file 'gambas.spec.mandrake' in the ~/RPM/SPECS/ directory.

(3) Rename it as 'gambas.spec'.

(4) Create a ~/.rpmmacros files that must include the following macros:

%define _topdir          /home/benoit/RPM
%define _tmppath         /home/benoit/RPM/tmp
%distribution            Mandrakelinux
%vendor                  Mandrakesoft
%packager                Benot Minisini <gambas@users.sourceforge.net>

Replace /home/benoit by your own home directory. And put your name and
your e-mail in the %packager macro.

(5) Copy the tar.bz2 source archive in ~/RPM/SOURCES/

(6) Open a terminal in ~/RPM/SPECS and build the packages:

$ cd ~/RPM/SPECS
$ LANG=C LC_ALL=C rpmbuild -ba gambas.spec

NOTE: you must switch the localization to 'C' before running rpmbuild. Otherwise,
things won't work! After all, rpm was made by people from United States ;-)

(7) You will find the packages in the ~/RPM/RPMS/i586 directory.


