rhughes pushed to freemedforms (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:40:17 UTC 2015
>From 35dee8b20da4a30c028e4eafb118ff02d30f8f30 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:31:26 +0000
Subject: Add an AppData file for the software center
diff --git a/freemedforms.spec b/freemedforms.spec
index 03179f1..313a32e 100644
--- a/freemedforms.spec
+++ b/freemedforms.spec
@@ -2,7 +2,7 @@
Name: freemedforms
Version: 0.9.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: The freemedforms application suite meta package
License: GPLv3+ and LGPLv2
@@ -250,6 +250,94 @@ sed -r -i "/Version/d" ${RPM_BUILD_ROOT}%{_datadir}/applications/freediams.deskt
desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/freediams.desktop
+# Register as an application to be visible in the software center
+#
+# NOTE: It would be *awesome* if this file was maintained by the upstream
+# project, translated and installed into the right place during `make install`.
+#
+# See http://www.freedesktop.org/software/appstream/docs/ for more details.
+#
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/freediams.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<application>
+ <id type="desktop">freediams.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>Freediams</name>
+ <summary>The pharmaceutical prescription assistant</summary>
+ <description>
+ <p>
+ FreeDiams prescriber is the result of FreeMedForms prescriber plugins built
+ into a standalone application.
+ FreeDiams is a multi-platform (MacOS, Linux, FreeBSD, Windows), free and
+ open source released under the GPLv3 license.
+ This is part of the freemedforms suite of applications.
+ </p>
+ <p>
+ It is mainly developed by medical doctors and is intended for use by these same
+ professionals.
+ It can be used alone to prescribe and / or test drug interactions within a
+ prescription.
+ It can be linked to any application thanks to its command line parameters.
+ </p>
+ <p>
+ FreeDiams can manage multiple drugs databases. Some drugs databases are already
+ available:
+ </p>
+ <ul>
+ <li>French (sources: AFSSAPS)</li>
+ <li>Canadian (sources: HCDPD)</li>
+ <li>USA (sources: FDA)</li>
+ <li>South African (sources: AEPI)</li>
+ </ul>
+ <p>
+ The interactions database (source: AFSSAPS) give access to many informations:
+ </p>
+ <ul>
+ <li>Interactions by themselves</li>
+ <li>Risk level</li>
+ <li>Nature of the risk</li>
+ <li>Management of the interaction</li>
+ </ul>
+ </description>
+ <screenshots>
+ <screenshot type="default">http://freemedforms.com/_media/shots/freemedforms/060/presentation/multidrugs-en.png</screenshot>
+ </screenshots>
+ <url type="homepage">http://freemedforms.com/en/start</url>
+ <updatecontact>eric.maeker at gmail.com</updatecontact>
+</application>
+EOF
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<application>
+ <id type="desktop">freemedforms.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <name>FreeMedForms EMR</name>
+ <summary>The FreeMedForms Electronic Medical Record Manager</summary>
+ <description>
+ <p>
+ FreeMedForms aims to be a open Electronic Medical Record Manager.
+ FreeMedForms is also a lot of derivatives sub-project, which are
+ just standalone compilation of FreeMedForms plugins.
+ </p>
+ <p>
+ This project is a free and open source project. A community grows up
+ around it. FreeMedForms and derivatives is released under the terms
+ of the GPLv3 License. Some parts of the code are LGPL v2.1.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default">http://freemedforms.com/_media/shots/freemedforms/080/presentation/generalui-fr.png</screenshot>
+ <screenshot>http://freemedforms.com/_media/shots/freemedforms/080/presentation/patientfiles-fr.png</screenshot>
+ <screenshot>http://freemedforms.com/_media/shots/freemedforms/060/presentation/calendar-en.png</screenshot>
+ </screenshots>
+ <url type="homepage">http://freemedforms.com/en/start</url>
+ <updatecontact>eric.maeker at gmail.com</updatecontact>
+</application>
+EOF
+
# Remove packagehelpers part
rm -fvr $RPM_BUILD_ROOT/%{_datadir}/%{name}/package_helpers/
@@ -262,6 +350,7 @@ rm -fvr $RPM_BUILD_ROOT/%{_datadir}/%{name}/package_helpers/
%{_libdir}/%{name}/*.so
%{_libdir}/%{name}/*pluginspec
%dir %{_datadir}/%{name}/
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.svg
%{_mandir}/man1/%{name}.*
@@ -295,6 +384,7 @@ rm -fvr $RPM_BUILD_ROOT/%{_datadir}/%{name}/package_helpers/
%files -n freediams
%doc COPYING.txt README.txt
%{_bindir}/freediams
+%{_datadir}/appdata/freediams.appdata.xml
%{_datadir}/applications/freediams.desktop
%{_datadir}/pixmaps/freediams.svg
%{_mandir}/man1/freediams.*
@@ -311,6 +401,9 @@ rm -fvr $RPM_BUILD_ROOT/%{_datadir}/%{name}/package_helpers/
%{_docdir}/%{projectname}-project/freediams/fr
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.9.4-2
+- Add an AppData file for the software center
+
* Tue Sep 16 2014 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.9.4-1
- Update to latest upstream release
- Merge freediams to this spec too
@@ -389,4 +482,4 @@ rm -fvr $RPM_BUILD_ROOT/%{_datadir}/%{name}/package_helpers/
- Initial rpm build
- Based on the spec used for OpenSUSE maintained by Sascha Manns.
-
+
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/freemedforms.git/commit/?h=master&id=35dee8b20da4a30c028e4eafb118ff02d30f8f30
More information about the scm-commits
mailing list