27fdeb
Summary: A C programming language indexing and/or cross-reference tool
27fdeb
Name: ctags
27fdeb
Version: 5.8
8e6ca7
Release: 13%{?dist}
27fdeb
License: GPLv2+ and LGPLv2+ and Public Domain
27fdeb
Group: Development/Tools
27fdeb
URL: http://ctags.sourceforge.net/
27fdeb
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
27fdeb
Patch0: ctags-5.7-destdir.patch
27fdeb
Patch1: ctags-5.7-segment-fault.patch
27fdeb
Patch2: ctags-5.8-css.patch
27fdeb
Patch3: ctags-5.8-ocaml-crash.patch
27fdeb
Patch4: ctags-5.8-cssparse.patch
27fdeb
Patch5: ctags-5.8-memmove.patch
27fdeb
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
27fdeb
27fdeb
%description
27fdeb
Ctags generates an index (or tag) file of C language objects found in
27fdeb
C source and header files.  The index makes it easy for text editors or
27fdeb
other utilities to locate the indexed items.  Ctags can also generate a
27fdeb
cross reference file which lists information about the various objects
27fdeb
found in a set of C language files in human readable form.  Exuberant
27fdeb
Ctags improves on ctags because it can find all types of C language tags,
27fdeb
including macro definitions, enumerated values (values inside enum{...}),
27fdeb
function and method definitions, enum/struct/union tags, external
27fdeb
function prototypes, typedef names and variable declarations.  Exuberant
27fdeb
Ctags is far less likely to be fooled by code containing #if preprocessor
27fdeb
conditional constructs than ctags.  Exuberant ctags supports output of
27fdeb
Emacs style TAGS files and can be used to print out a list of selected
27fdeb
objects found in source files.
27fdeb
27fdeb
Install ctags if you are going to use your system for C programming.
27fdeb
27fdeb
%package etags
27fdeb
Summary: Exuberant Ctags for emacs tag format
27fdeb
Group: Development/Tools
27fdeb
Requires: ctags = %{version}-%{release}
27fdeb
Requires: /usr/sbin/alternatives
27fdeb
27fdeb
%description etags
27fdeb
This package will generate tags in a format which GNU Emacs understand,
27fdeb
it's a alternativ implementation of the GNU etags program.
27fdeb
Note: some command line options is not compatible with GNU etags.
27fdeb
27fdeb
27fdeb
%prep
27fdeb
%setup -q
27fdeb
%patch0 -p1 -b .destdir
27fdeb
%patch1 -p1 -b .crash
27fdeb
%patch2 -p1 -b .css-support
27fdeb
%patch3 -p1 -b .ocaml-crash
27fdeb
%patch4 -p1 -b .cssparse-crash
27fdeb
%patch5 -p1 -b .memmove
27fdeb
27fdeb
%build
27fdeb
%configure
27fdeb
27fdeb
make %{?_smp_mflags}
27fdeb
27fdeb
%install
27fdeb
rm -rf %{buildroot}
27fdeb
27fdeb
make DESTDIR=%{buildroot} install
27fdeb
27fdeb
pushd %{buildroot}%{_bindir}
27fdeb
ln -s ctags etags.ctags
27fdeb
popd
27fdeb
27fdeb
pushd %{buildroot}%{_mandir}/man1
27fdeb
ln -s ctags.1.gz etags.ctags.1.gz
27fdeb
popd
27fdeb
27fdeb
%posttrans etags
27fdeb
/usr/sbin/alternatives --install /usr/bin/etags emacs.etags /usr/bin/etags.ctags 20 \
27fdeb
   --slave /usr/share/man/man1/etags.1.gz emacs.etags.man /usr/share/man/man1/ctags.1.gz
27fdeb
27fdeb
%postun etags
27fdeb
/usr/sbin/alternatives --remove etags /usr/bin/etags.ctags || :
27fdeb
27fdeb
%clean
27fdeb
rm -rf %{buildroot}
27fdeb
27fdeb
%files
27fdeb
%defattr(-, root, root, -)
27fdeb
%doc COPYING EXTENDING.html FAQ NEWS README
27fdeb
%{_bindir}/%{name}
27fdeb
%{_mandir}/man1/%{name}.1*
27fdeb
27fdeb
%files etags
27fdeb
%defattr(-, root, root, -)
27fdeb
%doc COPYING
27fdeb
%{_bindir}/etags.%{name}
27fdeb
%{_mandir}/man1/etags.%{name}.1*
27fdeb
27fdeb
%changelog
8e6ca7
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 5.8-13
8e6ca7
- Mass rebuild 2014-01-24
8e6ca7
8e6ca7
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 5.8-12
8e6ca7
- Mass rebuild 2013-12-27
8e6ca7
27fdeb
* Thu Jun 13 2013 John Dennis <jdennis@redhat.com> - 5.8-11
27fdeb
- add ctags-5.8-memmove.patch
27fdeb
  bug #284 absoluteFilename uses strcpy on overlapping strings 
27fdeb
  http://sourceforge.net/p/ctags/bugs/284/  
27fdeb
  The bug was fixed upstream on 2012-03-26 in the following commit
27fdeb
  http://sourceforge.net/p/ctags/code/782/
27fdeb
  ctags-5.8-memmove.patch simply adds the same patch as the above commit.
27fdeb
27fdeb
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-10
27fdeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
27fdeb
27fdeb
* Mon Nov  5 2012 Marcela Mašláňová <mmaslano@redhat.com> - 5.8-9
27fdeb
- fix license field again
27fdeb
27fdeb
* Thu Oct 18 2012 Than Ngo <than@redhat.com> - 5.8-8
27fdeb
- fix the crash in cssparse
27fdeb
27fdeb
* Thu Aug 02 2012 Than Ngo <than@redhat.com> - 5.8-7
27fdeb
- backport from upstream to fix several crashes in ocaml
27fdeb
27fdeb
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-6
27fdeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
27fdeb
27fdeb
* Wed Feb 08 2012 Than Ngo <than@redhat.com> - 5.8-5
27fdeb
- bz#786451, add css support
27fdeb
27fdeb
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-4
27fdeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
27fdeb
27fdeb
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-3
27fdeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
27fdeb
27fdeb
* Mon Jan  4 2010 Marcela Mašláňová <mmaslano@redhat.com> - 5.8-2
27fdeb
- fix license tag
27fdeb
27fdeb
* Tue Sep 01 2009 Than Ngo <than@redhat.com> - 5.8-1
27fdeb
- 5.8
27fdeb
- apply patch to fix segment fault, thanks to Masatake YAMATO
27fdeb
27fdeb
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.7-5
27fdeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
27fdeb
27fdeb
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.7-4
27fdeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
27fdeb
27fdeb
* Tue Jul 29 2008 Than Ngo <than@redhat.com>  5.7-3
27fdeb
- add subpackage ctags-etags
27fdeb
27fdeb
* Tue Jul 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 5.7-2
27fdeb
- fix license tag
27fdeb
27fdeb
* Fri Feb 15 2008 Than Ngo <than@redhat.com> 5.7-1
27fdeb
- 5.7
27fdeb
- merge review: ctags
27fdeb
27fdeb
* Mon Jul 17 2006 Nalin Dahyabhai <nalin@redhat.com> 5.6-1.1
27fdeb
- rebuild
27fdeb
27fdeb
* Tue Jun 06 2006 Than Ngo <than@redhat.com> 5.6-1
27fdeb
- update to 5.6
27fdeb
27fdeb
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.5.4-4.2.1
27fdeb
- bump again for double-long bug on ppc(64)
27fdeb
27fdeb
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.5.4-4.2
27fdeb
- rebuilt for new gcc4.1 snapshot and glibc changes
27fdeb
27fdeb
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
27fdeb
- rebuilt
27fdeb
27fdeb
* Sun Jul 31 2005 Florian La Roche <laroche@redhat.com>
27fdeb
- remove etags
27fdeb
27fdeb
* Thu Mar 03 2005 Than Ngo <than@redhat.com> 5.5.4-3
27fdeb
- rebuilt
27fdeb
27fdeb
* Wed Feb 09 2005 Than Ngo <than@redhat.com> 5.5.4-2
27fdeb
- rebuilt
27fdeb
27fdeb
* Thu Jun 17 2004 Florian La Roche <Florian.LaRoche@redhat.de>
27fdeb
- 5.5.4
27fdeb
27fdeb
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
27fdeb
- rebuilt
27fdeb
27fdeb
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
27fdeb
- rebuilt
27fdeb
27fdeb
* Sat Sep 27 2003 Florian La Roche <Florian.LaRoche@redhat.de>
27fdeb
- 5.5.2, no patch needed anymore
27fdeb
27fdeb
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
27fdeb
- rebuilt
27fdeb
27fdeb
* Tue May  6 2003 Than Ngo <than@redhat.com> 5.5-1
27fdeb
- 5.5
27fdeb
27fdeb
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
27fdeb
- rebuilt
27fdeb
27fdeb
* Wed Nov 13 2002 Karsten Hopp <karsten@redhat.de>
27fdeb
- update to 5.4
27fdeb
27fdeb
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
27fdeb
- automated rebuild
27fdeb
27fdeb
* Tue Jun 18 2002 Than Ngo <than@redhat.com> 5.2.3-3
27fdeb
- don't forcibly strip binaries
27fdeb
27fdeb
* Sun May 26 2002 Tim Powers <timp@redhat.com>
27fdeb
- automated rebuild
27fdeb
27fdeb
* Wed May 22 2002 Harald Hoyer <harald@redhat.de>
27fdeb
- 5.2.3
27fdeb
27fdeb
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 5.2.2-2
27fdeb
- rebuild in new enviroment
27fdeb
27fdeb
* Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 5.2.2-1
27fdeb
- 5.2.2
27fdeb
27fdeb
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
27fdeb
- automated rebuild
27fdeb
27fdeb
* Wed Jul 11 2001 Jakub Jelinek <jakub@redhat.com>
27fdeb
- rebuilt against binutils-2.11.90.0.8-3 to reserve .dynamic space
27fdeb
27fdeb
* Mon Jun 11 2001 Preston Brown <pbrown@redhat.com>
27fdeb
- 5.0.1
27fdeb
27fdeb
* Thu Jan 04 2001 Preston Brown <pbrown@redhat.com>
27fdeb
- 4.0.3
27fdeb
- remove etags, it is not fully compatible with cmd line of GNU etags.
27fdeb
27fdeb
* Sun Jul 16 2000 Florian La Roche <Florian.LaRoche@redhat.de>
27fdeb
- update to 4.0.2 from sourceforge
27fdeb
27fdeb
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
27fdeb
- automatic rebuild
27fdeb
27fdeb
* Sat Jun 17 2000 Matt Wilson <msw@redhat.com>
27fdeb
- added defattr
27fdeb
27fdeb
* Mon Jun 12 2000 Preston Brown <pbrown@redhat.com>
27fdeb
- FHS paths
27fdeb
27fdeb
* Mon May  8 2000 Bernhard Rosenkränzer <bero@redhat.com>
27fdeb
- Update to 3.5.2
27fdeb
- minor cleanups to spec file
27fdeb
27fdeb
* Tue Feb 16 2000 Bernhard Rosenkränzer <bero@redhat.com>
27fdeb
- Update to 3.4 to fix bug #9446
27fdeb
27fdeb
* Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
27fdeb
- compress man page.
27fdeb
27fdeb
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
27fdeb
- auto rebuild in the new build environment (release 4)
27fdeb
- version 3.2
27fdeb
27fdeb
* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
27fdeb
- Injected new description and group.
27fdeb
27fdeb
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
27fdeb
- translations modified for de, fr, tr
27fdeb
27fdeb
* Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com>
27fdeb
- upgraded to 2.0.3
27fdeb
27fdeb
* Mon Nov 03 1997 Michael K. Johnson <johnsonm@redhat.com>
27fdeb
- removed etags.  Emacs provides its own; and needs to support
27fdeb
  more than just C.
27fdeb
27fdeb
* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
27fdeb
- updated from 1.5 to 1.6
27fdeb
27fdeb
* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
27fdeb
- built against glibc