rhughes pushed to glade3 (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:41:37 UTC 2015
>From 32f1103736f68274c4bc9bb017d380feadf0f007 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:32:21 +0000
Subject: Add an AppData file for the software center
diff --git a/glade3.spec b/glade3.spec
index e810929..263f175 100644
--- a/glade3.spec
+++ b/glade3.spec
@@ -1,7 +1,7 @@
Summary: User Interface Designer for GTK+ 2
Name: glade3
Version: 3.8.5
-Release: 3%{?dist}
+Release: 4%{?dist}
Epoch: 2
License: GPLv2+
Group: Development/Tools
@@ -105,6 +105,45 @@ make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
find $RPM_BUILD_ROOT -type f -name "*.a" -delete
+# 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/glade-3.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<!--
+UpstreamURL: https://git.gnome.org/browse/glade/plain/data/glade.appdata.xml.in
+-->
+<application>
+ <id type="desktop">glade-3.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <description>
+ <p>
+ Glade is a tool providing quick and easy development of user interfaces for the
+ GTK+ toolkit and the GNOME desktop environment.
+ </p>
+ <p>
+ The user interfaces designed in Glade are saved as XML, and can be loaded
+ dynamically into applications by using GtkBuilder.
+ Those files can be used in many programming languages including C, C++, C#, Vala,
+ Java, Perl, Python, and others.
+ Glade's ability to connect widget signals with corresponding functions makes the
+ integration of user interfaces into code even simpler.
+ </p>
+ </description>
+ <url type="homepage">http://glade.gnome.org/</url>
+ <screenshots>
+ <screenshot type="default">http://glade.gnome.org/images/glade-main-page.png</screenshot>
+ </screenshots>
+ <updatecontact>glade-devel_at_lists.ximian.com</updatecontact>
+</application>
+EOF
+
%find_lang glade3
# Rpath
@@ -142,6 +181,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%doc README
%doc TODO
%{_bindir}/glade-3
+%{_datadir}/appdata/glade-3.appdata.xml
%{_datadir}/applications/glade-3.desktop
%{_datadir}/icons/hicolor/16x16/apps/glade-3.png
%{_datadir}/icons/hicolor/22x22/apps/glade-3.png
@@ -182,6 +222,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_includedir}/libgladeui-1.0/gladeui
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2:3.8.5-4
+- Add an AppData file for the software center
+
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2:3.8.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/glade3.git/commit/?h=master&id=32f1103736f68274c4bc9bb017d380feadf0f007
More information about the scm-commits
mailing list