Creating RPMS from source without Makefile

Karl Latiss karl.latiss at atvert.com.au
Tue Oct 16 03:20:35 UTC 2007


On Mon, 2007-10-15 at 15:35 +0200, Mertens, Bram wrote:
> Hi,
> 
> For several applications/tools I'd like to create an RPM to make
> maintenance easier.  However some of these come without a Makefile
> (usually just untar in the correct directory).  For others I'd like to
> add some additional (configuration) files and such.
> 
> According to the maximum rpm book it is recommended to keep patches and
> such separate from the original sources (pristine sources).  But so far
> I've been unable to find an explanation on how exactly to set this up.
> I've download the httpd source rpm and noticed that it contains some
> additional files in the SOURCES directory which have been added as
> additional "SourceX" lines in the spec file.  These are installed by
> additional "install" commands in the spec file.
> 
You may want to start with a package less complex than httpd to see how
things work.

> Is this the recommended approach?  Is there a way to group these files
> somehow?  After installing the httpd source rpm the SOURCE dir was
> filled with files with no way to determin which were related to the
> httpd package wand which not.
> 
You may also want to visit 

http://docs.fedoraproject.org/drafts/rpm-guide-en/ch-creating-rpms.html

for a simpler walkthrough.

-- 
Karl Latiss <karl.latiss at atvert.com.au>
Atvert Systems




More information about the redhat-list mailing list