building own RPMs

Matthew Miller mattdm at mattdm.org
Sat Dec 25 16:21:16 UTC 2004


On Sat, Dec 25, 2004 at 03:18:43PM +0100, msilber wrote:
> I need to build an own RPM package from my apache source, how can I do
> that? Found nothing about this in the Web! I know the rpmbuild command,
> but I can only build RPMs from src.rpms or prepared tarballs! HELP!
> Please! :-?

Start with the existing httpd source rpm, and modify that for your needs.
There isn't very good documentation, but you'll find some at
<http://www.rpm.org/>.

A few key tips: 
 
  - don't build as root -- set up the ~/rpmbuild thing instead
  - make as few changes as possible from the original RPM; this'll make
    your life easier later.
  - put your own 'tag' in the release field. For example, if the release
    of the package is '3', make yours "3msilber1", and the next version
    "3msilber2". (And don't be afraid to increment that number even when
    your changes are tiny -- you're not going to run out of integers, and
    having separately-named files is handy.)

-- 
Matthew Miller           mattdm at mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>




More information about the fedora-devel-list mailing list