After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 731799 - add metainfo files for zeitgeist plugin
add metainfo files for zeitgeist plugin
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2014-06-17 20:15 UTC by Igor Gnatenko
Modified: 2014-06-21 15:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
zeitgeist: add MetaInfo file (3.33 KB, patch)
2014-06-17 20:16 UTC, Igor Gnatenko
none Details | Review
zeitgeist: add MetaInfo file (3.75 KB, patch)
2014-06-17 20:50 UTC, Igor Gnatenko
none Details | Review
plugins: move zeitgeist to gedit-plugins project (19.51 KB, patch)
2014-06-17 23:00 UTC, Igor Gnatenko
committed Details | Review
plugins: add zeitgeist plugin from 'gedit' project (20.93 KB, patch)
2014-06-17 23:02 UTC, Igor Gnatenko
reviewed Details | Review
plugins: add zeitgeist plugin from 'gedit' project (21.00 KB, patch)
2014-06-20 18:03 UTC, Igor Gnatenko
accepted-commit_now Details | Review
plugins: fix installing appstream files (14.10 KB, patch)
2014-06-20 18:03 UTC, Igor Gnatenko
committed Details | Review
plugins: add zeitgeist plugin from 'gedit' project (21.02 KB, patch)
2014-06-20 18:27 UTC, Igor Gnatenko
committed Details | Review

Description Igor Gnatenko 2014-06-17 20:15:18 UTC
In bug 731632 I've added metainfo for all plugins which in gedit-plugins project.

I think we should add metainfo for plugins in gedit.

You probably know that Fedora maintainers of gedit splitted it out to gedit and gedit-zeitgeist. I think in the near future we will split it to many packages.

Richard today added feature for projects which have plugins as a part of main program.
appstream_builder (was: createrepo_as) building AppStream metadata for
each distro.
If project has AppData and MetaInfo at the same time it will work this
way:
* if distro has appdata and metainfo in the same package - it just ignore metainfo and provides for software center only main package.
* if distro has appdata and metainfo in separate packages (e.g. gedit and gedit-zeigeist), them will shown in software center as main package and plugin for it.


I'm written patch, so review it please.
Comment 1 Igor Gnatenko 2014-06-17 20:16:30 UTC
Created attachment 278627 [details] [review]
zeitgeist: add MetaInfo file

Reference: https://bugzilla.gnome.org/show_bug.cgi?id=731799
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Comment 2 Igor Gnatenko 2014-06-17 20:50:03 UTC
Created attachment 278628 [details] [review]
zeitgeist: add MetaInfo file

fix makefile.am and add to POTFILES.in
Comment 3 Paolo Borelli 2014-06-17 21:06:52 UTC
I think we should move the zeitgeist plugin to gedit-plugins: it is not very used and many distros split it out due to the extra dependency.

For the core plugins please do not split them to separate packages, they are core part of the gedit experience and many of them are enabled by default.
Comment 4 Igor Gnatenko 2014-06-17 23:00:41 UTC
Created attachment 278632 [details] [review]
plugins: move zeitgeist to gedit-plugins project

Ok. This patch should drop all zeitgeist-related code from 'gedit' project.
Comment 5 Igor Gnatenko 2014-06-17 23:02:47 UTC
Created attachment 278633 [details] [review]
plugins: add zeitgeist plugin from 'gedit' project

This will add zeitgeist-related code to 'gedit-plugins' project.
Comment 6 Igor Gnatenko 2014-06-17 23:08:04 UTC
Unfortunately, I've not tested these patches. I can test it at this weekned, so I think you could test it earlier.
Comment 7 Richard Hughes 2014-06-20 09:19:55 UTC
It would be awesome if we could get the metainfo files upstream before 3.13.3 (three days time!) and then we can get some testing of the plugin installing and removal. Thanks!
Comment 8 Sébastien Wilmet 2014-06-20 10:27:28 UTC
Review of attachment 278632 [details] [review]:

Seems good, please test the patch and if it is ok, feel free to push.
Comment 9 Sébastien Wilmet 2014-06-20 10:46:34 UTC
Review of attachment 278633 [details] [review]:

In configure.ac, zeitgeist is placed in the Python plugins. But the plugin is written in C. Is there a reason to place it in the Python plugins? If so, a comment explaining why would be useful.

::: plugins/zeitgeist/Makefile.am
@@ +23,3 @@
+plugin_in_files += plugins/zeitgeist/zeitgeist.plugin.desktop.in
+
+appstream_in_files += plugins/zeitgeist/gedit-zeitgeist.metainfo.xml.in

See the Makefile.am for the git plugin, appstream_in_files is outside the if/else.
Comment 10 Igor Gnatenko 2014-06-20 11:05:04 UTC
(In reply to comment #9)
> Review of attachment 278633 [details] [review]:
> 
> In configure.ac, zeitgeist is placed in the Python plugins. But the plugin is
> written in C. Is there a reason to place it in the Python plugins? If so, a
> comment explaining why would be useful.
> 
> ::: plugins/zeitgeist/Makefile.am
> @@ +23,3 @@
> +plugin_in_files += plugins/zeitgeist/zeitgeist.plugin.desktop.in
> +
> +appstream_in_files += plugins/zeitgeist/gedit-zeitgeist.metainfo.xml.in
> 
> See the Makefile.am for the git plugin, appstream_in_files is outside the
> if/else.

that's my bug. we should use inside ifs. I will fix tonight.
Comment 11 Igor Gnatenko 2014-06-20 18:03:00 UTC
Created attachment 278856 [details] [review]
plugins: add zeitgeist plugin from 'gedit' project
Comment 12 Igor Gnatenko 2014-06-20 18:03:49 UTC
Created attachment 278857 [details] [review]
plugins: fix installing appstream files

Reported-by: Sébastien Wilmet <swilmet@gnome.org>
Reference: https://bugzilla.gnome.org/show_bug.cgi?id=731799
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Comment 14 Sébastien Wilmet 2014-06-20 18:11:59 UTC
Review of attachment 278857 [details] [review]:

Thanks, it's better.
Comment 15 Sébastien Wilmet 2014-06-20 18:16:42 UTC
Review of attachment 278856 [details] [review]:

Only a small comment below, the rest looks good. Feel free to push after fixing the nitpick.

::: configure.ac
@@ +176,3 @@
 	fi
+
+

Nitpick: please remove those two newlines, it is not related to the patch, and newlines are not needed for ending a block. (And if a newline is better for readability, only one newline is enough.)
Comment 16 Igor Gnatenko 2014-06-20 18:27:28 UTC
Created attachment 278859 [details] [review]
plugins: add zeitgeist plugin from 'gedit' project

found bug. fixed. now it works fine.
Comment 19 Igor Gnatenko 2014-06-20 18:35:55 UTC
Thank you for review! Let me know if I added bugs :D but I hope I didn't added.
Comment 20 Sébastien Wilmet 2014-06-21 15:01:55 UTC
As a general rule, once a patch is merged it's better to remove the associated wip/ branch, otherwise we end up with tons of useless branches.