Pushing the extra AppData files into Rawhide

Bill Nottingham notting at splat.cc
Wed Apr 1 01:54:50 UTC 2015


David Timms (dtimms at iinet.net.au) said: 
> On 01/04/15 00:34, Richard Hughes wrote:
> > On 31 March 2015 at 14:07, David Timms <dtimms at iinet.net.au> wrote:
> >> I see my package was adjusted, but I can't get it to build:
> > 
> > I only build the new-enough libappstream-glib into rawhide -- seeing
> > as most of the f23 builds have succeeded I'll do the same for F22 and
> > submit an update. F20 is much too old for that version of
> > appstream-glib, and I'm not sure the gnome-software in f20 actually
> > supported screenshots :/
> > 
> Thanks Richard.
> 
> I would love to be able to keep the spec files "same as possible".
> $ appstream-util --version
> Version:	0.2.5
> 
> What is the minimum version ?
> 
> Can someone give me a simple spec file conditional to achieve:
> 
> if appstream-util --version >= 0.2.5
> {
>   appstream stuff
> }

I thought about trying to reliably parse major/minor/subminor versions in
bash, and track it against where things were implemented. But then just went
the lazy route:

if appstream-util --help | grep -q replace-screenshots ; then
  ... do stuff here ...
fi

Bill


More information about the devel mailing list