[icedtea-web] Add MetaInfo file for gnome-software
Richard Hughes
rhughes at fedoraproject.org
Thu Aug 14 10:40:57 UTC 2014
commit 11cd563eed5518a7ff06df04ea7fee5a4b0b64b7
Author: Richard Hughes <richard at hughsie.com>
Date: Thu Aug 14 10:41:45 2014 +0100
Add MetaInfo file for gnome-software
icedtea-web.metainfo.xml | 13 +++++++++++++
icedtea-web.spec | 13 ++++++++++++-
2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/icedtea-web.metainfo.xml b/icedtea-web.metainfo.xml
new file mode 100644
index 0000000..454f7dd
--- /dev/null
+++ b/icedtea-web.metainfo.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="addon">
+ <id>icedtea-web</id>
+ <extends>epiphany.desktop</extends>
+ <extends>firefox.desktop</extends>
+ <extends>midori.desktop</extends>
+ <name>Java</name>
+ <summary>Browser plug-in and Web Start implementation from OpenJDK</summary>
+ <url type="homepage">http://icedtea.classpath.org/wiki/IcedTea-Web</url>
+ <metadata_license>CC0-1.0</metadata_license>
+ <updatecontact>jvanek_at_redhat.com</updatecontact>
+</component>
diff --git a/icedtea-web.spec b/icedtea-web.spec
index ff71df2..b6946da 100644
--- a/icedtea-web.spec
+++ b/icedtea-web.spec
@@ -12,13 +12,14 @@
Name: icedtea-web
Version: 1.5
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Additional Java components for OpenJDK - Java browser plug-in and Web Start implementation
Group: Applications/Internet
License: LGPLv2+ and GPLv2 with exceptions
URL: http://icedtea.classpath.org/wiki/IcedTea-Web
Source0: http://icedtea.classpath.org/download/source/%{name}-%{version}.tar.gz
+Source1: icedtea-web.metainfo.xml
Patch0: DElocalizationforIcedTea-Web1.5-0001.patch
# For OpenJDK8 compatiblity
@@ -37,6 +38,7 @@ BuildRequires: autoconf
BuildRequires: automake
BuildRequires: xulrunner-devel
BuildRequires: junit
+BuildRequires: libappstream-glib
# new in 1.5 to have clean up for malformed XMLs
BuildRequires: tagsoup
@@ -114,8 +116,12 @@ desktop-file-install --vendor ''\
--dir $RPM_BUILD_ROOT%{_datadir}/applications policyeditor.desktop
ln -s %{_mandir}/man1/javaws-itweb.1 $RPM_BUILD_ROOT/%{_mandir}/man1/icedtea-web.1
+# install MetaInfo file for firefox
+DESTDIR=%{buildroot} appstream-util install %{SOURCE1}
+
%check
make check
+appstream-util validate $RPM_BUILD_ROOT/%{_datadir}/appdata/*.metainfo.xml
%post
alternatives \
@@ -148,6 +154,7 @@ exit 0
%{_datadir}/icedtea-web
%{_datadir}/man/man1/*
%{_datadir}/pixmaps/*
+%{_datadir}/appdata/*.metainfo.xml
%doc NEWS README COPYING
%files javadoc
@@ -156,6 +163,10 @@ exit 0
%doc COPYING
%changelog
+* Thu Aug 14 2014 Richard Hughes <richard at hughsie.com> - 1.5-4
+- Add MetaInfo file to show an addon in GNOME Software.
+- See http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1907 for upstream.
+
* Mon Jun 09 2014 Omair Majid <omajid at redhat.com> - 1.5-3
- Require junit instead of juni4
- Build against OpenJDK 7 explicitly
More information about the scm-commits
mailing list