aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Oliver2021-05-29 04:15:28 +0200
committerLars Ingebrigtsen2021-05-29 04:15:28 +0200
commitee7752aac55468f06a71ea0e9ee0be0dff5b1f67 (patch)
tree8c87b6c84dafcd8ce736c81e34d5ad964719ac5c
parent459f89f3bcbe5fb1a160b2d215154669343b78d9 (diff)
downloademacs-ee7752aac55468f06a71ea0e9ee0be0dff5b1f67.tar.gz
emacs-ee7752aac55468f06a71ea0e9ee0be0dff5b1f67.zip
Rename emacs.appdata.xml to emacs.metainfo.xml and add more data
* Makefile.in: Replace "appdata" with "metainfo". This is the name currently recommended by the spec at <https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html>. * etc/emacs.metainfo.xml: Populate more fields, based on those available in https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html (bug#48662). Copyright-paperwork-exempt: yes
-rw-r--r--Makefile.in14
-rw-r--r--etc/emacs.metainfo.xml (renamed from etc/emacs.appdata.xml)25
2 files changed, 26 insertions, 13 deletions
diff --git a/Makefile.in b/Makefile.in
index 65eceb2a0c9..3facfa59a90 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -185,8 +185,8 @@ x_default_search_path=@x_default_search_path@
185# Where the etc/emacs.desktop file is to be installed. 185# Where the etc/emacs.desktop file is to be installed.
186desktopdir=$(datarootdir)/applications 186desktopdir=$(datarootdir)/applications
187 187
188# Where the etc/emacs.appdata.xml file is to be installed. 188# Where the etc/emacs.metainfo.xml file is to be installed.
189appdatadir=$(datarootdir)/metainfo 189metainfodir=$(datarootdir)/metainfo
190 190
191# Where the etc/emacs.service file is to be installed. 191# Where the etc/emacs.service file is to be installed.
192# The system value (typically /usr/lib/systemd/user) can be 192# The system value (typically /usr/lib/systemd/user) can be
@@ -721,11 +721,11 @@ install-etc:
721 ${srcdir}/etc/emacsclient.desktop > $${tmp}; \ 721 ${srcdir}/etc/emacsclient.desktop > $${tmp}; \
722 ${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/$${client_name}.desktop"; \ 722 ${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/$${client_name}.desktop"; \
723 rm -f $${tmp} 723 rm -f $${tmp}
724 umask 022; ${MKDIR_P} "$(DESTDIR)${appdatadir}" 724 umask 022; ${MKDIR_P} "$(DESTDIR)${metainfodir}"
725 tmp=etc/emacs.tmpappdata; rm -f $${tmp}; \ 725 tmp=etc/emacs.tmpmetainfo; rm -f $${tmp}; \
726 sed -e "s/emacs\.desktop/${EMACS_NAME}.desktop/" \ 726 sed -e "s/emacs\.desktop/${EMACS_NAME}.desktop/" \
727 ${srcdir}/etc/emacs.appdata.xml > $${tmp}; \ 727 ${srcdir}/etc/emacs.metainfo.xml > $${tmp}; \
728 ${INSTALL_DATA} $${tmp} "$(DESTDIR)${appdatadir}/${EMACS_NAME}.appdata.xml"; \ 728 ${INSTALL_DATA} $${tmp} "$(DESTDIR)${metainfodir}/${EMACS_NAME}.metainfo.xml"; \
729 rm -f $${tmp} 729 rm -f $${tmp}
730 umask 022; $(MKDIR_P) "$(DESTDIR)$(systemdunitdir)" 730 umask 022; $(MKDIR_P) "$(DESTDIR)$(systemdunitdir)"
731 tmp=etc/emacs.tmpservice; rm -f $${tmp}; \ 731 tmp=etc/emacs.tmpservice; rm -f $${tmp}; \
@@ -811,7 +811,7 @@ uninstall: uninstall-$(NTDIR) uninstall-doc
811 "hicolor/scalable/mimetypes/${EMACS_NAME}-document23.svg"; \ 811 "hicolor/scalable/mimetypes/${EMACS_NAME}-document23.svg"; \
812 fi) 812 fi)
813 -rm -f "$(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop" 813 -rm -f "$(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop"
814 -rm -f "$(DESTDIR)${appdatadir}/${EMACS_NAME}.appdata.xml" 814 -rm -f "$(DESTDIR)${metainfodir}/${EMACS_NAME}.metainfo.xml"
815 -rm -f "$(DESTDIR)$(systemdunitdir)/${EMACS_NAME}.service" 815 -rm -f "$(DESTDIR)$(systemdunitdir)/${EMACS_NAME}.service"
816 ifneq (,$(use_gamedir)) 816 ifneq (,$(use_gamedir))
817 for file in snake-scores tetris-scores; do \ 817 for file in snake-scores tetris-scores; do \
diff --git a/etc/emacs.appdata.xml b/etc/emacs.metainfo.xml
index ca6233a59ae..7467b88e736 100644
--- a/etc/emacs.appdata.xml
+++ b/etc/emacs.metainfo.xml
@@ -3,9 +3,9 @@
3<component type="desktop-application"> 3<component type="desktop-application">
4 <id>org.gnu.emacs</id> 4 <id>org.gnu.emacs</id>
5 <metadata_license>GFDL-1.3+</metadata_license> 5 <metadata_license>GFDL-1.3+</metadata_license>
6 <project_license>GPL-3.0+ and GFDL-1.3+</project_license>
7 <name>GNU Emacs</name> 6 <name>GNU Emacs</name>
8 <summary>An extensible text editor</summary> 7 <summary>An extensible text editor</summary>
8 <icon type="remote" width="128" height="128">https://www.gnu.org/software/emacs/images/emacs.png</icon>
9 <description> 9 <description>
10 <p> 10 <p>
11 GNU Emacs is an extensible, customizable text editor - and more. 11 GNU Emacs is an extensible, customizable text editor - and more.
@@ -23,13 +23,26 @@
23 interface, calendar, and more</li> 23 interface, calendar, and more</li>
24 </ul> 24 </ul>
25 </description> 25 </description>
26 <categories>
27 <category>Development</category>
28 <category>TextEditor</category>
29 </categories>
30 <url type="homepage">https://www.gnu.org/software/emacs</url>
31 <url type="bugtracker">https://debbugs.gnu.org/</url>
32 <url type="faq">https://www.gnu.org/software/emacs/manual/html_mono/efaq.html</url>
33 <url type="help">https://www.gnu.org/software/emacs/documentation.html</url>
34 <url type="donation">https://my.fsf.org/donate/</url>
35 <url type="contact">https://lists.gnu.org/mailman/listinfo/emacs-devel/</url>
36 <launchable type="desktop-id">emacs.desktop</launchable>
37 <launchable type="service">emacs.service</launchable>
38 <project_group>GNU</project_group>
39 <project_license>GPL-3.0+ and GFDL-1.3+</project_license>
40 <developer_name>Free Software Foundation</developer_name>
26 <screenshots> 41 <screenshots>
27 <screenshot type="default"> 42 <screenshot type="default">
28 <image type="source" width="632" height="354">https://www.gnu.org/software/emacs/images/appdata-26.png</image> 43 <image type="source" width="632" height="354">https://www.gnu.org/software/emacs/images/appdata-26.png</image>
29 </screenshot> 44 <caption>Editing a Lisp program whilst viewing the Emacs manual.</caption>
45 </screenshot>
30 </screenshots> 46 </screenshots>
31 <launchable type="desktop-id">emacs</launchable>
32 <url type="homepage">https://www.gnu.org/software/emacs</url>
33 <update_contact>emacs-devel_AT_gnu.org</update_contact> 47 <update_contact>emacs-devel_AT_gnu.org</update_contact>
34 <project_group>GNU</project_group>
35</component> 48</component>