[mythtv] Building MythTV SVN Packages (rpm)

Michaël Burtin mburtin at gmail.com
Wed Apr 5 09:46:36 UTC 2006


Great work Chris.
My modified spec was far from this one ;)
BTW I still have a problem in the revision extraction, that hang up rpm
building.
The method of extraction depends on the system language, and doesn't work on
French one (Révision instead of Revision).
Would it be a good solution to use something like :
%define _svn_rev %( if [ ! -d '%{_svn_root}/.svn' ] ; then REL=`LANG="en_US"
svn co http://svn.mythtv.org/svn/trunk/ '%{_svn_root}'` ; else
REL=`LANG="en_US" svn update '%{_svn_root}'`; fi; if [ $? != 0 ]; then echo
'' ; else echo "$REL" | grep revision | sed -e 's/[^0-9]\\+//g'; fi )
or maybe :
%define _svn_rev %( if [ ! -d '%{_svn_root}/.svn' ] ; then REL=`svn co
http://svn.mythtv.org/svn/trunk/ '%{_svn_root}'` ; else REL=`svn update
'%{_svn_root}'`; fi; if [ $? != 0 ]; then echo '' ; else cat
%{_svn_root}/.svn/entries |grep revision |  sed -e
's:.*revision="\([0-9]*\)".*:\1:'; fi )

Mick

On 4/2/06, Buzz <buzz at oska.com> wrote:
>
> Nice work Chris....  :-) Although I haven't actually tried your changes
> yet
> myself, they look good!
>
> Buzz.
>
> > -----Original Message-----
> > From: mythtv-dev-bounces at mythtv.org
> > [mailto:mythtv-dev-bounces at mythtv.org] On Behalf Of Chris Petersen
> > Sent: Sunday, 2 April 2006 10:46 AM
> > To: atrpms-devel at atrpms.net; Development of mythtv
> > Subject: [mythtv] Building MythTV SVN Packages (rpm)
> >
> > Someone on one of the mythtv lists recently pointed out the
> > "build from svn" spec files on the mythtv wiki.  Since I hate
> > to see things done halfway, I've updated these so they work
> > properly, and added a ton of documentation.
> >
> > It's also very easy to modify these to work with a release
> > version, though I'll leave that up to the repository
> > maintainers to do that.
> >
> > http://www.mythtv.org/wiki/index.php/Mythtv-svn-rpmbuild.spec
> > http://www.mythtv.org/wiki/index.php/Mythplugins-svn-rpmbuild.spec
> >
> > -Chris
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20060405/470f7a52/attachment.htm 


More information about the mythtv-dev mailing list