2006-12-29 00:06:40 +01:00
|
|
|
|
#
|
2009-08-27 23:38:41 +02:00
|
|
|
|
# spec file for package ctags (Version 2009.8.26)
|
2006-12-29 00:06:40 +01:00
|
|
|
|
#
|
2009-08-27 23:38:41 +02:00
|
|
|
|
# Copyright (c) 2009 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
|
2009-08-27 23:38:41 +02:00
|
|
|
|
Version: 2009.8.26
|
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
|
2009-08-27 23:38:41 +02:00
|
|
|
|
%patch0
|
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
|