[mythtv-users] Make RPMs from .spec and package source tarball? how?

Axel Thimm Axel.Thimm at ATrpms.net
Mon Jun 12 22:39:43 UTC 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20060613/e7f81cd1/attachment.pgp 


More information about the mythtv-users mailing list