From b7068b374ff58eb4af57d50c2a456b85ccac4d983a84f9b70364a1dd77981118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 29 Feb 2012 13:00:36 +0000 Subject: [PATCH] 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 --- vim.changes | 6 ++++++ vim.spec | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/vim.changes b/vim.changes index 7a1d3ab..82d10d9 100644 --- a/vim.changes +++ b/vim.changes @@ -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 diff --git a/vim.spec b/vim.spec index 2a97504..ae9d9fa 100644 --- a/vim.spec +++ b/vim.spec @@ -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 \