Accepting request 862274 from home:michals

- Fix build on Tumbleweed - do not ship ghost symlinks.

OBS-URL: https://build.opensuse.org/request/show/862274
OBS-URL: https://build.opensuse.org/package/show/devel:tools/ctags?expand=0&rev=32
This commit is contained in:
Adam Majer 2021-01-11 12:17:51 +00:00 committed by Git OBS Bridge
parent c010264be8
commit cfee708bb0
2 changed files with 9 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 11 12:09:50 UTC 2021 - Michal Suchanek <msuchanek@suse.com>
- Fix build on Tumbleweed - do not ship ghost symlinks.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Feb 26 04:37:26 UTC 2017 - msuchanek@suse.com Sun Feb 26 04:37:26 UTC 2017 - msuchanek@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package ctags # spec file for package ctags
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -20,9 +20,9 @@ Name: ctags
Version: 5.8 Version: 5.8
Release: 0 Release: 0
Summary: A Program to Generate Tag Files for Use with vi and Other Editors Summary: A Program to Generate Tag Files for Use with vi and Other Editors
License: GPL-2.0+ License: GPL-2.0-or-later
Group: Development/Tools/Navigators Group: Development/Tools/Navigators
Url: http://ctags.sourceforge.net/ URL: http://ctags.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
# No resources to make this patch work with ctags-5.8 (applied to ctags-5.7) # No resources to make this patch work with ctags-5.8 (applied to ctags-5.7)
# Anyone is welcome to make it work again. # Anyone is welcome to make it work again.
@ -92,11 +92,6 @@ make \
mandir=%{buildroot}%{_mandir} mandir=%{buildroot}%{_mandir}
mv %{buildroot}%{_bindir}/ctags{,-exuberant} mv %{buildroot}%{_bindir}/ctags{,-exuberant}
mv %{buildroot}%{_mandir}/man1/ctags{,-exuberant}.1 mv %{buildroot}%{_mandir}/man1/ctags{,-exuberant}.1
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 %post
test -L %{_bindir}/ctags || rm -f %{_bindir}/ctags test -L %{_bindir}/ctags || rm -f %{_bindir}/ctags