2006-12-28 23:06:40 +00:00
|
|
|
#
|
2011-08-01 07:39:21 +00:00
|
|
|
# spec file for package ctags
|
2006-12-28 23:06:40 +00:00
|
|
|
#
|
2014-10-07 07:46:42 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-28 23:06:40 +00:00
|
|
|
#
|
2008-09-05 20:21:36 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-28 23:06:40 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-09-05 20:21:36 +00:00
|
|
|
|
2006-12-28 23:06:40 +00:00
|
|
|
Name: ctags
|
2013-04-28 14:50:03 +00:00
|
|
|
Version: 5.8
|
2012-08-17 07:46:16 +00:00
|
|
|
Release: 0
|
2006-12-28 23:06:40 +00:00
|
|
|
Summary: A Program to Generate Tag Files for Use with vi and Other Editors
|
2012-08-17 07:46:16 +00:00
|
|
|
License: GPL-2.0+
|
2011-07-29 17:05:42 +00:00
|
|
|
Group: Development/Tools/Navigators
|
2012-08-17 07:46:16 +00:00
|
|
|
Url: http://ctags.sourceforge.net/
|
2013-04-28 14:50:03 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2011-07-29 17:05:42 +00:00
|
|
|
Patch1: ctags-5.7.diff
|
|
|
|
# No resources to make this patch work with ctags-5.8 (applied to ctags-5.7)
|
|
|
|
# Anyone is welcome to make it work again.
|
2013-04-28 14:50:03 +00:00
|
|
|
Source2: ctags-ycp-parser.diff
|
2011-07-29 17:05:42 +00:00
|
|
|
Patch3: ctags-date-time.patch
|
2013-04-28 14:50:03 +00:00
|
|
|
Patch4: go-tags.patch
|
2014-10-07 07:46:42 +00:00
|
|
|
Patch5: CVE-2014-7204.patch
|
2006-12-28 23:06:40 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-04-28 14:50:03 +00:00
|
|
|
BuildRequires: update-alternatives
|
|
|
|
PreReq: update-alternatives
|
2006-12-28 23:06:40 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
CTags (from Darren Hiebert) generates tag files from source code in C,
|
|
|
|
C++, Eiffel, Fortran, and Java to be used with vi and its derivatives,
|
|
|
|
Emacs, and several other editors.
|
|
|
|
|
|
|
|
%prep
|
2013-04-28 14:50:03 +00:00
|
|
|
%setup -q
|
2007-11-13 20:47:04 +00:00
|
|
|
%patch1
|
2011-07-29 17:05:42 +00:00
|
|
|
#%#patch2
|
|
|
|
%patch3 -p1
|
2013-04-28 14:50:03 +00:00
|
|
|
%patch4 -p1
|
2014-10-07 07:46:42 +00:00
|
|
|
%patch5 -p1
|
2006-12-28 23:06:40 +00:00
|
|
|
|
|
|
|
%build
|
2013-04-28 14:50:03 +00:00
|
|
|
./configure CFLAGS="%{optflags} -Wall" \
|
|
|
|
--prefix=/usr --mandir=%{_mandir} --disable-etags
|
2011-07-29 17:05:42 +00:00
|
|
|
make %{?_smp_mflags}
|
2006-12-28 23:06:40 +00:00
|
|
|
|
|
|
|
%install
|
2011-07-29 17:05:42 +00:00
|
|
|
make install prefix=%{buildroot}/usr mandir=%{buildroot}%{_mandir}
|
2013-04-28 14:50:03 +00:00
|
|
|
mv %{buildroot}%{_bindir}/ctags{,-exuberant}
|
|
|
|
mv %{buildroot}%{_mandir}/man1/ctags{,-exuberant}.1
|
|
|
|
touch %{buildroot}%{_bindir}/ctags %{buildroot}%{_mandir}/man1/ctags.1.gz
|
|
|
|
|
|
|
|
%post
|
|
|
|
test -L %{_bindir}/ctags || rm -f %{_bindir}/ctags
|
|
|
|
update-alternatives --install %{_bindir}/ctags ctags %{_bindir}/ctags-exuberant 20 \
|
|
|
|
--slave %{_mandir}/man1/ctags.1.gz ctags.1 %{_mandir}/man1/ctags-exuberant.1.gz
|
|
|
|
update-alternatives --auto ctags
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
update-alternatives --remove ctags %{_bindir}/ctags-exuberant
|
|
|
|
fi
|
2006-12-28 23:06:40 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-04-28 14:50:03 +00:00
|
|
|
%doc COPYING EXTENDING.html FAQ README
|
|
|
|
%{_bindir}/ctags-exuberant
|
|
|
|
%{_mandir}/man1/ctags-exuberant.1.gz
|
|
|
|
%ghost %attr(755,root,root) %{_bindir}/ctags
|
|
|
|
%ghost %{_mandir}/man1/ctags.1.gz
|
2008-01-09 20:58:46 +00:00
|
|
|
|
2007-11-13 00:40:18 +00:00
|
|
|
%changelog
|