Accepting request 107547 from home:mvyskocil:branches:editors

- remove pointless systemd dependency and run the tmpfiles binary
  only in case it exists

OBS-URL: https://build.opensuse.org/request/show/107547
OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=90
This commit is contained in:
Ismail Dönmez 2012-02-29 13:00:36 +00:00 committed by Git OBS Bridge
parent d37297561f
commit b7068b374f
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 29 12:55:57 UTC 2012 - mvyskocil@suse.cz
- remove pointless systemd dependency and run the tmpfiles binary
only in case it exists
-------------------------------------------------------------------
Tue Feb 28 12:58:08 UTC 2012 - idonmez@suse.com

View File

@ -158,8 +158,6 @@ Summary: Vi IMproved
Group: Productivity/Editors/Vi
PreReq: %{vim_prereq}
PreReq: update-alternatives
# For post script
Requires: systemd
%description base
Vim (Vi IMproved) is an almost compatible version of the UNIX editor
@ -467,7 +465,9 @@ mkdir -p %{buildroot}/var/run/vi.recover
/usr/sbin/update-alternatives --install \
/bin/vim vim %{_datadir}/vim/current/tools/missing-vim-client 0
# Create tmpfiles
/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/vim.conf
if [ -x /bin/systemd-tmpfiles ]; then
/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/vim.conf
fi
%post enhanced
/usr/sbin/update-alternatives --install \