LnxZip-0.1

Author: John Hawk 

Preface:

Sorry for the state of documentation. I hope it is enough to get you going.
 
 

Instalation/setup:

LnxZip creates a RPM build tree identical to the tree located in /usr/src/RPM it also installs .rpmrc and .rpmmacros. If either .rpmrc or .rpmmacros exists they will be re-named to .rpmrc_old and rpmmacros_old. You should edit both .rpmrc and rpmmacros to suit your personal needs. Both files are currently set to match the Linux-Mandrake scheme. Important prior to doing an RPM build make sure you have set the default directory in Preferences | General. The reason for this is at install time the ~ is used to denote the home directory. The safe thing to do is to set this in preferences ASAP.
 
 

Compression:

Currently zip, gzip, tar, arj, and bzip2 are supported. Functionality includes the ability to open archives, and to add, delete, extract, and view files.
 
 
LnxZip supported archive actions.
  zip tar tar.gz tgz tar.bz2 bz2 arj
Add Yes Yes Yes Yes Yes No No
Delete Yes Yes Yes Yes Yes No No
Extract Yes Yes Yes Yes Yes Yes Yes
New Yes Yes Yes Yes Yes No No

RPM Build Steps:

  1. First make sure your source code compiles and installs.
  2. Confirm all executables and support files are present and working
  3. Clean tree of any unwanted old sources.
  4. Execute a make clean in source tree.
  5. Execute LnxZip and choose RPM | Spec File
  6. Provide Information required.
    Note: if you do not know what files to install do the following:
    After Building Spec File Exit LnxZip change to base directory and type:
    rpm -bi spec-file
    A build will start but exit after installation of files to RPM_BUILD_ROOT
    Now cd RPM_BUILD_ROOT && find
    You will now have the file list repeat above.
  7. Choose RPM | Build RPM
  8. Binary package will be in RPM/RPMS/i586 & Source package will be in RPM/SRPMS

RPM-Tool:

The RPM Tool works by presenting the end-user with a tabbed dialog to make selection and entries to complete a spec-file. Once the information is acquired the tool will create a correctly named directory and prompt the user for source file location . Upon selection the tool will copy the source files to the new directory and place a copy of the spec-file in the directory. Compression of the directory is completed and the resulting Project.tar.bz2 file is placed in the RPM tree SOURCES directory. Creation of a rpm-build.sh script is completed and placed in the base directory. RPM Build executes this script via a terminal for visual confirmation, also a log file will be placed in base directory /tmp as rpm-build.log. Building your first RPM is simple for the first time simply provide the Package Name on Page 1 and the Files on Page 4. You could also add the Summary and Description on Page 2. This should provide a minimum RPM package for you.

Good Luck!