[icedtea-web/f21] Add MetaInfo file for gnome-software
Richard Hughes
rhughes at fedoraproject.org
Thu Aug 14 11:13:50 UTC 2014
commit 98e3b0d285bf1907c97404de3b355c9005a7fc0e
Author: Richard Hughes <richard at hughsie.com>
Date: Thu Aug 14 10:41:45 2014 +0100
Add MetaInfo file for gnome-software
.gitignore | 1 +
icedtea-web.metainfo.xml | 13 +++++++++++++
icedtea-web.spec | 13 ++++++++++++-
sources | 1 +
4 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 414bdcc..5584d9f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@
/icedtea-web-1.5pre04.tar.gz
/icedtea-web-1.5pre05.tar.gz
/icedtea-web-1.5.tar.gz
+/icedtea-web.metainfo.xml
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
diff --git a/sources b/sources
index cccca3e..20e9227 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
a6199869763291879f3a7382b114974c icedtea-web-1.5.tar.gz
+7a8f5f672d596fc2392f580c4603a8fb icedtea-web.metainfo.xml
More information about the scm-commits
mailing list