[mythtv-users] Building SRPM on SuSE

John Pilkington J.Pilk at tesco.net
Tue Dec 31 23:25:55 UTC 2013


On 31/12/13 22:40, Jay Ashworth wrote:
> Some kind soul told me how to rebuild binary RPMs for SuSE 12.2 for .27 from
> the SRPMs about a month ago, and I thought I'd flagged the email, but now
> I can't find it, and I've just learned how inept my email system's search
> facility is.  (Take *that*, gmail -- no, I don't use gmail.)
>
> I only found one page on the wiki about this, and it seems rather atrpms
> specific.  If you're that person (John Pilkington, I'd thought it was you),
> and you remember where that conversation happened, or if there's a good
> writeup somewhere you know about, could you whip a guy a pointer?
>
> Cheers,
> -- jr 'LoNYEotC' a

I'm on Fedora and I forget exactly where the basics came from, but:

I have a folder called rpmbuild containing folders SRPMS, SPECS, 
SOURCES, BUILD, BUILDROOT.  Put foo.src.rpm into SRPMS and

rpmbuild --rebuild foo.src.rpm

So 'man rpmbuild' should have all the options.

I did post a diff from Richard Shaw's rpmfusion MythTV specfile 
recently, but that was aimed at rhel6 clones and gif tarball and I don't 
know how relevant it would be to SuSE

------------

Long ago I found it difficult to locate instructions for reading the 
source code from an src.rpm  Here's my note of what Axel came up with. 
The original will be in the ATrpms user list archives.

# To unpack and patch source code from foo.src.rpm file
#
# put package in ~/rpmbuild/SRPMS/foo.src.rpm

   rpm -ihv foo.src.rpm
   rpmbuild --nodeps -bp /where/the/spec/files/land/foo.spec

# and look for the patched source in ~/rpmbuild/BUILD/

HTH

John P



More information about the mythtv-users mailing list