]> git.pld-linux.org Git - packages/vim.git/commitdiff
- update desktop database if /usr/bin/update-desktop-database exists
authorwrobell <wrobell@pld-linux.org>
Sat, 30 Apr 2005 18:21:20 +0000 (18:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- enable python support by default - does add no python dependency to vim
  (it seems)
- rel. 6

Changed files:
    vim.spec -> 1.296

vim.spec

index 0ad1685033699c10aa8019c21bd9668acb718a58..e191f71004a35065df022c688040926135359aef 100644 (file)
--- a/vim.spec
+++ b/vim.spec
@@ -1,5 +1,3 @@
-# TODO:
-# - some nice icon
 #
 # Conditional build:
 %bcond_without static          # don't build static version
@@ -9,7 +7,7 @@
 %bcond_without gnome           # don't build GNOME-based gvim support
 %bcond_without kde             # don't build kvim
 %bcond_without perl            # without Perl interp
-%bcond_with    python          # with Python interp
+%bcond_without python          # with Python interp
 %bcond_with    ruby            # with Ruby interp
 %bcond_with    tcl             # with Tcl interp
 %bcond_with    bonobo          # with bonobo component (breaks other things)
@@ -31,7 +29,7 @@ Summary(tr):  Geli
 Summary(uk):   Visual editor IMproved - ´ÄÉÎÏ ÷¦ÒÎÉÊ òÅÄÁËÔÏÒ :)
 Name:          vim
 Version:       %{_ver}.%{_patchlevel}
-Release:       5
+Release:       6
 Epoch:         4
 License:       Charityware
 Group:         Applications/Editors/Vim
@@ -68,7 +66,6 @@ Patch7:               %{name}-egrep.patch
 Patch8:                k%{name}-desktop.patch
 Patch11:       %{name}-bonobo.patch
 Patch12:       %{name}-home_etc.patch
-#Patch12:      %{name}-dynamic_python.patch
 Patch13:       %{name}-selinux.patch
 Patch15:       %{name}-po.patch
 Patch16:       %{name}-filetype_vim-perl_tests.patch
@@ -1057,6 +1054,36 @@ install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/{doc,{after/,}{syntax,ftdetec
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+[ -x /usr/bin/update-desktop-database ] && %update_desktop_database_post
+
+%postun
+[ -x /usr/bin/update-desktop-database ] && %update_desktop_database_postun
+
+%post -n gvim-athena
+[ -x /usr/bin/update-desktop-database ] && %update_desktop_database_post
+
+%postun -n gvim-athena
+[ -x /usr/bin/update-desktop-database ] && %update_desktop_database_postun
+
+%post -n gvim-motif
+[ -x /usr/bin/update-desktop-database ] && %update_desktop_database_post
+
+%postun -n gvim-motif
+[ -x /usr/bin/update-desktop-database ] && %update_desktop_database_postun
+
+%post -n gvim-gtk
+[ -x /usr/bin/update-desktop-database ] && %update_desktop_database_post
+
+%postun -n gvim-gtk
+[ -x /usr/bin/update-desktop-database ] && %update_desktop_database_postun
+
+%post -n gvim-gnome
+[ -x /usr/bin/update-desktop-database ] && %update_desktop_database_post
+
+%postun -n gvim-gnome
+[ -x /usr/bin/update-desktop-database ] && %update_desktop_database_postun
+
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/vim
This page took 0.608382 seconds and 4 git commands to generate.