[mythtv-users] Creating .rpms from source

Richard Shaw hobbes1069 at gmail.com
Thu May 26 13:27:48 UTC 2011


On Thu, May 26, 2011 at 8:08 AM, Allan Kugel <kugel at ruccs.rutgers.edu> wrote:
> I have heard that it's a good idea to install as rpms when
> on an rpm-based machine.  So does anybody out there have an
> rpm creation process that they can point me to?  There's
> one I found on the web, but it's out-of-date.
>
> I've heard that several people have put some kind of rpm generation
> together.  Can anybody help me out?

Without going into too much detail. You can pull the source rpms from
either atrpms or RPMFusion, update the source in the spec file and try
to build it. There's a good chance though that if there's any patches
that they may or may not apply cleanly and you'll have to figure out
if it just moved a few lines up or down in the code or if the patch is
no longer needed.

Here's a good place to start:
http://fedoraproject.org/wiki/PackageMaintainers/CreatingPackageHowTo

After getting your build environment setup pay close attention to:
http://fedoraproject.org/wiki/PackageMaintainers/CreatingPackageHowTo#Reuse_existing_package_information

If you don't want to have all the build requirements installed on your
system look at mock:
http://fedoraproject.org/wiki/Projects/Mock
http://fedoraproject.org/wiki/Extras/MockTricks

This builds in a clean chroot environment. It takes longer though
because it has to install all the dependencies every time. It caches
the packages so it's faster on subsequent builds.

HTH,
Richard


More information about the mythtv-users mailing list