[vim-jedi] Add Addon metadta for GNOME Software (#1128812)
Petr Hracek
phracek at fedoraproject.org
Wed Feb 25 15:19:11 UTC 2015
commit 1c9883fd0bf7a90dd25b92a45c76a2392c9e4e7f
Author: Petr Hracek <phracek at redhat.com>
Date: Wed Feb 25 14:38:41 2015 +0100
Add Addon metadta for GNOME Software (#1128812)
Signed-off-by: Petr Hracek <phracek at redhat.com>
vim-jedi.appdata.xml | 23 +++++++++++++++++++++++
vim-jedi.desktop | 6 ++++++
vim-jedi.spec | 42 ++++++++++++++++++++++++++++--------------
3 files changed, 57 insertions(+), 14 deletions(-)
---
diff --git a/vim-jedi.appdata.xml b/vim-jedi.appdata.xml
new file mode 100644
index 0000000..42b44b7
--- /dev/null
+++ b/vim-jedi.appdata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2015 Petr Hracek <phracek at redhat.com> -->
+<application>
+ <id type="desktop">vim-jedi.desktop</id>
+ <licence>CC-BY-SA</licence>
+ <name>vim-jedi</name>
+ <summary>Awesome Python autocompletion with VIM</summary>
+ <description>
+ <p>
+ jedi-vim is a VIM binding to the autocompletion library Jedi.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default" width="643" height="310">
+ https://github.com/davidhalter/jedi/raw/master/docs/_screenshots/screenshot_function.png
+ </screenshot>
+ <screenshot width="557" height="123">
+ https://github.com/davidhalter/jedi/raw/master/docs/_screenshots/screenshot_complete.png
+ </screenshot>
+ </screenshots>
+ <url type="homepage">https://github.com/davidhalter/jedi-vim</url>
+ <updatecontact>phracek at redhat.com</updatecontact>
+</application>
diff --git a/vim-jedi.desktop b/vim-jedi.desktop
new file mode 100644
index 0000000..5386e83
--- /dev/null
+++ b/vim-jedi.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Name=vim-jedi
+GenericName=vim-jedi - awesome Python autocompletion with VIM
+Terminal=false
+Type=Application
+X-Desktop-File-Install-Version=0.21
diff --git a/vim-jedi.spec b/vim-jedi.spec
index bce48bd..418ee0b 100644
--- a/vim-jedi.spec
+++ b/vim-jedi.spec
@@ -1,19 +1,22 @@
#used for pre-releases:
%global vimfiles_root %{_datadir}/vim/vimfiles
-Name: vim-jedi
-Version: 0.7.0
-Release: 4%{?dist}
-Summary: The Jedi vim plugin
-Group: Applications/Editors
-
-License: LGPLv3
-URL: https://github.com/davidhalter/jedi-vim
-Source0: https://github.com/davidhalter/jedi-vim/archive/%{version}
-Requires: python-jedi
-Requires: vim-common
-
-BuildArch: noarch
+Name: vim-jedi
+Version: 0.7.0
+Release: 5%{?dist}
+Summary: The Jedi vim plugin
+Group: Applications/Editors
+
+License: LGPLv3
+URL: https://github.com/davidhalter/jedi-vim
+Source0: https://github.com/davidhalter/jedi-vim/archive/%{version}
+Source1: %{name}.desktop
+Source2: %{name}.appdata.xml
+BuildRequires: desktop-file-utils
+Requires: python-jedi
+Requires: vim-common
+
+BuildArch: noarch
%description
vim-jedi is a VIM binding to the awesome auto completion library Jedi.
@@ -21,14 +24,20 @@ vim-jedi is a VIM binding to the awesome auto completion library Jedi.
%prep
%setup -q -n jedi-vim-%{version}
-%build
+cp %{SOURCE1} .
+%build
%install
mkdir -p %{buildroot}%{vimfiles_root}
cp initialize.py* %{buildroot}%{vimfiles_root}
cp jedi_vim.py* %{buildroot}%{vimfiles_root}
cp -ar {after,autoload,ftplugin,plugin} %{buildroot}%{vimfiles_root}
+mkdir -p %{buildroot}/%{_datadir}/applications
+mkdir -p %{buildroot}/%{_datadir}/appdata
+cp -a %{SOURCE1} %{buildroot}/%{_datadir}/applications/
+cp -a %{SOURCE2} %{buildroot}/%{_datadir}/appdata
+desktop-file-install --dir %{buildroot}%{_datadir}/applications %{name}.desktop
%files
%doc README.rst AUTHORS.txt LICENSE.txt
@@ -38,8 +47,13 @@ cp -ar {after,autoload,ftplugin,plugin} %{buildroot}%{vimfiles_root}
%{vimfiles_root}/autoload/*
%{vimfiles_root}/ftplugin/*
%{vimfiles_root}/plugin/*
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/appdata/%{name}.appdata.xml
%changelog
+* Wed Feb 25 2015 Petr Hracek <phracek at redhat.com> - 0.7.0-5
+- Add Addon metadta for GNOME Software (#1128812)
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list