The RPM project provides rules for automatically generating RPM spec files in order to make RPM distributions. Note that this project makefile is included automatically when you include any other project type in your GNUmakefile. It is non necessary to include rpm.make.
Except for PACKAGE_NAME, which is required, all the following
variables are optional. It is recommended that you set them anyway in
order to provide the standard information that is present in most RPM
distributions.
PACKAGE_NAMEdefines the name of the RPM distribution. In most cases this will be the same as the name of your project type. For instance, if you are creating a application, and have setAPP_NAMEto MyApplication, Then setPACKAGE_NAMEto the same thing, or just usePACKAGE_NAME=$(APP_NAME). ifPACKAGE_NAMEis not set, it defaults tounnamed-package
Set
PACKAGE_VERSIONto the release version number of your package. If not set, it defaults to 0.0.1
Set
GNUSTEP_INSTALLATION_DIRto the installation directory. Typically this is either$(GNUSTEP_SYSTEM_ROOT)),$(GNUSTEP_LOCAL_ROOT), or$(GNUSTEP_USER_ROOT). If not set it defaults to$(GNUSTEP_LOCAL_ROOT).
Set this to
YESif the package must be in$(GNUSTEP_SYSTEM_ROOT)and is not relocatable.
Set this to
YESif a configure script needs to be run before compilation
In addition you need to provide a stub spec file named for the package name, such as this example libobjc.spec.in file:
     Release:        1
     Source:         ftp://ftp.gnustep.org/pub/gnustep/libs/%{gs_name}-%{gs_version}.
     tar.gz
     Copyright:      GPL
     Group:          Development/Libraries
     Summary:        Objective-C Runtime Library
     Packager:       Adam Fedor <fedor@gnu.org>
     Vendor:         The GNUstep Project
     URL:            http://www.gnustep.org/
     
     %description
     Library containing the Objective-C runtime.