From e00695c3ff0f479d76fbfae039a51d5743386778 Mon Sep 17 00:00:00 2001 From: Sean Davis Date: Sun, 27 Jul 2014 19:55:15 -0400 Subject: [PATCH] Add AppData files --- MANIFEST.in | 1 + data/appdata/mugshot.appdata.xml.in | 89 +++++++++++++++++++++++++++++ po/POTFILES.in | 3 + po/mugshot.pot | 61 +++++++++++++++++++- setup.py | 15 ++++- 5 files changed, 167 insertions(+), 2 deletions(-) create mode 100644 data/appdata/mugshot.appdata.xml.in diff --git a/MANIFEST.in b/MANIFEST.in index 4e34a4d..2cdbe6c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,7 @@ include AUTHORS COPYING mugshot.1 mugshot.desktop.in README include bin/* recursive-include data *.svg *.ui *.xml +exclude data/appdata/*.xml recursive-include mugshot *.py recursive-include mugshot_lib *.py recursive-include po *.po *.in diff --git a/data/appdata/mugshot.appdata.xml.in b/data/appdata/mugshot.appdata.xml.in new file mode 100644 index 0000000..f28b49b --- /dev/null +++ b/data/appdata/mugshot.appdata.xml.in @@ -0,0 +1,89 @@ + + + + mugshot.desktop + CC0-1.0 + GPL-3.0+ + Mugshot + <_summary>Lightweight user configuration + + + <_p> + Mugshot enables users to easily updates personal contact information. + With Mugshot, users are able to: + +
    + <_li>Set the account photo displayed at login and optionally synchronize + this photo with their Pidgin buddy icon + <_li>Set account details stored in /etc/passwd (usable with the finger + command) and optionally synchronize with their LibreOffice contact + information +
+
+ + + http://screenshots.smdavis.us/mugshot/mugshot.png + http://screenshots.smdavis.us/mugshot/mugshot-pidgin-sync.png + + + https://launchpad.net/mugshot/ + https://bugs.launchpad.net/mugshot/ + http://wiki.smdavis.us/doku.php?id=mugshot-docs + + smd-seandavis@ubuntu.com + + + mugshot + + + + + + <_p>This stable release improves the user configuration (chfn) backend + and prevents Mugshot from locking up. Mugshot also no longer depends + on AccountsService, but can leverage it to better support some systems. + A critical bug that prevented some users from starting Mugshot was also + addressed. + + + + + + + <_p>This stable release improved AccountsService functionality and + overall usability. Users without admin rights can no longer attempt to + change their name, and initials are automatically populated when the + name is entered. + + + + + + + <_p>This stable release fixed a crash that occured when saving user + details in a non-English locale. This release also included an updated + translation template and new translations. + + + + + + + <_p>This stable release fixed several bugs related to profile image + management, introduced an improved password dialog, and transitioned to + using GLib to more reliably determine user and environment settings. + + + + + + + <_p>The first stable release introduced simplified packaging, replaced + the Help functionality with the online help documents, and transitioned + to using Python 3. + + + + + +
diff --git a/po/POTFILES.in b/po/POTFILES.in index 2390980..c3f9861 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -31,3 +31,6 @@ mugshot_lib/__init__.py mugshot_lib/helpers.py mugshot_lib/SudoDialog.py mugshot_lib/Window.py + +# XML Files +[type: gettext/xml]data/appdata/mugshot.appdata.xml.in \ No newline at end of file diff --git a/po/mugshot.pot b/po/mugshot.pot index d9d8ca5..3a3b6a6 100644 --- a/po/mugshot.pot +++ b/po/mugshot.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-05-14 20:43-0400\n" +"POT-Creation-Date: 2014-07-27 19:46-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -193,3 +193,62 @@ msgstr "" #: ../mugshot_lib/SudoDialog.py:121 msgid "Password:" msgstr "" + +#: ../data/appdata/mugshot.appdata.xml.in.h:1 +msgid "Lightweight user configuration" +msgstr "" + +#: ../data/appdata/mugshot.appdata.xml.in.h:2 +msgid "" +"Mugshot enables users to easily updates personal contact information. With " +"Mugshot, users are able to:" +msgstr "" + +#: ../data/appdata/mugshot.appdata.xml.in.h:3 +msgid "" +"Set the account photo displayed at login and optionally synchronize this " +"photo with their Pidgin buddy icon" +msgstr "" + +#: ../data/appdata/mugshot.appdata.xml.in.h:4 +msgid "" +"Set account details stored in /etc/passwd (usable with the finger command) " +"and optionally synchronize with their LibreOffice contact information" +msgstr "" + +#: ../data/appdata/mugshot.appdata.xml.in.h:5 +msgid "" +"This stable release improves the user configuration (chfn) backend and " +"prevents Mugshot from locking up. Mugshot also no longer depends on " +"AccountsService, but can leverage it to better support some systems. A " +"critical bug that prevented some users from starting Mugshot was also " +"addressed." +msgstr "" + +#: ../data/appdata/mugshot.appdata.xml.in.h:6 +msgid "" +"This stable release improved AccountsService functionality and overall " +"usability. Users without admin rights can no longer attempt to change their " +"name, and initials are automatically populated when the name is entered." +msgstr "" + +#: ../data/appdata/mugshot.appdata.xml.in.h:7 +msgid "" +"This stable release fixed a crash that occured when saving user details in a " +"non-English locale. This release also included an updated translation " +"template and new translations." +msgstr "" + +#: ../data/appdata/mugshot.appdata.xml.in.h:8 +msgid "" +"This stable release fixed several bugs related to profile image management, " +"introduced an improved password dialog, and transitioned to using GLib to " +"more reliably determine user and environment settings." +msgstr "" + +#: ../data/appdata/mugshot.appdata.xml.in.h:9 +msgid "" +"The first stable release introduced simplified packaging, replaced the Help " +"functionality with the online help documents, and transitioned to using " +"Python 3." +msgstr "" diff --git a/setup.py b/setup.py index 07cae05..0c20751 100644 --- a/setup.py +++ b/setup.py @@ -17,6 +17,7 @@ import os import sys +import subprocess try: import DistUtilsExtra.auto @@ -118,6 +119,17 @@ def update_desktop_file(filename, script_path): sys.exit(1) +def write_appdata_file(filename_in): + filename_out = filename_in.rstrip('.in') + cmd = ["intltool-merge", "-x", "-d", "po", filename_in, filename_out] + print(" ".join(cmd)) + subprocess.call(cmd, shell=False) + + +# Update AppData with latest translations first. +write_appdata_file("data/appdata/mugshot.appdata.xml.in") + + class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto): """Command Class to install and update the directory.""" def run(self): @@ -181,6 +193,7 @@ DistUtilsExtra.auto.setup( 'to easily set profile image and user details for your ' 'user profile and any supported applications.', url='https://launchpad.net/mugshot', - data_files=[('share/man/man1', ['mugshot.1'])], + data_files=[('share/man/man1', ['mugshot.1']), + ('share/appdata', ['data/appdata/mugshot.appdata.xml'])], cmdclass={'install': InstallAndUpdateDataDirectory} )