[okteta] include appdata

Rex Dieter rdieter at fedoraproject.org
Tue Oct 14 11:57:22 UTC 2014


commit 6f2903e90a08d821d1e4ff16122f6852ce4f2fc4
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Tue Oct 14 06:57:15 2014 -0500

    include appdata

 okteta.spec |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/okteta.spec b/okteta.spec
index b0ccfb7..6d5c24b 100644
--- a/okteta.spec
+++ b/okteta.spec
@@ -15,6 +15,9 @@ Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar
 
 BuildRequires:  desktop-file-utils
 BuildRequires:  kdelibs4-devel >= %{version}
+%if 0%{?fedora} > 19
+BuildRequires: libappstream-glib
+%endif
 
 Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
 Conflicts:      kdesdk-common < 4.10.80
@@ -60,6 +63,7 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 %find_lang okteta --with-kde --without-mo
 
 %check
+appstream-util validate-relax --nonet %{buildroot}%{_kde4_datadir}/appdata/%{name}.appdata.xml ||:
 desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop
 
 
@@ -94,6 +98,7 @@ fi
 %{_kde4_libdir}/kde4/libkbytearrayedit.so
 %{_kde4_datadir}/kde4/services/kbytearrayedit.desktop
 %{_kde4_datadir}/config.kcfg/structviewpreferences.kcfg
+%{_kde4_datadir}/appdata/%{name}.appdata.xml
 
 %post libs -p /sbin/ldconfig
 %postun libs -p /sbin/ldconfig


More information about the scm-commits mailing list