[Gambas-user] oh, i forgot.... RPM thing again

Rob sourceforge-raindog2 at ...94...
Sun Mar 7 02:40:19 CET 2004


Important notes about the RPM's you're going to generate with my 
automatic thing:

1. Most Gambas projects have mixed-case names.  While you can 
create mixed-case RPM's, lately it's been frowned upon.  
Nonetheless, I don't change the case of the project name.

2. If your project expects any files to be in place besides the 
executable (Gambas archive) itself, you'll have to manually add 
them to the spec file (which will be in 
RPM/SPECS/projectname.spec under your home directory) under the 
%files section and rpm -ba projectname.spec to regenerate the 
RPMs.

3. If your project doesn't have a title, the RPM title and 
description will both be set to "Gambas project projectname" 
with "This project needs Gambas to run" or something like that 
added to the description.

4. The RPM category is always Application/Other.  I would give 
you a list of every possible RPM category to pick from, but 
every distro is different nowadays.  Again, you can edit the 
spec file and rebuild as I mentioned in #2.

5. No documentation is included.  Traditionally you want at least 
the file COPYING to be included in the package of a GPL'ed app.  
You can add the file COPYING to your project and then add a line 
"%doc COPYING" to the spec file and rebuild if you want.

6. I don't automatically generate a desktop icon or menu entry 
for the project either, because again this varies by distro.  It 
may be as easy as making a projectname.desktop file and throwing 
it in /usr/share/applnk, or.... it might not. ;)  I may just 
submit another patch if Benoit accepts this one, to implement 
the freedesktop.org menu entry and category standards.

None of these things should prevent you from throwing your Gambas 
packages on your website as RPMs, but they could make the 
packages fail rpmlint and not be accepted into a distribution's 
contrib repository.  But it should be enough to get you started, 
and hopefully a few of you will continue learning based on what 
I generate and become RPM masters ;)

Rob





More information about the User mailing list