[mythtv-users] Rebuild source rpms HOWTO

Jarod Wilson jarod at wilsonet.com
Wed Apr 20 01:08:48 UTC 2005


On Tuesday 19 April 2005 11:22, Joe Votour wrote:
> I've done it for the 0.17 release, but I don't have
> access to the information while I'm at work (I only
> enabled MythWeb access to my machine, not SSH).  I
> haven't done it for 0.18, I'm going to reinstall
> everything before doing it for 0.18 (because I want to
> install FC3 x86_64).
>
> But the basic jist of it is that you need to fetch the
> macros and put them somewhere in /etc (I think the
> directory under etc is rpm, or something else).

I put everything in ~/.rpmmacros and *never* build anything as root (can cause 
Very Bad Things to happen if there's a bug in the spec...).

> I don't have the full details with me, but if somebody
> else hasn't posted how to do it, I'll put some quick
> instructions together and post them tonight.

The required macros have been posted on the atrpms-devel list a few times. The 
only ones really necessary for building Myth packages are these:

%distversion %(rpm -qf --qf='%{VERSION}' /etc/redhat-release)
%distinitials rh%(grep -i fedora /etc/redhat-release >/dev/null && echo "fc")
%distname %(grep -i fedora /etc/redhat-release >/dev/null && echo "Fedora 
Core" || echo "Red Hat Linux")
%disttag %{distinitials}%{distversion}
%disttag2 %(echo %disttag | sed -e's,\\.,_,g')
%atrelease() %1.%{disttag}.jw

Substitute your own initials or whatever you like for the %atrelease macro.

> My only reluctance to do this is that Axel might be
> bombarded with questions if the rebuilds fail or cause
> some strange behavior.

With just the above, I've never had a problem rebuilding.

> Axel, Jarod, if neither of you gets around to this
> before me, do either of you have any objections to me
> putting something together?

I don't mind, and I doubt if Axel minds. Its a goal of ATrpms to make the 
packages more user-rebuildable.

-- 
Jarod Wilson
jarod at wilsonet.com

Got a question? Read this first...
     http://catb.org/~esr/faqs/smart-questions.html
MythTV, Fedora Core & ATrpms documentation:
     http://wilsonet.com/mythtv/
MythTV Searchable Mailing List Archive
     http://www.gossamer-threads.com/lists/mythtv/
-------------- 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/20050419/53c910c9/attachment.pgp


More information about the mythtv-users mailing list