From 9b663428e8c2e76c8c0419de36d263865e5b9c5655bfbff38b5d705abc5e5309 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 18 Aug 2016 18:29:38 +0000 Subject: [PATCH] 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 --- ctags.changes | 7 +++++++ ctags.spec | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ctags.changes b/ctags.changes index 24d9ec3..6d3328b 100644 --- a/ctags.changes +++ b/ctags.changes @@ -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 diff --git a/ctags.spec b/ctags.spec index d7086f1..da99800 100644 --- a/ctags.spec +++ b/ctags.spec @@ -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