Re: appdata handling

2014-04-15 Thread Richard Hughes
On 14 April 2014 21:46, Richard Hughes  wrote:
> You are an early adopter; somewhat simpler now :)

Okay, since this morning:

createrepo_as --basename=test path/to/package.rpm
sudo appstream-util install test.xml.gz test-icons.tar.gz

I'll get a new appstream-glib release out at the end of the month and
into F20/rawhide. Then I'll update the FAQ.

Richard.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: appdata handling

2014-04-14 Thread Richard Hughes
On 14 April 2014 21:10, Bill Nottingham  wrote:
> "How do I locally check changes to my appdata inside gnome-software, as
> opposed to just appdata-validate?"

Now it's a case of cloning and building
https://github.com/hughsie/createrepo_as and then doing
./createrepo_as --basename=test path/to/package.rpm and then copying
the ./test.xml.gz file to /usr/share/app-info/xmls/ and then explode
test-icons.tar.gz into /usr/share/app-info/icons/test/ -- If you file
a ticket here https://github.com/hughsie/createrepo_as/issues then
I'll add a script that makes it easy to install the data and write a
FAQ entry.

> I tried this once, and it seemed to be a rather convoluted process.
> Wondering if I did it wrong?

You are an early adopter; somewhat simpler now :)

Richard
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: appdata handling

2014-04-14 Thread Bill Nottingham
Richard Hughes (hughsi...@gmail.com) said: 
> > - How long does it take that the new appdata is propagated to gnome-software
> 
> I do new builds nearly every day, but the builds that are shipped in
> gnome-software and pushed to users is usually updated every month or
> so.

A FAQ related to this that's not on the upstream page:

"How do I locally check changes to my appdata inside gnome-software, as
opposed to just appdata-validate?"

I tried this once, and it seemed to be a rather convoluted process.
Wondering if I did it wrong?

Bill
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: appdata handling

2014-04-14 Thread Panu Matilainen

On 04/14/2014 10:51 AM, Richard W.M. Jones wrote:

On Mon, Apr 14, 2014 at 08:44:29AM +0100, Richard Hughes wrote:

On 13 April 2014 13:21, Markus Mayer  wrote:

As a side note: build.log contains the following error:
error: Couldn't exec /usr/lib/rpm/appdata.prov: No such file or directory


Doesn't exist on my system either, so no idea, sorry.


$ cat /usr/lib/rpm/fileattrs/appdata.attr
%__appdata_provides %{_rpmconfigdir}/appdata.prov
%__appdata_path ^%{_datadir}/appdata/.*\\.appdata\\.xml$
$ rpm -qf /usr/lib/rpm/fileattrs/appdata.attr
rpm-build-4.11.2-2.fc20.x86_64


Its a bug in rpm makefiles. Will fix...

- Panu -

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: appdata handling

2014-04-14 Thread Richard W.M. Jones
On Mon, Apr 14, 2014 at 08:44:29AM +0100, Richard Hughes wrote:
> On 13 April 2014 13:21, Markus Mayer  wrote:
> > As a side note: build.log contains the following error:
> > error: Couldn't exec /usr/lib/rpm/appdata.prov: No such file or directory
> 
> Doesn't exist on my system either, so no idea, sorry.

$ cat /usr/lib/rpm/fileattrs/appdata.attr
%__appdata_provides %{_rpmconfigdir}/appdata.prov
%__appdata_path ^%{_datadir}/appdata/.*\\.appdata\\.xml$
$ rpm -qf /usr/lib/rpm/fileattrs/appdata.attr
rpm-build-4.11.2-2.fc20.x86_64

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: appdata handling

2014-04-14 Thread Richard Hughes
On 13 April 2014 13:21, Markus Mayer  wrote:
> What I'm interested in is:
> - Directory, Name, ownership and permissions for appdata.xml files

Just the default permissions and groups are required, no special handling.

> - %post/%postun scriptlets (if needed)

Nope, none.

> - If appdata-validate must be run during package build

This is up to you as the packager. I would say it's a really good
idea, but it depends if you want to deal with upstream not playing by
the rules. There are already some upstreams doing things like
 which until recently tripped up the metadata
extractor.

> - How long does it take that the new appdata is propagated to gnome-software

I do new builds nearly every day, but the builds that are shipped in
gnome-software and pushed to users is usually updated every month or
so.

> As a side note: build.log contains the following error:
> error: Couldn't exec /usr/lib/rpm/appdata.prov: No such file or directory

Doesn't exist on my system either, so no idea, sorry.

Richard.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Re: appdata handling

2014-04-13 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Apr 13, 2014 at 02:21:03PM +0200, Markus Mayer wrote:
> A new version of a package I maintain added an appdata.xml. As I
> haven't handled such files before, I looked up the internet for some
> information. The only helpful hint I found, was a commit adding
> appdata support to the qt-creator package in fedora git. [1]
> 
> As more packages will add appdata file upstream, packagers will need
> information how to handle this within fedora. I suggest to these
> information to the Packaging Guidelines.

Have you seen http://people.freedesktop.org/~hughsient/appdata/ ?

Zbyszek

> What I'm interested in is:
> - Directory, Name, ownership and permissions for appdata.xml files
> - %post/%postun scriptlets (if needed)
> - If appdata-validate must be run during package build
> - How long does it take that the new appdata is propagated to gnome-software
> 
> As a side note: build.log contains the following error:
> error: Couldn't exec /usr/lib/rpm/appdata.prov: No such file or directory
> 
> [1] 
> http://pkgs.fedoraproject.org/cgit/qt-creator.git/commit/?h=epel7&id=812bac7be961483c992a3337fc8a35c524c73079
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

appdata handling

2014-04-13 Thread Markus Mayer
A new version of a package I maintain added an appdata.xml. As I haven't 
handled such files before, I looked up the internet for some 
information. The only helpful hint I found, was a commit adding appdata 
support to the qt-creator package in fedora git. [1]


As more packages will add appdata file upstream, packagers will need 
information how to handle this within fedora. I suggest to these 
information to the Packaging Guidelines.


What I'm interested in is:
- Directory, Name, ownership and permissions for appdata.xml files
- %post/%postun scriptlets (if needed)
- If appdata-validate must be run during package build
- How long does it take that the new appdata is propagated to gnome-software

As a side note: build.log contains the following error:
error: Couldn't exec /usr/lib/rpm/appdata.prov: No such file or directory

[1] 
http://pkgs.fedoraproject.org/cgit/qt-creator.git/commit/?h=epel7&id=812bac7be961483c992a3337fc8a35c524c73079

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct