Accepting request 93315 from home:a_jaeger:branches:openSUSE:Factory
Create tmpfiles during new install. OBS-URL: https://build.opensuse.org/request/show/93315 OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=71
This commit is contained in:
parent
e67283da89
commit
8aae727644
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 23 13:05:42 UTC 2011 - aj@suse.de
|
||||
|
||||
- Create tmpfiles during install
|
||||
- Fix tmpfiles handling
|
||||
- Own directory /var/run/vi.recover
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 22 22:49:39 UTC 2011 - reddwarf@opensuse.org
|
||||
|
||||
|
9
vim.spec
9
vim.spec
@ -37,6 +37,7 @@ BuildRequires: ruby-devel
|
||||
BuildRequires: tcl-devel
|
||||
BuildRequires: update-alternatives
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: systemd
|
||||
#
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} > 1130
|
||||
@ -65,6 +66,7 @@ PreReq: %{vim_prereq}
|
||||
PreReq: fileutils
|
||||
PreReq: sh-utils
|
||||
PreReq: update-alternatives
|
||||
Requires(post): systemd
|
||||
#
|
||||
Provides: vim_client
|
||||
Provides: vi
|
||||
@ -456,6 +458,8 @@ mv %{buildroot}%{_mandir}/ru.UTF-8 %{buildroot}%{_mandir}/ru
|
||||
rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/tools/*.c
|
||||
rm -f %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/macros/maze/*.c
|
||||
#
|
||||
# Create ghost files (see vim.conf)
|
||||
mkdir -p %{buildroot}/var/run/vi.recover
|
||||
|
||||
%if 0%{?suse_version} > 1020
|
||||
%fdupes -s %{buildroot}%{_datadir}/vim/%{VIM_SUBDIR}/lang
|
||||
@ -474,6 +478,8 @@ rm -rf %{buildroot}
|
||||
%post base
|
||||
/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
|
||||
|
||||
%post enhanced
|
||||
/usr/sbin/update-alternatives --install \
|
||||
@ -529,7 +535,8 @@ fi
|
||||
%config(noreplace) %{_sysconfdir}/vimrc
|
||||
%ghost %{_sysconfdir}/alternatives/vim
|
||||
%dir /usr/lib/tmpfiles.d
|
||||
%config(noreplace) /usr/lib/tmpfiles.d/vim.conf
|
||||
/usr/lib/tmpfiles.d/vim.conf
|
||||
%ghost %dir /var/run/vi.recover
|
||||
# symlinks
|
||||
/bin/vi
|
||||
/bin/vim
|
||||
|
Loading…
Reference in New Issue
Block a user