2006-12-29 00:06:40 +01:00
|
|
|
|
#
|
2008-09-05 22:21:36 +02:00
|
|
|
|
# spec file for package ctags (Version 2008.9.5)
|
2006-12-29 00:06:40 +01:00
|
|
|
|
#
|
2008-01-09 21:58:46 +01:00
|
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-29 00:06:40 +01:00
|
|
|
|
#
|
2008-09-05 22:21:36 +02: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-29 00:06:40 +01:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2008-09-05 22:21:36 +02:00
|
|
|
|
|
2006-12-29 00:06:40 +01:00
|
|
|
|
|
|
|
|
|
Name: ctags
|
2007-11-13 01:40:18 +01:00
|
|
|
|
License: GPL v2 or later
|
2006-12-29 00:06:40 +01:00
|
|
|
|
Group: Development/Tools/Navigators
|
2007-11-13 01:40:18 +01:00
|
|
|
|
AutoReqProv: on
|
2008-01-09 21:58:46 +01:00
|
|
|
|
%define ctags_ver 5.7
|
2008-09-05 22:21:36 +02:00
|
|
|
|
%define etags_ver 17.38.1.4
|
|
|
|
|
Version: 2008.9.5
|
2006-12-29 00:06:40 +01:00
|
|
|
|
Release: 1
|
|
|
|
|
Summary: A Program to Generate Tag Files for Use with vi and Other Editors
|
2007-11-13 01:40:18 +01:00
|
|
|
|
Url: http://ctags.sourceforge.net/
|
2008-01-09 21:58:46 +01:00
|
|
|
|
Source0: ftp://ftp.sourceforge.net/pub/sourceforge/c/ct/ctags/ctags-%{ctags_ver}.tar.bz2
|
|
|
|
|
Source1: etags-%{etags_ver}.tar.gz
|
2006-12-29 00:06:40 +01:00
|
|
|
|
Source2: README.SuSE
|
2008-01-09 21:58:46 +01:00
|
|
|
|
Patch0: ctags-%{ctags_ver}.diff
|
2006-12-29 00:06:40 +01:00
|
|
|
|
Patch1: ctags-ycp-parser.diff
|
2008-01-09 21:58:46 +01:00
|
|
|
|
Patch2: etags-%{etags_ver}.diff
|
2006-12-29 00:06:40 +01:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
ETags (from GNU Emacs sources) generates tag files from source code in
|
|
|
|
|
Pascal, Cobol, Ada, Perl, LaTeX, Scheme, Emacs Lisp/Common Lisp,
|
|
|
|
|
Postscript, Erlang, Python, Prolog, and most assembler-like syntaxes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Darren Hiebert <darren@hiebert.com>
|
|
|
|
|
Ken Arnold
|
|
|
|
|
Francesco Potort<EFBFBD> <pot@gnu.org>
|
|
|
|
|
|
|
|
|
|
%prep
|
2008-01-09 21:58:46 +01:00
|
|
|
|
%setup -q -n ctags-%{ctags_ver} -b 1
|
2006-12-29 00:06:40 +01:00
|
|
|
|
%patch
|
2007-11-13 21:47:04 +01:00
|
|
|
|
%patch1
|
2008-01-09 21:58:46 +01:00
|
|
|
|
cd ../etags-%{etags_ver}
|
2006-12-29 00:06:40 +01:00
|
|
|
|
%patch2
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
CC=gcc
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS -Wall"
|
|
|
|
|
export CFLAGS CC
|
|
|
|
|
./configure --prefix=/usr --mandir=%{_mandir} --disable-etags
|
|
|
|
|
make
|
2008-01-09 21:58:46 +01:00
|
|
|
|
cd ../etags-%{etags_ver}
|
|
|
|
|
CFLAGS="$CFLAGS -DSTDC_HEADERS -DHAVE_UNISTD_H -DHAVE_GETCWD"
|
2006-12-29 00:06:40 +01:00
|
|
|
|
$CC $CFLAGS -o etags etags.c
|
|
|
|
|
$CC $CFLAGS -DCTAGS -o gnuctags etags.c
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install prefix=$RPM_BUILD_ROOT/usr mandir=$RPM_BUILD_ROOT%{_mandir}
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_docdir}/ctags/Exuberant_Ctags
|
|
|
|
|
install -m 644 COPYING EXTENDING.html FAQ README $RPM_BUILD_ROOT%{_docdir}/ctags/Exuberant_Ctags
|
|
|
|
|
install -m 644 %{S:2} $RPM_BUILD_ROOT%{_docdir}/ctags
|
2008-01-09 21:58:46 +01:00
|
|
|
|
cd ../etags-%{etags_ver}
|
2006-12-29 00:06:40 +01:00
|
|
|
|
install -m 755 etags gnuctags $RPM_BUILD_ROOT/usr/bin
|
|
|
|
|
install -m 644 etags.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
|
ln -sf etags.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/gnuctags.1.gz
|
2007-11-13 21:47:04 +01:00
|
|
|
|
install -m 644 ETAGS.README $RPM_BUILD_ROOT%{_docdir}/ctags
|
2006-12-29 00:06:40 +01:00
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
/usr/bin/ctags
|
|
|
|
|
/usr/bin/gnuctags
|
|
|
|
|
/usr/bin/etags
|
|
|
|
|
%{_mandir}/man1/ctags.1.gz
|
|
|
|
|
%{_mandir}/man1/gnuctags.1.gz
|
|
|
|
|
%{_mandir}/man1/etags.1.gz
|
|
|
|
|
%{_docdir}/ctags
|
2008-01-09 21:58:46 +01:00
|
|
|
|
|
2007-11-13 01:40:18 +01:00
|
|
|
|
%changelog
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Fri Sep 05 2008 schwab@suse.de
|
|
|
|
|
- Update to etags 17.38.1.4.
|
|
|
|
|
* Wed Jan 09 2008 schwab@suse.de
|
|
|
|
|
- Update to etags 17.38.
|
|
|
|
|
* Tue Nov 13 2007 schwab@suse.de
|
2007-11-13 21:47:04 +01:00
|
|
|
|
- Update etags from Emacs trunk.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Mon Nov 12 2007 bwalle@suse.de
|
2007-11-13 01:40:18 +01:00
|
|
|
|
- update to ctags 5.7
|
|
|
|
|
* Added support for DIM AS [Freebasic]
|
|
|
|
|
* Added support for arbitrary nesting depth [Python]
|
|
|
|
|
* Added support for verbatim string literals [C#]
|
|
|
|
|
* Added support for .ctags as well as ctags.cnf on Windows
|
|
|
|
|
* Added support for non-extern, non-static functions returning
|
|
|
|
|
wchar_t, contributed by Aaron Peromsik [C++]
|
|
|
|
|
* Added support for numerous revision control systems including
|
|
|
|
|
Bazaar and Mercurial
|
|
|
|
|
* Added support for enums [Java]
|
|
|
|
|
* Added support for multiple-level namespace declarations [C#]
|
|
|
|
|
* Added .svn to list of directories ignored during recursion
|
|
|
|
|
(--recurse).
|
|
|
|
|
* Added support for BlitzBasic, PureBasic and FreeBasic
|
|
|
|
|
* Added support for interfaces and static/public/protected/
|
|
|
|
|
private functions [PHP].
|
|
|
|
|
* Added support for 'package' keyword [Perl].
|
|
|
|
|
* Added support for multi-line subroutine, package, and constant
|
|
|
|
|
definitions [Perl].
|
|
|
|
|
* Added support for optional subroutine declarations [Perl].
|
|
|
|
|
* Added support for formats [Perl].
|
|
|
|
|
* Added support for new convert keyword [Eiffel].
|
|
|
|
|
* Added optional tags for forward variable declarations [C, C++].
|
|
|
|
|
* Changed parsing of option input file (-L) to strip trailing
|
|
|
|
|
white space.
|
|
|
|
|
* Ignore comments mixed into definitions and declarations [Perl].
|
|
|
|
|
* Fixed detecting labels with whitespace after label name [Perl]
|
|
|
|
|
* Fixed parsing of generic classes/interfaces [Java]
|
|
|
|
|
* Fixed misidentification of fully qualified function calls as
|
|
|
|
|
labels [Perl].
|
|
|
|
|
* Fixed parsing of inner classes [Python]
|
|
|
|
|
* Fixed line continuation [Python]
|
|
|
|
|
* Fixed parsing of annotations [Java]
|
|
|
|
|
* Fixed block-comment parsing [Verilog]
|
|
|
|
|
* Fixed typo in man page
|
|
|
|
|
* Fixed missing chunk of text in man page and over-use of hyphens
|
|
|
|
|
in UTF-8 locales
|
|
|
|
|
* Fixed parsing of ` as a method name [Ruby].
|
|
|
|
|
* Fixed parsing of keywords in string literals [Ruby]
|
|
|
|
|
* Fixed potential segmentation violation
|
|
|
|
|
* Fixed parsing of destructors with whitespace after the '~' [C++]
|
|
|
|
|
* Fixed default access of unions to be public [C++]
|
|
|
|
|
* Fixed various memory leaks, mostly contributed by Dmitry Antipov.
|
|
|
|
|
* Fixed parsing of `define [Verilog]
|
|
|
|
|
* Fixed crashes involving '/' [Verilog]
|
|
|
|
|
* Fixed compilation problem on MinGW
|
|
|
|
|
* Fixed generation of HTML-formatted man page
|
|
|
|
|
* Fixed recognition of Python scripts having '#!/usr/bin/python'
|
|
|
|
|
as first line
|
|
|
|
|
* Fixed parsing of Fortran comment-to-end-of-line with no newline
|
|
|
|
|
before EOF [Debian]
|
|
|
|
|
* Fixed parsing of << [C/C++]
|
|
|
|
|
* Fixed parsing of fully-qualified type names [Java]
|
|
|
|
|
* Fixed handling of lone carriage-return characters in file
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Tue Feb 06 2007 schwab@suse.de
|
2007-02-07 00:41:44 +01:00
|
|
|
|
- Update etags from CVS.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Tue Jan 09 2007 schwab@suse.de
|
2007-01-09 17:43:20 +01:00
|
|
|
|
- More etags fixes from CVS.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Sat Dec 30 2006 schwab@suse.de
|
2006-12-31 16:52:48 +01:00
|
|
|
|
- Fix handling of relative names in #line.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Wed Dec 20 2006 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update etags from CVS.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Tue May 30 2006 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update to ctags 5.6
|
|
|
|
|
* Reformatted code for independence of tab stop setting.
|
|
|
|
|
* Changed default configuration to disable installation of etags links.
|
|
|
|
|
* Changed --langmap to first unmap each supplied extension from other
|
|
|
|
|
languages.
|
|
|
|
|
* Added support for ASP constants [ASP, Patch #961842].
|
|
|
|
|
* Added support for GNU make extensions [Make].
|
|
|
|
|
* Added .mk as extension recognized as a make language file [Make].
|
|
|
|
|
* Added missing help for list-maps options [Bug #1201826].
|
|
|
|
|
* Added new extension field "typeref" [thanks to Bram Moolenaar].
|
|
|
|
|
* Extended functionality of Ruby parser with patch from Elliot Hughes
|
|
|
|
|
[Ruby].
|
|
|
|
|
* Fixed creation of TAGS file with etags-include but no files [Bug
|
|
|
|
|
[#941233]].
|
|
|
|
|
* Fixed problem reading last line of list file (-L) without final
|
|
|
|
|
newline.
|
|
|
|
|
* Fixed infinite loop that could occur on files without final newline
|
|
|
|
|
[C, Java].
|
|
|
|
|
* Fixed incorrect tag for first field of table [SQL].
|
|
|
|
|
* Fixed missing tags for functions beginning with underscore [Sh].
|
|
|
|
|
* Fixed missing tags for functions with variable arg list [C, Bug
|
|
|
|
|
[#1201689]].
|
|
|
|
|
* Fixed parsing problem with parentheses in argument list [C, Bug
|
|
|
|
|
[#1085585]].
|
|
|
|
|
* Fixed problem in preprocessor directive handling [C, Bug #1086609].
|
|
|
|
|
- Update etags to 17.17.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Wed Mar 08 2006 od@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- wrote and added a YCP parser based on the C code parser
|
|
|
|
|
(ctags-5.5.4-ycp-parser.diff)
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- converted neededforbuild to BuildRequires
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Wed Dec 07 2005 od@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Added option -A/--allow-duplicates to gnuctags
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Wed Dec 07 2005 od@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Don't strip etags/gnuctags
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Tue Oct 18 2005 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update to etags 17.14.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Mon Nov 15 2004 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update to etags 17.5.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Wed May 05 2004 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update to ctags 5.5.4.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Sat Jan 10 2004 adrian@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- add %%defattr
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Fri Sep 26 2003 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update to ctags 5.5.2.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Tue Aug 05 2003 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update to ctags 5.5.1.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Wed Apr 02 2003 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update to ctags 5.5.
|
|
|
|
|
- Update to etags 16.56.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Tue Sep 17 2002 ro@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- removed bogus self-provides
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Tue Sep 17 2002 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update to ctags 5.3.1.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Thu Jul 18 2002 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update to ctags 5.3.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Fri Dec 14 2001 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Update ctags to 5.1.
|
|
|
|
|
- Update etags to 14.21.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Thu May 18 2000 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Use BuildRoot.
|
|
|
|
|
- Remove etags.c changes again.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Wed May 17 2000 kasal@suse.cz
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- strip etags/gnuctags
|
|
|
|
|
- Fixed etags.c changes
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Mon May 15 2000 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Discard etags.c changes (#2772).
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Mon Jan 31 2000 werner@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- Really rename gctags to gnuctags
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Mon Jan 31 2000 kasal@suse.cz
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- fixed spec file to really use the *dif files
|
|
|
|
|
- gctags renamed to gnuctags
|
|
|
|
|
- rewrote the NOTEs in the manpages and added
|
|
|
|
|
"see also (gnu)ctags(1), gctags(1) and global(1)"
|
|
|
|
|
- etags.c now uses #ifdef's
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Wed Jan 26 2000 werner@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- New ctags version 3.3.1
|
|
|
|
|
* Disable etags (is usable with `ctags -e')
|
|
|
|
|
- Add etags/ctags from Emacs sources
|
|
|
|
|
* rename this ctags with gctags
|
|
|
|
|
- Make some NOTEs within the manual pages of both packages
|
|
|
|
|
- Add a README.SuSE to explain why we have two versions
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Mon Sep 13 1999 bs@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Wed Sep 08 1999 schwab@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- specfile cleanup
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Tue Jun 15 1999 uli@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- update -> 3.2.2
|
2008-09-05 22:21:36 +02:00
|
|
|
|
* Mon Apr 14 1997 florian@suse.de
|
2006-12-29 00:06:40 +01:00
|
|
|
|
- new package with ctags 1.5 (used to be together with vim.tgz)
|