[HLUG] Source RPMs - update

Jeff Tupholme jeff at repositive.com
Sat Mar 3 22:39:55 GMT 2007


Hi all,

Thanks for the helpful suggestions on this one a few weeks ago. I  
just wanted to report back and say that the experiment seems to have  
been 100% successful.

I installed the SRPM as usual, then unzipped the source tarball to  
add in my codec directory (from a zip file I downloaded from the  
codec provider, it's not in the base package for licensing reasons).  
I then simply edited the .spec file to suffix the version number (so  
I could later identify that this was a package of my own making) and  
add the configure switch to enable the new codec. Then I rebuilt the  
RPM and I could see in the output that the new codec was being compiled.

After that, I deleted the original RPM that I had previously  
installed and installed my modified version. Running 'ffmpeg - 
formats' against each version showed me that the codec in question  
was now listed where it wasn't before. I am now able to use the  
ffmpeg command to convert files into the format that I want.

By the way, for anyone on Red Hat-based systems who doesn't need to  
do this kind of stuff I'd thoroughly recommend YUM (http:// 
linux.duke.edu/projects/yum/), it's excellent.


Regards,

Jeff


On 16 Jan 2007, at 8:51am, Andrew Hodgson wrote:

> Hi Jeff,
>
> -----Original Message-----
> From: herefordshire-bounces at mailman.lug.org.uk
> [mailto:herefordshire-bounces at mailman.lug.org.uk] On Behalf Of Jeff  
> Tupholme
> Sent: 16 January 2007 08:05
> To: Herefordshire Linux Users Group.
> Subject: Re: [HLUG] Source RPMs
>
>> Hi,
>
>> Yes, thanks, that is one option. This is partly an experiment, but I
>> would like to maintain the advantages of using the package manager if
>> possible as I've used that for installing everything else - being
>> able to see what's there, dependency and upgrade tracking and so on.
>
> Let me know how you get on.  It is quite a good project to develop  
> a working
> RPM file that does what you need to.  I usually chicken out and  
> revert back
> to the source (like last week on a work system, I needed to use a  
> feature in
> a later Mutt, but because I don't use the standard MTA in Suse I  
> couldn't
> use it since the MTA packages weren't there, even though I know it  
> would
> work).  I had it compiled and running in under 5 minutes.
>
> Andrew.


> Hi all,
>
> I believe most people are running Ubuntu but I still have a couple  
> of machines running a Red Hat variant (Yellow Dog). That uses RPM  
> for its package management. I want to add a couple of additional  
> codecs to ffmpeg that are only available in source form, so I  
> thought I would try to incorporate them into the source RPM (SRPM).  
> I believe I can unpack the SRPM and add the extra directories in  
> before building; the ffmpeg Makefile is supposed to notice them and  
> roll them in.
>
> Sounds easy, but anyone who has done this sort of thing before have  
> any tips before I start!?
>
>
> Thanks,
>
> Jeff



More information about the Herefordshire mailing list