|
|
156ebb |
Summary: C source code tree search and browse tool
|
|
|
156ebb |
Name: cscope
|
|
|
156ebb |
Version: 15.8
|
|
|
156ebb |
Release: 10%{?dist}
|
|
|
156ebb |
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
|
|
156ebb |
URL: http://cscope.sourceforge.net
|
|
|
156ebb |
License: BSD and GPLv2+
|
|
|
156ebb |
Group: Development/Tools
|
|
|
156ebb |
BuildRoot: %{_tmppath}/%{name}-%{version}
|
|
|
156ebb |
BuildRequires: pkgconfig ncurses-devel flex bison m4
|
|
|
156ebb |
Requires: emacs-filesystem
|
|
|
156ebb |
|
|
|
156ebb |
%define cscope_share_path %{_datadir}/cscope
|
|
|
156ebb |
%define emacs_lisp_path %{_datadir}/emacs/site-lisp
|
|
|
156ebb |
%define vim_plugin_path %{_datadir}/vim/vimfiles/plugin
|
|
|
156ebb |
|
|
|
156ebb |
Patch0: cscope-invindex-sizing.patch
|
|
|
156ebb |
Patch1: cscope-15.8-init-function-array-to-unknown.patch
|
|
|
156ebb |
Patch2: cscope-version.patch
|
|
|
156ebb |
|
|
|
156ebb |
%description
|
|
|
156ebb |
cscope is a mature, ncurses based, C source code tree browsing tool. It
|
|
|
156ebb |
allows users to search large source code bases for variables, functions,
|
|
|
156ebb |
macros, etc, as well as perform general regex and plain text searches.
|
|
|
156ebb |
Results are returned in lists, from which the user can select individual
|
|
|
156ebb |
matches for use in file editing.
|
|
|
156ebb |
|
|
|
156ebb |
%prep
|
|
|
156ebb |
%setup -q
|
|
|
156ebb |
%patch0 -p0
|
|
|
156ebb |
%patch1 -p1
|
|
|
156ebb |
%patch2 -p1 -z .update
|
|
|
156ebb |
|
|
|
156ebb |
%build
|
|
|
156ebb |
%configure
|
|
|
156ebb |
make
|
|
|
156ebb |
|
|
|
156ebb |
%install
|
|
|
156ebb |
rm -rf $RPM_BUILD_ROOT %{name}-%{version}.files
|
|
|
156ebb |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
156ebb |
mkdir -p $RPM_BUILD_ROOT/var/lib/cs
|
|
|
156ebb |
mkdir -p $RPM_BUILD_ROOT%{cscope_share_path}
|
|
|
156ebb |
cp -a contrib/xcscope/xcscope.el $RPM_BUILD_ROOT%{cscope_share_path}
|
|
|
156ebb |
cp -a contrib/xcscope/cscope-indexer $RPM_BUILD_ROOT%{_bindir}
|
|
|
156ebb |
cp -a contrib/cctree.vim $RPM_BUILD_ROOT%{cscope_share_path}
|
|
|
156ebb |
for dir in %{emacs_lisp_path} ; do
|
|
|
156ebb |
mkdir -p $RPM_BUILD_ROOT$dir
|
|
|
156ebb |
ln -s %{cscope_share_path}/xcscope.el $RPM_BUILD_ROOT$dir
|
|
|
156ebb |
touch $RPM_BUILD_ROOT$dir/xcscope.elc
|
|
|
156ebb |
echo "%ghost $dir/xcscope.el*" >> %{name}-%{version}.files
|
|
|
156ebb |
done
|
|
|
156ebb |
|
|
|
156ebb |
|
|
|
156ebb |
%clean
|
|
|
156ebb |
rm -rf $RPM_BUILD_ROOT
|
|
|
156ebb |
|
|
|
156ebb |
|
|
|
156ebb |
%files -f %{name}-%{version}.files
|
|
|
156ebb |
%defattr(-,root,root,-)
|
|
|
156ebb |
%{_bindir}/*
|
|
|
156ebb |
%dir %{cscope_share_path}
|
|
|
156ebb |
%{cscope_share_path}/
|
|
|
156ebb |
%{_mandir}/man1/*
|
|
|
156ebb |
%dir /var/lib/cs
|
|
|
156ebb |
%doc AUTHORS COPYING ChangeLog README TODO contrib/cctree.txt
|
|
|
156ebb |
|
|
|
156ebb |
%triggerin -- emacs, emacs-nox
|
|
|
156ebb |
ln -sf %{cscope_share_path}/xcscope.el %{emacs_lisp_path}/xcscope.el
|
|
|
156ebb |
|
|
|
156ebb |
%triggerin -- vim-filesystem
|
|
|
156ebb |
ln -sf %{cscope_share_path}/cctree.vim %{vim_plugin_path}/cctree.vim
|
|
|
156ebb |
|
|
|
156ebb |
%triggerun -- emacs, emacs-nox
|
|
|
156ebb |
[ $2 -gt 0 ] && exit 0
|
|
|
156ebb |
rm -f %{emacs_lisp_path}/xcscope.el
|
|
|
156ebb |
|
|
|
156ebb |
%triggerun -- vim-filesystem
|
|
|
156ebb |
[ $2 -gt 0 ] && exit 0
|
|
|
156ebb |
rm -f %{vim_plugin_path}/cctree.vim
|
|
|
156ebb |
|
|
|
156ebb |
%changelog
|
|
|
156ebb |
* Wed Jun 07 2017 Neil Horman <nhorman@redhat.com> - 15.8-10
|
|
|
156ebb |
- Add emacs-nox to triggin install/uninstall (bz 1412326)
|
|
|
156ebb |
|
|
|
156ebb |
* Wed Feb 17 2016 Neil Horman <nhorman@redhat.com> - 15.8-9
|
|
|
156ebb |
- Resolves bz 1057132)
|
|
|
156ebb |
|
|
|
156ebb |
* Thu Feb 11 2016 Neil Horman <nhorman@redhat.com> - 15.8-8
|
|
|
156ebb |
- Resolves bz 1124571
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 15.8-7
|
|
|
156ebb |
- Mass rebuild 2014-01-24
|
|
|
156ebb |
|
|
|
156ebb |
* Tue Jan 07 2014 Neil Horman <nhorman@redhat.com> - 15.8-6
|
|
|
156ebb |
- Remove xemacs-filesystem as a dep (bz 1049179)
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 15.8-5
|
|
|
156ebb |
- Mass rebuild 2013-12-27
|
|
|
156ebb |
|
|
|
156ebb |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.8-4
|
|
|
156ebb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
156ebb |
|
|
|
156ebb |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.8-3
|
|
|
156ebb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
156ebb |
|
|
|
156ebb |
* Tue Jul 10 2012 Neil Horman <nhorman@redhat.com> - 15.8-2
|
|
|
156ebb |
- Fix inverted index sizing
|
|
|
156ebb |
|
|
|
156ebb |
* Mon Jun 18 2012 Neil Horman <nhorman@redhat.com> - 15.8
|
|
|
156ebb |
- Update to latest upstream
|
|
|
156ebb |
|
|
|
156ebb |
* Mon Mar 12 2012 Neil Horman <nhorman@redhat.com> -15.7a-10
|
|
|
156ebb |
- Fixed a segfault in invlib construction ( bz 786523)
|
|
|
156ebb |
|
|
|
156ebb |
* Mon Mar 05 2012 Neil Horman <nhorman@redhat.com> 15.7a-9
|
|
|
156ebb |
- Fixed a segfault in the symbol assignment search (bz 799643)
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.7a-8
|
|
|
156ebb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
156ebb |
|
|
|
156ebb |
* Wed Jun 30 2011 Neil Horman <nhorman@redhat.com> - 15.7a-7
|
|
|
156ebb |
- Added LEXERR token to catch bad parsing before we crash (bz717545)
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Jun 24 2011 Neil Horman <nhorman@redhat.com> - 15.7a-6
|
|
|
156ebb |
- Fixed licensing for xcscope.el (bz 715898)
|
|
|
156ebb |
- Fixed xemacs pkg. dependency (bz 719523)
|
|
|
156ebb |
|
|
|
156ebb |
* Wed Jun 01 2011 Neil Horman <nhorman@redhat.com> - 15.7a-5
|
|
|
156ebb |
- Fix scriptles macro expansion (bz 708499)
|
|
|
156ebb |
|
|
|
156ebb |
* Thu May 26 2011 Neil Horman <nhorman@redhat.com> - 15.7a-4
|
|
|
156ebb |
- Added cctree.vim vi plugin
|
|
|
156ebb |
|
|
|
156ebb |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.7a-3
|
|
|
156ebb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
156ebb |
|
|
|
156ebb |
* Thu Sep 30 2010 Neil Horman
|
|
|
156ebb |
- Ignore SIGPIPE in line mode (bz 638756)
|
|
|
156ebb |
|
|
|
156ebb |
* Mon Mar 1 2010 Neil Horman <nhorman@redhat.com> - 15.7a-1
|
|
|
156ebb |
- Update to latest upstream release (bz 569043)
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.6-5
|
|
|
156ebb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Jun 12 2009 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- Fix some buffer overflows (bz 505605)
|
|
|
156ebb |
|
|
|
156ebb |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.6-3
|
|
|
156ebb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
156ebb |
|
|
|
156ebb |
* Tue Jul 08 2008 Neil Horman <nhorman@redhat.com> -15.6-2.dist
|
|
|
156ebb |
- Grab upstream patch for -q rebuld (bz 436648)
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Mar 25 2007 Neil Horman <nhorman@redhat.com> -15.6-1.dist
|
|
|
156ebb |
- Rebase to version 15.6
|
|
|
156ebb |
|
|
|
156ebb |
* Mon Mar 05 2007 Neil Horman <nhorman@redhat.com> -15.5-15.4.dist
|
|
|
156ebb |
- Make sigwinch handler only register for curses mode (bz 230862)
|
|
|
156ebb |
|
|
|
156ebb |
* Mon Feb 05 2007 Neil Horman <nhorman@redhat.com> -15.5-15.3.dist
|
|
|
156ebb |
- Fixing dist label in release tag.
|
|
|
156ebb |
|
|
|
156ebb |
* Thu Feb 01 2007 Neil Horman <nhorman@redhat.com> -15.5-15.2.dist
|
|
|
156ebb |
- Fixing changelog to not have macro in release
|
|
|
156ebb |
|
|
|
156ebb |
* Wed Aug 23 2006 Neil Horman <nhorman@redhat.com> -15.5-15.1
|
|
|
156ebb |
- fixed overflows per bz 203651
|
|
|
156ebb |
- start using {dist} tag to make release numbering easier
|
|
|
156ebb |
|
|
|
156ebb |
* Mon Jul 17 2006 Jesse Keating <jkeating@redhat.com> - 15.5-14
|
|
|
156ebb |
- rebuild
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Jun 23 2006 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- Fix putstring overflow (bz 189666)
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Jun 23 2006 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- Fix putstring overflow (bz 189666)
|
|
|
156ebb |
|
|
|
156ebb |
* Fri May 5 2006 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- Adding fix to put SYSDIR in right location (bz190580)
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Apr 21 2006 Neil Horman <nhorman@redhat.com> - 15.5-13.4
|
|
|
156ebb |
- adding inverted index overflow patch
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 15.5-13.2
|
|
|
156ebb |
- bump again for double-long bug on ppc(64)
|
|
|
156ebb |
|
|
|
156ebb |
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 15.5-13.1
|
|
|
156ebb |
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
156ebb |
- rebuild on new gcc
|
|
|
156ebb |
|
|
|
156ebb |
* Tue Nov 30 2004 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- added tempsec patch to fix bz140764/140765
|
|
|
156ebb |
|
|
|
156ebb |
* Mon Nov 29 2004 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- updated cscope resize patch to do less work in
|
|
|
156ebb |
signal handler and synced version nr. on dist.
|
|
|
156ebb |
|
|
|
156ebb |
* Mon Nov 22 2004 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- added cscope-1.5.-resize patch to allow terminal
|
|
|
156ebb |
resizing while cscope is running
|
|
|
156ebb |
|
|
|
156ebb |
* Tue Oct 5 2004 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- modified cscope-15.5.-inverted patch to be upstream
|
|
|
156ebb |
friendly
|
|
|
156ebb |
|
|
|
156ebb |
* Tue Sep 28 2004 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- fixed inverted index bug (bz 133942)
|
|
|
156ebb |
|
|
|
156ebb |
* Mon Sep 13 2004 Frank Ch. Eigler <fche@redhat.com>
|
|
|
156ebb |
- bumped release number to a plain "1"
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Jul 16 2004 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- Added cscope-indexer helper and xcscope lisp addon
|
|
|
156ebb |
- Added man page for xcscope
|
|
|
156ebb |
- Added triggers to add xcscope.el pkg to (x)emacs
|
|
|
156ebb |
- Thanks to Ville, Michael and Jens for thier help :)
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Jul 2 2004 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- Added upstream ocs fix
|
|
|
156ebb |
- Added feature to find symbol assignments
|
|
|
156ebb |
- Changed default SYSDIR directory to /var/lib/cs
|
|
|
156ebb |
- Incoproated M. Schwendt's fix for ocs -s
|
|
|
156ebb |
|
|
|
156ebb |
* Fri Jun 18 2004 Neil Horman <nhorman@redhat.com>
|
|
|
156ebb |
- built the package
|