43412c3
Summary: A C programming language indexing and/or cross-reference tool
cvsdist 0348a5d
Name: ctags
464f633
Version: 5.8
5313d14
Release: 30%{?dist}
f2dae46
License: GPLv2+ and LGPLv2+ and Public Domain
954bda3
URL: http://ctags.sourceforge.net/
43412c3
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
43412c3
Patch0: ctags-5.7-destdir.patch
464f633
Patch1: ctags-5.7-segment-fault.patch
954bda3
Patch2: ctags-5.8-css.patch
26f603d
Patch3: ctags-5.8-ocaml-crash.patch
6f8059b
Patch4: ctags-5.8-cssparse.patch
433c980
Patch5: ctags-5.8-memmove.patch
Jaromir Capik 8fd0c61
Patch6: ctags-5.8-format-security.patch
482acb0
Patch7: ctags-CVE-2014-7204.patch
6c70a48
BuildRequires: gcc
cvsdist 0348a5d
cvsdist 0348a5d
%description
cvsdist 0348a5d
Ctags generates an index (or tag) file of C language objects found in
cvsdist 0348a5d
C source and header files.  The index makes it easy for text editors or
cvsdist 0348a5d
other utilities to locate the indexed items.  Ctags can also generate a
cvsdist 0348a5d
cross reference file which lists information about the various objects
cvsdist 0348a5d
found in a set of C language files in human readable form.  Exuberant
cvsdist 0348a5d
Ctags improves on ctags because it can find all types of C language tags,
cvsdist 0348a5d
including macro definitions, enumerated values (values inside enum{...}),
cvsdist 0348a5d
function and method definitions, enum/struct/union tags, external
cvsdist 0348a5d
function prototypes, typedef names and variable declarations.  Exuberant
cvsdist 0348a5d
Ctags is far less likely to be fooled by code containing #if preprocessor
cvsdist 0348a5d
conditional constructs than ctags.  Exuberant ctags supports output of
cvsdist 0348a5d
Emacs style TAGS files and can be used to print out a list of selected
cvsdist 0348a5d
objects found in source files.
cvsdist 0348a5d
cvsdist 0348a5d
Install ctags if you are going to use your system for C programming.
cvsdist 0348a5d
43412c3
%package etags
43412c3
Summary: Exuberant Ctags for emacs tag format
43412c3
Requires: ctags = %{version}-%{release}
555dcc6
Requires: /usr/sbin/alternatives
43412c3
43412c3
%description etags
43412c3
This package will generate tags in a format which GNU Emacs understand,
43412c3
it's a alternativ implementation of the GNU etags program.
43412c3
Note: some command line options is not compatible with GNU etags.
43412c3
43412c3
cvsdist 0348a5d
%prep
cvsdist 0348a5d
%setup -q
43412c3
%patch0 -p1 -b .destdir
464f633
%patch1 -p1 -b .crash
954bda3
%patch2 -p1 -b .css-support
26f603d
%patch3 -p1 -b .ocaml-crash
6f8059b
%patch4 -p1 -b .cssparse-crash
433c980
%patch5 -p1 -b .memmove
Jaromir Capik 8fd0c61
%patch6 -p1 -b .fmt-sec
482acb0
%patch7 -p1 -b .CVE-2014-7204
cvsdist 0348a5d
cvsdist 0348a5d
%build
43412c3
%configure
efe9290
8ea7bd2
%make_build
cvsdist 0348a5d
cvsdist 0348a5d
%install
efe9290
rm -rf %{buildroot}
efe9290
8ea7bd2
%make_install
0ef21d7
555dcc6
pushd %{buildroot}%{_bindir}
0ef21d7
ln -s ctags etags.ctags
555dcc6
popd
0ef21d7
555dcc6
pushd %{buildroot}%{_mandir}/man1
555dcc6
ln -s ctags.1.gz etags.ctags.1.gz
555dcc6
popd
555dcc6
555dcc6
%posttrans etags
555dcc6
/usr/sbin/alternatives --install /usr/bin/etags emacs.etags /usr/bin/etags.ctags 20 \
555dcc6
   --slave /usr/share/man/man1/etags.1.gz emacs.etags.man /usr/share/man/man1/ctags.1.gz
555dcc6
555dcc6
%postun etags
555dcc6
/usr/sbin/alternatives --remove etags /usr/bin/etags.ctags || :
cvsdist 0348a5d
cvsdist 0348a5d
%files
4f61b04
%license COPYING
4f61b04
%doc EXTENDING.html FAQ NEWS README
555dcc6
%{_bindir}/%{name}
555dcc6
%{_mandir}/man1/%{name}.1*
555dcc6
555dcc6
%files etags
4f61b04
%license COPYING
555dcc6
%{_bindir}/etags.%{name}
555dcc6
%{_mandir}/man1/etags.%{name}.1*
cvsdist 0348a5d
cvsdist 0348a5d
%changelog
5313d14
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-30
5313d14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5313d14
8ea7bd2
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 5.8-29
8ea7bd2
- Use make macros
8ea7bd2
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
8ea7bd2
a7cd3c8
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-28
a7cd3c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a7cd3c8
9d99481
* Thu Jan 23 2020 Than Ngo <than@redhat.com> - 5.8-27
9d99481
- Added gating tests
9d99481
933bd86
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-26
933bd86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
933bd86
ab00aff
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-25
ab00aff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ab00aff
6c70a48
* Mon Jul 23 2018 Than Ngo <than@redhat.com> - 5.8-24
6c70a48
- fixed FTBFS
6c70a48
84bb602
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-23
84bb602
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
84bb602
fc6fe9e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-22
fc6fe9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fc6fe9e
a0b6279
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-21
a0b6279
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a0b6279
5900b1c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-20
5900b1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5900b1c
4f61b04
* Sun Feb 05 2017 Than Ngo <than@redhat.com> - - 5.8-19
1255247
- fixed bz#1418434, added missing %%license
4f61b04
eab9e80
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.8-18
eab9e80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
eab9e80
258a54a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-17
258a54a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
258a54a
482acb0
* Tue Sep 30 2014 Than Ngo <than@redhat.com> - 5.8-16
482acb0
- CVE-2014-7204, denial of service issue
482acb0
2091b7b
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-15
2091b7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2091b7b
821c544
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-14
821c544
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
821c544
Jaromir Capik 8fd0c61
* Mon Apr 14 2014 Jaromir Capik <jcapik@redhat.com> - 5.8-13
Jaromir Capik 8fd0c61
- Fixing format-security flaws (#1037028)
Jaromir Capik 8fd0c61
c118c41
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-12
c118c41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c118c41
433c980
* Thu Jun 13 2013 John Dennis <jdennis@redhat.com> - 5.8-11
433c980
- add ctags-5.8-memmove.patch
433c980
  bug #284 absoluteFilename uses strcpy on overlapping strings 
433c980
  http://sourceforge.net/p/ctags/bugs/284/  
433c980
  The bug was fixed upstream on 2012-03-26 in the following commit
433c980
  http://sourceforge.net/p/ctags/code/782/
433c980
  ctags-5.8-memmove.patch simply adds the same patch as the above commit.
433c980
0aaa720
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-10
0aaa720
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0aaa720
f2dae46
* Mon Nov  5 2012 Marcela Mašláňová <mmaslano@redhat.com> - 5.8-9
f2dae46
- fix license field again
f2dae46
6f8059b
* Thu Oct 18 2012 Than Ngo <than@redhat.com> - 5.8-8
6f8059b
- fix the crash in cssparse
6f8059b
26f603d
* Thu Aug 02 2012 Than Ngo <than@redhat.com> - 5.8-7
26f603d
- backport from upstream to fix several crashes in ocaml
26f603d
23a5d56
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-6
23a5d56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
23a5d56
954bda3
* Wed Feb 08 2012 Than Ngo <than@redhat.com> - 5.8-5
954bda3
- bz#786451, add css support
954bda3
efa8e2d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-4
efa8e2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
efa8e2d
c5e13b0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8-3
c5e13b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c5e13b0
bbfb520
* Mon Jan  4 2010 Marcela Mašláňová <mmaslano@redhat.com> - 5.8-2
58d4b78
- fix license tag
58d4b78
464f633
* Tue Sep 01 2009 Than Ngo <than@redhat.com> - 5.8-1
464f633
- 5.8
464f633
- apply patch to fix segment fault, thanks to Masatake YAMATO
464f633
0025683
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.7-5
0025683
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0025683
dee329f
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.7-4
dee329f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
dee329f
555dcc6
* Tue Jul 29 2008 Than Ngo <than@redhat.com>  5.7-3
555dcc6
- add subpackage ctags-etags
555dcc6
e9fd567
* Tue Jul 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 5.7-2
e9fd567
- fix license tag
e9fd567
43412c3
* Fri Feb 15 2008 Than Ngo <than@redhat.com> 5.7-1
43412c3
- 5.7
43412c3
- merge review: ctags
43412c3
1b37aae
* Mon Jul 17 2006 Nalin Dahyabhai <nalin@redhat.com> 5.6-1.1
1b37aae
- rebuild
1b37aae
efe9290
* Tue Jun 06 2006 Than Ngo <than@redhat.com> 5.6-1
efe9290
- update to 5.6
efe9290
080e59f
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.5.4-4.2.1
080e59f
- bump again for double-long bug on ppc(64)
080e59f
13fc684
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.5.4-4.2
13fc684
- rebuilt for new gcc4.1 snapshot and glibc changes
13fc684
39981dd
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
39981dd
- rebuilt
39981dd
Florian La Roche aa883da
* Sun Jul 31 2005 Florian La Roche <laroche@redhat.com>
Florian La Roche aa883da
- remove etags
Florian La Roche aa883da
c5de9c5
* Thu Mar 03 2005 Than Ngo <than@redhat.com> 5.5.4-3
c5de9c5
- rebuilt
c5de9c5
0d3380a
* Wed Feb 09 2005 Than Ngo <than@redhat.com> 5.5.4-2
0d3380a
- rebuilt
0d3380a
cvsdist 18dc00b
* Thu Jun 17 2004 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 18dc00b
- 5.5.4
cvsdist 18dc00b
cvsdist 0458d82
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 0458d82
- rebuilt
cvsdist 0458d82
cvsdist 62a5e36
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 62a5e36
- rebuilt
cvsdist 62a5e36
cvsdist 31b962e
* Sat Sep 27 2003 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 31b962e
- 5.5.2, no patch needed anymore
cvsdist 31b962e
cvsdist 31b962e
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 31b962e
- rebuilt
cvsdist 31b962e
cvsdist 31b962e
* Tue May  6 2003 Than Ngo <than@redhat.com> 5.5-1
cvsdist 31b962e
- 5.5
cvsdist 31b962e
cvsdist 9e83046
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 9e83046
- rebuilt
cvsdist 9e83046
cvsdist 9e83046
* Wed Nov 13 2002 Karsten Hopp <karsten@redhat.de>
cvsdist 9e83046
- update to 5.4
cvsdist 9e83046
cvsdist eff58a4
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist eff58a4
- automated rebuild
cvsdist eff58a4
cvsdist bf8f741
* Tue Jun 18 2002 Than Ngo <than@redhat.com> 5.2.3-3
cvsdist bf8f741
- don't forcibly strip binaries
cvsdist bf8f741
cvsdist bf8f741
* Sun May 26 2002 Tim Powers <timp@redhat.com>
cvsdist bf8f741
- automated rebuild
cvsdist bf8f741
cvsdist bf8f741
* Wed May 22 2002 Harald Hoyer <harald@redhat.de>
cvsdist bf8f741
- 5.2.3
cvsdist bf8f741
cvsdist 48f1264
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 5.2.2-2
cvsdist 48f1264
- rebuild in new enviroment
cvsdist 48f1264
cvsdist 48f1264
* Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 5.2.2-1
cvsdist 48f1264
- 5.2.2
cvsdist 48f1264
cvsdist 48f1264
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist 48f1264
- automated rebuild
cvsdist 48f1264
cvsdist 16d677d
* Wed Jul 11 2001 Jakub Jelinek <jakub@redhat.com>
cvsdist 16d677d
- rebuilt against binutils-2.11.90.0.8-3 to reserve .dynamic space
cvsdist 16d677d
cvsdist b1eeaa3
* Mon Jun 11 2001 Preston Brown <pbrown@redhat.com>
cvsdist b1eeaa3
- 5.0.1
cvsdist b1eeaa3
cvsdist 8ab2c3f
* Thu Jan 04 2001 Preston Brown <pbrown@redhat.com>
cvsdist 8ab2c3f
- 4.0.3
cvsdist 8ab2c3f
- remove etags, it is not fully compatible with cmd line of GNU etags.
cvsdist 8ab2c3f
cvsdist 0348a5d
* Sun Jul 16 2000 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 0348a5d
- update to 4.0.2 from sourceforge
cvsdist 0348a5d
cvsdist 0348a5d
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 0348a5d
- automatic rebuild
cvsdist 0348a5d
cvsdist 0348a5d
* Sat Jun 17 2000 Matt Wilson <msw@redhat.com>
cvsdist 0348a5d
- added defattr
cvsdist 0348a5d
cvsdist 0348a5d
* Mon Jun 12 2000 Preston Brown <pbrown@redhat.com>
cvsdist 0348a5d
- FHS paths
cvsdist 0348a5d
43412c3
* Mon May  8 2000 Bernhard Rosenkränzer <bero@redhat.com>
cvsdist 0348a5d
- Update to 3.5.2
cvsdist 0348a5d
- minor cleanups to spec file
cvsdist 0348a5d
43412c3
* Tue Feb 16 2000 Bernhard Rosenkränzer <bero@redhat.com>
cvsdist 0348a5d
- Update to 3.4 to fix bug #9446
cvsdist 0348a5d
cvsdist 0348a5d
* Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
cvsdist 0348a5d
- compress man page.
cvsdist 0348a5d
cvsdist 0348a5d
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 0348a5d
- auto rebuild in the new build environment (release 4)
cvsdist 0348a5d
- version 3.2
cvsdist 0348a5d
cvsdist 0348a5d
* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
cvsdist 0348a5d
- Injected new description and group.
cvsdist 0348a5d
cvsdist 0348a5d
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
cvsdist 0348a5d
- translations modified for de, fr, tr
cvsdist 0348a5d
cvsdist 0348a5d
* Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 0348a5d
- upgraded to 2.0.3
cvsdist 0348a5d
cvsdist 0348a5d
* Mon Nov 03 1997 Michael K. Johnson <johnsonm@redhat.com>
cvsdist 0348a5d
- removed etags.  Emacs provides its own; and needs to support
cvsdist 0348a5d
  more than just C.
cvsdist 0348a5d
cvsdist 0348a5d
* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
cvsdist 0348a5d
- updated from 1.5 to 1.6
cvsdist 0348a5d
cvsdist 0348a5d
* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
cvsdist 0348a5d
- built against glibc