[ATrpms-devel] Re: Fedora 2 building MythTv SRPM

Axel Thimm Axel.Thimm at atrpms.net
Wed Aug 18 19:33:05 CEST 2004


On Tue, Aug 17, 2004 at 10:42:46PM +1000, Ben Stanley wrote:
> On Tue, 2004-08-17 at 17:42, Axel Thimm wrote:
> 
> > On Tue, Aug 17, 2004 at 09:07:55AM +1000, Ben Stanley wrote:
> > > I have almost suceeded in re-building the mythtv package with
> > > dvb enabled. I included linuxtv-dvb-1.1.1 in the list of
> > > source packages and placed the appropriate directory on the
> > > include path.
> > 
> > Great, add a %changelog entry and send the specfile back :)
> > 
> > > I have just one problem remaining. I get an error as follows:
> > > File must begin with "/": %{_sysconfigdir}/mythbackend
> > > 
> > > I have definitions for the other five variables in my
> > > /etc/rpm/macros file. Could you suggest a suitable definition
> > > for _sysconfigdir?
> > 
> > /etc/sysconfig or %{_sysconfdir}/sysconfig
> 
> OK, this one is fixed. 
> 
> However, I still have a problem with the atrelease macro. I'm using the
> following command to perform the build:
> 
> rpmbuild -bb --define 'atrelease() %1rhfc2.bs' --define
> "_without_xvmcnvidia=1" --define "_with_dvb=1"
> mythtv-0.15.1-74.rhfc2.at.spec
> 
> However, my package ends up with the release string %1rhfc2.bs instead
> of 75rhfc2.bs . I also tried quoting with " instead of ', and also
> escaping the braces from the shell... So how do I fix this?

It is probably the same as shell variable quoting, if there is no
non-ambiguous separator (like ".") then you need to protect the
variable with something like %{1}rhfc2.bs. Any reason why you don't
want the dot?
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20040818/892228c1/attachment.bin


More information about the atrpms-devel mailing list