[Gambas-user] RPM generator patch for gambas IDE

Rob sourceforge-raindog2 at ...94...
Sun Mar 7 02:26:16 CET 2004


OK, here's a patch to the Gambas IDE that adds a "Build RPM..." 
entry to the Project menu.  When you select it, it will do the 
following things:

1. See if you have an RPM directory structure set up and if not, 
set it up.

2. See if you have an RPM macros file (where you set your name, 
email address, distro name, etc.) and creates one and prompts 
you to edit it if not.  (I'm using kedit because I couldn't 
figure out how to use the IDE's built in text editor more easily 
than SHELL "kedit " & filename WAIT...)

3. Makes a tar.bz file of the project in the RPM SOURCES 
directory.

4. Generates a spec file.

5. Builds the RPM and source RPM.

6. Tells you where it put the RPM, or if it failed, brings up 
kedit again with the RPM build process output.

This patch is against gambas 0.90.  You will need the rpm-build 
package installed if you're using Mandrake, don't know what it's 
called on other RPM-based distros.

I created a user with a blank home directory and all worked as 
advertised, and it worked fine as my "schmoe" user under which I 
build all my RPM's.  Please let me know of any errors you get.

Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gambas-rpm-builder.diff
Type: text/x-diff
Size: 5360 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20040306/ee4e68b0/attachment.diff>


More information about the User mailing list