Accepting request 419960 from home:adamm:branches:devel:tools

- Own our update-alternatives symlink (bnc#994261)
- Use conflict-free symlinks instead of touch files for
  placeholders.

OBS-URL: https://build.opensuse.org/request/show/419960
OBS-URL: https://build.opensuse.org/package/show/devel:tools/ctags?expand=0&rev=27
This commit is contained in:
Martin Pluskal 2016-08-18 18:29:38 +00:00 committed by Git OBS Bridge
parent a6ac0395e8
commit 9b663428e8
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Aug 18 08:25:26 UTC 2016 - adam.majer@suse.de
- Own our update-alternatives symlink (bnc#994261)
- Use conflict-free symlinks instead of touch files for
placeholders.
-------------------------------------------------------------------
Tue May 24 15:26:39 UTC 2016 - mpluskal@suse.com

View File

@ -62,7 +62,11 @@ make \
mandir=%{buildroot}%{_mandir}
mv %{buildroot}%{_bindir}/ctags{,-exuberant}
mv %{buildroot}%{_mandir}/man1/ctags{,-exuberant}.1
touch %{buildroot}%{_bindir}/ctags %{buildroot}%{_mandir}/man1/ctags.1.gz
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
ln -s ctags %{buildroot}%{_bindir}/ctags
ln -s ctags.1%{ext_man} %{buildroot}%{_mandir}/man1/ctags.1%{ext_man}
ln -s ctags %{buildroot}%{_sysconfdir}/alternatives/ctags
ln -s ctags.1%{ext_man} %{buildroot}%{_sysconfdir}/alternatives/ctags.1%{ext_man}
%post
test -L %{_bindir}/ctags || rm -f %{_bindir}/ctags
@ -80,7 +84,9 @@ fi
%doc COPYING EXTENDING.html FAQ README
%{_bindir}/ctags-exuberant
%{_mandir}/man1/ctags-exuberant.1%{ext_man}
%ghost %attr(755,root,root) %{_bindir}/ctags
%ghost %{_bindir}/ctags
%ghost %{_mandir}/man1/ctags.1%{ext_man}
%ghost %{_sysconfdir}/alternatives/ctags
%ghost %{_sysconfdir}/alternatives/ctags.1%{ext_man}
%changelog