[vim-command-t/f21] Add Gnome Software plug-in AppData (rhbz#1110300).

Vít Ondruch vondruch at fedoraproject.org
Mon Aug 11 13:57:36 UTC 2014


commit dddc59c36c2e4768fc8ea0a65990611604deb9cc
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon Aug 11 15:55:31 2014 +0200

    Add Gnome Software plug-in AppData (rhbz#1110300).

 vim-command-t.spec |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/vim-command-t.spec b/vim-command-t.spec
index 8d77d3e..39e1d3d 100644
--- a/vim-command-t.spec
+++ b/vim-command-t.spec
@@ -4,6 +4,8 @@
 
 %global commandt_so_dir %{ruby_vendorarchdir}/command-t
 
+%global appdata_dir %{_datadir}/appdata
+
 Name: vim-command-t
 Version: 1.10
 Release: 1%{?dist}
@@ -16,6 +18,9 @@ URL: https://wincent.com/products/command-t
 # git clone git://git.wincent.com/command-t.git && cd command-t/
 # git archive 1.10 -o command-t-1.10.tar.gz
 Source0: command-t-%{version}.tar.gz
+# Plug-in AppData for Gnome Software.
+# https://github.com/wincent/Command-T/issues/99
+Source1: vim-command-t.metainfo.xml
 Requires: ruby(release)
 # Although command-t does not depend on rubygems directly, the RubyGems are
 # required by Ruby, but not always (rhbz#845011). So it is necessary to enforce
@@ -70,6 +75,10 @@ find %{buildroot}%{vimfiles} -name '.*' -delete
 rm README.txt
 cp -pa doc/command-t.txt README.txt
 
+# Install AppData.
+mkdir -p %{buildroot}%{appdata_dir}
+install -m 644 %{SOURCE1} %{buildroot}%{appdata_dir}
+
 %check
 # Get rid of Bundler
 sed -i '/Bundler/,/^end$/ s/^/#/' spec/spec_helper.rb
@@ -97,11 +106,13 @@ vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null
 %exclude %{vimfiles}/ruby/command-t/mkmf.log
 %exclude %{vimfiles}/ruby/command-t/depend
 %{vimfiles}/ruby/*
+%{appdata_dir}/vim-command-t.metainfo.xml
 
 
 %changelog
 * Mon Aug 11 2014 Vít Ondruch <vondruch at redhat.com> - 1.10-1
 - Update to Command-T 1.10.
+- Add Gnome Software plug-in AppData (rhbz#1110300).
 
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.8-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild


More information about the scm-commits mailing list