Blame SPECS/ctags.spec

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