Cross-posting w/o even mentioning the other mailing lists in the Cc or similar is considered very evil. :) On Mon, Jun 12, 2006 at 11:12:05PM +0100, Ben Lancaster wrote: > How does one make an RPM from a source tarball and an RPM spec file? > I need to patch the source of MythTV to fix a rather annoying bug, > and then make an RPM based on the ATRPMS spec for the package. Of > course, I could just go ahead and install from source, but this will > mess up my yum upgrades/dependencies. In general (not only mythtv related): o Get the unpatched src.rpm o "install" it (rpm -ihv foo.src.rpm) o See where the sources and specs land (by default under /usr/src/redhat). Modify these locations as required (for example for building as non-root and /usr/src/redhat not writable by non-root, which is the default) in ~/.rpmmacros o Add a patch to the sources and the specfile o rpmbuild -ba /path/to/specfile/foo.spec Check out http://fedora.redhat.com/docs/drafts/rpm-guide-en/ for the details. -- Axel.Thimm at ATrpms.net
Attachment:
pgprtXlzLOt28.pgp
Description: PGP signature