unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48662: Freshen AppStream metadata
@ 2021-05-25 22:44 Peter Oliver
  2021-05-26  2:06 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Oliver @ 2021-05-25 22:44 UTC (permalink / raw)
  To: 48662

Attached are two patches to update and expand the AppStream metadata included with Emacs.

-- 
Peter Oliver





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48662: Freshen AppStream metadata
  2021-05-25 22:44 bug#48662: Freshen AppStream metadata Peter Oliver
@ 2021-05-26  2:06 ` Lars Ingebrigtsen
  2021-05-26 14:38   ` Peter Oliver
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-26  2:06 UTC (permalink / raw)
  To: Peter Oliver; +Cc: 48662

Peter Oliver <p.d.oliver@mavit.org.uk> writes:

> Attached are two patches to update and expand the AppStream metadata
> included with Emacs.

If there were patches included, they didn't make it to the issue
tracker.  Can you re-send them?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48662: Freshen AppStream metadata
  2021-05-26  2:06 ` Lars Ingebrigtsen
@ 2021-05-26 14:38   ` Peter Oliver
  2021-05-26 21:59     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Oliver @ 2021-05-26 14:38 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 48662

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

On Wed, 26 May 2021, Lars Ingebrigtsen wrote:

> Peter Oliver <p.d.oliver@mavit.org.uk> writes:
>
>> Attached are two patches to update and expand the AppStream metadata
>> included with Emacs.
>
> If there were patches included, they didn't make it to the issue
> tracker.  Can you re-send them?

Sorry, here they are.

-- 
Peter Oliver

[-- Attachment #2: Type: text/plain, Size: 2643 bytes --]

From ce254a4a4ca1dc9fad63ec5b0ef2ca5429d0c85e Mon Sep 17 00:00:00 2001
From: Peter Oliver <git@mavit.org.uk>
Date: Tue, 25 May 2021 22:43:43 +0100
Subject: [PATCH 1/2] Rename emacs.appdata.xml to emacs.metainfo.xml

This is the name currently recommended by the spec at
<https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html>.

* Makefile.in: Replace "appdata" with "metainfo".
---
 Makefile.in                                   | 14 +++++++-------
 etc/{emacs.appdata.xml => emacs.metainfo.xml} |  0
 2 files changed, 7 insertions(+), 7 deletions(-)
 rename etc/{emacs.appdata.xml => emacs.metainfo.xml} (100%)

diff --git a/Makefile.in b/Makefile.in
index 65eceb2a0c..3facfa59a9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -185,8 +185,8 @@ x_default_search_path=
 # Where the etc/emacs.desktop file is to be installed.
 desktopdir=$(datarootdir)/applications
 
-# Where the etc/emacs.appdata.xml file is to be installed.
-appdatadir=$(datarootdir)/metainfo
+# Where the etc/emacs.metainfo.xml file is to be installed.
+metainfodir=$(datarootdir)/metainfo
 
 # Where the etc/emacs.service file is to be installed.
 # The system value (typically /usr/lib/systemd/user) can be
@@ -721,11 +721,11 @@ install-etc:
 	  ${srcdir}/etc/emacsclient.desktop > $${tmp}; \
 	${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/$${client_name}.desktop"; \
 	rm -f $${tmp}
-	umask 022; ${MKDIR_P} "$(DESTDIR)${appdatadir}"
-	tmp=etc/emacs.tmpappdata; rm -f $${tmp}; \
+	umask 022; ${MKDIR_P} "$(DESTDIR)${metainfodir}"
+	tmp=etc/emacs.tmpmetainfo; rm -f $${tmp}; \
 	sed -e "s/emacs\.desktop/${EMACS_NAME}.desktop/" \
-	  ${srcdir}/etc/emacs.appdata.xml > $${tmp}; \
-	${INSTALL_DATA} $${tmp} "$(DESTDIR)${appdatadir}/${EMACS_NAME}.appdata.xml"; \
+	  ${srcdir}/etc/emacs.metainfo.xml > $${tmp}; \
+	${INSTALL_DATA} $${tmp} "$(DESTDIR)${metainfodir}/${EMACS_NAME}.metainfo.xml"; \
 	rm -f $${tmp}
 	umask 022; $(MKDIR_P) "$(DESTDIR)$(systemdunitdir)"
 	tmp=etc/emacs.tmpservice; rm -f $${tmp}; \
@@ -811,7 +811,7 @@ uninstall:
 	     "hicolor/scalable/mimetypes/${EMACS_NAME}-document23.svg"; \
 	fi)
 	-rm -f "$(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop"
-	-rm -f "$(DESTDIR)${appdatadir}/${EMACS_NAME}.appdata.xml"
+	-rm -f "$(DESTDIR)${metainfodir}/${EMACS_NAME}.metainfo.xml"
 	-rm -f "$(DESTDIR)$(systemdunitdir)/${EMACS_NAME}.service"
   ifneq (,$(use_gamedir))
 	for file in snake-scores tetris-scores; do \
diff --git a/etc/emacs.appdata.xml b/etc/emacs.metainfo.xml
similarity index 100%
rename from etc/emacs.appdata.xml
rename to etc/emacs.metainfo.xml
-- 
2.31.1


[-- Attachment #3: Type: text/plain, Size: 2645 bytes --]

From 5204de22094fb324da5abe9455b1a82a759dc4a8 Mon Sep 17 00:00:00 2001
From: Peter Oliver <git@mavit.org.uk>
Date: Tue, 25 May 2021 23:18:37 +0100
Subject: [PATCH 2/2] Expand metainfo

* etc/emacs.metainfo.xml: Populate more fields, based on those
available in
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html.
---
 etc/emacs.metainfo.xml | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/etc/emacs.metainfo.xml b/etc/emacs.metainfo.xml
index ca6233a59a..7467b88e73 100644
--- a/etc/emacs.metainfo.xml
+++ b/etc/emacs.metainfo.xml
@@ -3,9 +3,9 @@
 <component type="desktop-application">
  <id>org.gnu.emacs</id>
  <metadata_license>GFDL-1.3+</metadata_license>
- <project_license>GPL-3.0+ and GFDL-1.3+</project_license>
  <name>GNU Emacs</name>
  <summary>An extensible text editor</summary>
+ <icon type="remote" width="128" height="128">https://www.gnu.org/software/emacs/images/emacs.png</icon>
  <description>
   <p>
    GNU Emacs is an extensible, customizable text editor - and more.
@@ -23,13 +23,26 @@
    interface, calendar, and more</li>
   </ul>
  </description>
+ <categories>
+   <category>Development</category>
+   <category>TextEditor</category>
+ </categories>
+ <url type="homepage">https://www.gnu.org/software/emacs</url>
+ <url type="bugtracker">https://debbugs.gnu.org/</url>
+ <url type="faq">https://www.gnu.org/software/emacs/manual/html_mono/efaq.html</url>
+ <url type="help">https://www.gnu.org/software/emacs/documentation.html</url>
+ <url type="donation">https://my.fsf.org/donate/</url>
+ <url type="contact">https://lists.gnu.org/mailman/listinfo/emacs-devel/</url>
+ <launchable type="desktop-id">emacs.desktop</launchable>
+ <launchable type="service">emacs.service</launchable>
+ <project_group>GNU</project_group>
+ <project_license>GPL-3.0+ and GFDL-1.3+</project_license>
+ <developer_name>Free Software Foundation</developer_name>
  <screenshots>
   <screenshot type="default">
-  <image type="source" width="632" height="354">https://www.gnu.org/software/emacs/images/appdata-26.png</image>
- </screenshot>
+    <image type="source" width="632" height="354">https://www.gnu.org/software/emacs/images/appdata-26.png</image>
+    <caption>Editing a Lisp program whilst viewing the Emacs manual.</caption>
+  </screenshot>
  </screenshots>
- <launchable type="desktop-id">emacs</launchable>
- <url type="homepage">https://www.gnu.org/software/emacs</url>
  <update_contact>emacs-devel_AT_gnu.org</update_contact>
- <project_group>GNU</project_group>
 </component>
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#48662: Freshen AppStream metadata
  2021-05-26 14:38   ` Peter Oliver
@ 2021-05-26 21:59     ` Lars Ingebrigtsen
  2021-05-28 12:30       ` Peter Oliver
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-26 21:59 UTC (permalink / raw)
  To: Peter Oliver; +Cc: 48662

Peter Oliver <p.d.oliver@mavit.org.uk> writes:

>> If there were patches included, they didn't make it to the issue
>> tracker.  Can you re-send them?
>
> Sorry, here they are.

Thanks, but is this a patch for Emacs or for something else?

> diff --git a/etc/emacs.metainfo.xml b/etc/emacs.metainfo.xml
> index ca6233a59a..7467b88e73 100644
> --- a/etc/emacs.metainfo.xml
> +++ b/etc/emacs.metainfo.xml

larsi@xo:~/src/emacs$ find . -name '*metainfo*'
larsi@xo:~/src/emacs$ 

There seems to be no file called anything with "metainfo" in Emacs -- is
this a file added by some OS distribution, perhaps?  In which case this
patch should be sent to that distribution instead.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48662: Freshen AppStream metadata
  2021-05-26 21:59     ` Lars Ingebrigtsen
@ 2021-05-28 12:30       ` Peter Oliver
  2021-05-29  2:16         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Oliver @ 2021-05-28 12:30 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 48662

On Wed, 26 May 2021, Lars Ingebrigtsen wrote:

> Thanks, but is this a patch for Emacs or for something else?

> There seems to be no file called anything with "metainfo" in Emacs

There are two patches.  The first patch renames emacs.appdata.xml to emacs.metainfo.xml (because the *.appdata.xml naming scheme is deprecated), and the second adds more metadata to this file.

-- 
Peter Oliver





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48662: Freshen AppStream metadata
  2021-05-28 12:30       ` Peter Oliver
@ 2021-05-29  2:16         ` Lars Ingebrigtsen
  2021-06-01 18:41           ` Peter Oliver
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-29  2:16 UTC (permalink / raw)
  To: Peter Oliver; +Cc: 48662

Peter Oliver <p.d.oliver@mavit.org.uk> writes:

> There are two patches.  The first patch renames emacs.appdata.xml to
> emacs.metainfo.xml (because the *.appdata.xml naming scheme is
> deprecated), and the second adds more metadata to this file.

Sorry; I misread the patches.  Applied now to Emacs 28.

This change was small enough to apply without assigning copyright to the
FSF, but for future patches you want to submit, it might make sense to
get the paperwork started now, so that subsequent patches can be applied
speedily. Would you be willing to sign such paperwork?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#48662: Freshen AppStream metadata
  2021-05-29  2:16         ` Lars Ingebrigtsen
@ 2021-06-01 18:41           ` Peter Oliver
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Oliver @ 2021-06-01 18:41 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 48662

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

On Sat, 29 May 2021, Lars Ingebrigtsen wrote:

> This change was small enough to apply without assigning copyright to the
> FSF, but for future patches you want to submit, it might make sense to
> get the paperwork started now, so that subsequent patches can be applied
> speedily. Would you be willing to sign such paperwork?

I’ve already requested the paperwork, but am waiting to hear back.  Thanks.

-- 
Peter Oliver

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-06-01 18:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 22:44 bug#48662: Freshen AppStream metadata Peter Oliver
2021-05-26  2:06 ` Lars Ingebrigtsen
2021-05-26 14:38   ` Peter Oliver
2021-05-26 21:59     ` Lars Ingebrigtsen
2021-05-28 12:30       ` Peter Oliver
2021-05-29  2:16         ` Lars Ingebrigtsen
2021-06-01 18:41           ` Peter Oliver

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).