Blame SPECS/ctags.spec

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