rhughes pushed to kbibtex (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:46:39 UTC 2015
>From 9ec10da0cba739c4b792b78bf63734257b350082 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:36:17 +0000
Subject: Add an AppData file for the software center
diff --git a/kbibtex.spec b/kbibtex.spec
index 70d3100..7a9129a 100644
--- a/kbibtex.spec
+++ b/kbibtex.spec
@@ -2,7 +2,7 @@
Name: kbibtex
Version: 0.5.1
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: A BibTeX editor for KDE
Group: Applications/Editors
@@ -46,6 +46,46 @@ make %{?_smp_mflags} -C %{_target_platform}
%install
make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
+# 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/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>kbibtex.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0+</project_license>
+ <name>KBibTeX</name>
+ <summary>BibTeX editor for KDE to edit bibliographies used with LaTeX</summary>
+ <description>
+ <p>
+ KBibTeX is a reference management application which can be used to collect TeX/LaTeX bibliographies and export them in various formats.
+ </p>
+ <ul>
+ <li>Preview bibliography entries in various formats (Source (BibTeX), Source (RIS), Wikipedia, standard (XML/XSLT), fancy (XML/XSLT), and abstract-only (XML/XSLT)). Additional preview styles become available when bibtex2html is installed.</li>
+ <li>Search for the bibliography entries data in online databases (e.g. Google Scholar, ACM, IEEE, arXiv, etc.)</li>
+ <li>Preview local or remote (online) resources, e.g. PDF files, linked in the BibTEX entry.</li>
+ <li>Find and merge duplicate entries in bibliography.</li>
+ <li>Integrate your bibliographies with LaTeX editors such as Kile and LyX.</li>
+ <li>Import your Zotero library.</li>
+ </ul>
+ </description>
+ <url type="homepage">http://home.gna.org/kbibtex/</url>
+ <url type="bugtracker">https://bugs.kde.org/enter_bug.cgi?format=guided&product=kbibtex</url>
+ <url type="help">http://docs.kde.org/development/en/extragear-office/kbibtex/index.html</url>
+ <screenshots>
+ <screenshot type="default">
+ <image>http://home.gna.org/kbibtex/screenshots/kbibtex-20110213.png</image>
+ </screenshot>
+ </screenshots>
+ <project_group>KDE</project_group>
+</component>
+EOF
%check
desktop-file-validate $RPM_BUILD_ROOT%{_kde4_datadir}/applications/kde4/%{name}.desktop
@@ -76,6 +116,7 @@ fi
%{_kde4_bindir}/%{name}
%{_libdir}/%{name}/lib%{name}*.so.*
%{_kde4_libdir}/kde4/%{name}part.so
+%{_kde4_datadir}/appdata/%{name}.appdata.xml
%{_kde4_datadir}/applications/kde4/%{name}.desktop
%{_kde4_appsdir}/%{name}/
%{_kde4_appsdir}/%{name}part/
@@ -91,6 +132,9 @@ fi
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.5.1-6
+- Add an AppData file for the software center
+
* Sun Aug 17 2014 Rex Dieter <rdieter at fedoraproject.org> 0.5.1-5
- BR: pkgconfig(QtWebKit), it's no longer pulled in implicitly by kdelibs-devel
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/kbibtex.git/commit/?h=master&id=9ec10da0cba739c4b792b78bf63734257b350082
More information about the scm-commits
mailing list