diff --git a/vim.spec b/vim.spec index adbb86c..8336564 100644 --- a/vim.spec +++ b/vim.spec @@ -21,7 +21,7 @@ Summary: The VIM editor URL: http://www.vim.org/ Name: vim Version: %{baseversion}.%{patchlevel} -Release: 1%{?dist} +Release: 2%{?dist} License: Vim Group: Applications/Editors Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}.tar.bz2 @@ -1678,6 +1678,44 @@ install -p -m644 %{SOURCE9} \ install -p -m644 %{SOURCE10} \ %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/gvim.png +# 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/gvim.appdata.xml < + + + + gvim.desktop + CC0-1.0 + Vim + +

+ Vim is an advanced text editor that seeks to provide the power of the + de-facto Unix editor 'Vi', with a more complete feature set. + It's useful whether you're already using vi or using a different editor. +

+

+ Vim is a highly configurable text editor built to enable efficient text + editing. + Vim is often called a "programmer's editor," and so useful for programming + that many consider it an entire IDE. It's not just for programmers, though. + Vim is perfect for all kinds of text editing, from composing email to + editing configuration files. +

+
+ http://www.vim.org/ +
+EOF + ( cd %{buildroot} ln -sf vi ./%{_bindir}/rvi ln -sf vi ./%{_bindir}/rview @@ -2025,6 +2063,7 @@ rm -rf %{buildroot} %files X11 %defattr(-,root,root) %if "%{desktop_file}" == "1" +%{_datadir}/appdata/*.appdata.xml /%{_datadir}/applications/* %else /%{_sysconfdir}/X11/applnk/*/gvim.desktop @@ -2040,6 +2079,9 @@ rm -rf %{buildroot} %{_datadir}/icons/hicolor/*/apps/* %changelog +* Thu Mar 26 2015 Richard Hughes - 2:7.4.663-2 +- Add an AppData file for the software center + * Sat Mar 14 2015 Karsten Hopp 7.4.663-1 - patchlevel 663