b9252d5
Summary: C source code tree search and browse tool 
b9252d5
Name: cscope
Neil Horman 51d0c75
Version: 15.8
Neil Horman 6ad56c3
Release: 8%{?dist}
Neil Horman 51d0c75
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2
b9252d5
URL: http://cscope.sourceforge.net
Neil Horman 9f6b966
License: BSD and GPLv2+
b9252d5
Group: Development/Tools 
b9252d5
BuildRoot: %{_tmppath}/%{name}-%{version}
b9252d5
BuildRequires: pkgconfig ncurses-devel flex bison m4
Neil Horman 4ee4fd7
BuildRequires: autoconf automake
Neil Horman 9f6b966
Requires: emacs-filesystem xemacs-filesystem
b9252d5
b9252d5
%define cscope_share_path %{_datadir}/cscope
b9252d5
%define xemacs_lisp_path %{_datadir}/xemacs/site-packages/lisp
b9252d5
%define emacs_lisp_path %{_datadir}/emacs/site-lisp
Neil Horman 1a367bf
%define vim_plugin_path %{_datadir}/vim/vimfiles/plugin
b9252d5
Neil Horman 860da53
Patch0: cscope-invindex-sizing.patch
Neil Horman 7ff0471
Patch1: cscope-15.8-configure-in.patch
Neil Horman 6ad56c3
Patch2: cscope-15.8-empty-function-array.patch
Neil Horman 860da53
b9252d5
%description
b9252d5
cscope is a mature, ncurses based, C source code tree browsing tool.  It 
b9252d5
allows users to search large source code bases for variables, functions,
b9252d5
macros, etc, as well as perform general regex and plain text searches.  
b9252d5
Results are returned in lists, from which the user can select individual 
b9252d5
matches for use in file editing.
b9252d5
b9252d5
%prep
b9252d5
%setup -q
Neil Horman 860da53
%patch0 -p0
Neil Horman 7ff0471
%patch1 -p0
Neil Horman 6ad56c3
%patch2 -p0
Neil Horman 6ad56c3
Neil Horman 7ff0471
autoreconf
b9252d5
b9252d5
%build
b9252d5
%configure
b9252d5
make
b9252d5
b9252d5
%install
b9252d5
rm -rf $RPM_BUILD_ROOT %{name}-%{version}.files
b9252d5
make DESTDIR=$RPM_BUILD_ROOT install 
b9252d5
mkdir -p $RPM_BUILD_ROOT/var/lib/cs
b9252d5
mkdir -p $RPM_BUILD_ROOT%{cscope_share_path}
b9252d5
cp -a contrib/xcscope/xcscope.el $RPM_BUILD_ROOT%{cscope_share_path}
b9252d5
cp -a contrib/xcscope/cscope-indexer $RPM_BUILD_ROOT%{_bindir}
Neil Horman 07eae65
cp -a contrib/cctree.vim $RPM_BUILD_ROOT%{cscope_share_path}
b9252d5
for dir in %{xemacs_lisp_path} %{emacs_lisp_path} ; do
b9252d5
  mkdir -p $RPM_BUILD_ROOT$dir
b9252d5
  ln -s %{cscope_share_path}/xcscope.el $RPM_BUILD_ROOT$dir
b9252d5
  touch $RPM_BUILD_ROOT$dir/xcscope.elc
b9252d5
  echo "%ghost $dir/xcscope.el*" >> %{name}-%{version}.files
b9252d5
done
b9252d5
b9252d5
b9252d5
%clean
b9252d5
rm -rf $RPM_BUILD_ROOT
b9252d5
b9252d5
b9252d5
%files -f %{name}-%{version}.files
b9252d5
%defattr(-,root,root,-)
b9252d5
%{_bindir}/*
b9252d5
%dir %{cscope_share_path}
Neil Horman 07eae65
%{cscope_share_path}/
b9252d5
%{_mandir}/man1/*
b9252d5
%dir /var/lib/cs
Neil Horman 07eae65
%doc AUTHORS COPYING ChangeLog README TODO contrib/cctree.txt
b9252d5
b9252d5
%triggerin -- xemacs
b9252d5
ln -sf %{cscope_share_path}/xcscope.el %{xemacs_lisp_path}/xcscope.el
b9252d5
b9252d5
%triggerin -- emacs
b9252d5
ln -sf %{cscope_share_path}/xcscope.el %{emacs_lisp_path}/xcscope.el
b9252d5
Neil Horman 07eae65
%triggerin -- vim-filesystem
Neil Horman 07eae65
ln -sf %{cscope_share_path}/cctree.vim %{vim_plugin_path}/cctree.vim
Neil Horman 07eae65
b9252d5
%triggerun -- xemacs
b9252d5
[ $2 -gt 0 ] && exit 0
b9252d5
rm -f %{xemacs_lisp_path}/xcscope.el
b9252d5
b9252d5
%triggerun -- emacs
b9252d5
[ $2 -gt 0 ] && exit 0
b9252d5
rm -f %{emacs_lisp_path}/xcscope.el
b9252d5
Neil Horman 07eae65
%triggerun -- vim-filesystem
Neil Horman 07eae65
[ $2 -gt 0 ] && exit 0
Neil Horman 07eae65
rm -f %{vim_plugin_path}/cctree.vim
Neil Horman 07eae65
b9252d5
%changelog
Neil Horman 6ad56c3
* Tue Apr 15 2014 Neil Horman <nhorman@redhat.com> - 15.8-8
Neil Horman 6ad56c3
- Fixed formatting issue with empty function array (bz 1087940)
Neil Horman 6ad56c3
357f628
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.8-7
357f628
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
357f628
Neil Horman 4ee4fd7
* Mon Mar 25 2013 Neil Horman <nhorman@redhat.com> - 15.8-6
Neil Horman 4ee4fd7
- Fixed build break
Neil Horman 4ee4fd7
Neil Horman 7ff0471
* Mon Mar 25 2013 Neil Horman <nhorman@redhat.com> - 15.8-5
Neil Horman 7ff0471
- Updated to run autoreconf for impending aarch64 introduction (bz 925201)
Neil Horman 7ff0471
52ae26d
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.8-4
52ae26d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
52ae26d
7a242a4
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.8-3
7a242a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7a242a4
Neil Horman 860da53
* Tue Jul 10 2012 Neil Horman <nhorman@redhat.com> - 15.8-2
Neil Horman 860da53
- Fix inverted index sizing
Neil Horman 860da53
Neil Horman 51d0c75
* Mon Jun 18 2012 Neil Horman <nhorman@redhat.com> - 15.8
Neil Horman 51d0c75
- Update to latest upstream
Neil Horman 51d0c75
Neil Horman 5475e87
* Mon Mar 12 2012 Neil Horman <nhorman@redhat.com> -15.7a-10
Neil Horman 5475e87
- Fixed a segfault in invlib construction ( bz 786523)
Neil Horman 5475e87
Neil Horman 3eedd0b
* Mon Mar 05 2012 Neil Horman <nhorman@redhat.com> 15.7a-9
Neil Horman 3eedd0b
- Fixed a segfault in the symbol assignment search (bz 799643)
Neil Horman 3eedd0b
e26dff6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.7a-8
e26dff6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e26dff6
Neil Horman 099b3da
* Wed Jun 30 2011 Neil Horman <nhorman@redhat.com> - 15.7a-7
Neil Horman 099b3da
- Added LEXERR token to catch bad parsing before we crash (bz717545)
Neil Horman 099b3da
Neil Horman 9f6b966
* Fri Jun 24 2011 Neil Horman <nhorman@redhat.com> - 15.7a-6
Neil Horman 9f6b966
- Fixed licensing for xcscope.el (bz 715898)
Neil Horman 9f6b966
- Fixed xemacs pkg. dependency (bz 719523)
Neil Horman 9f6b966
Neil Horman 1a367bf
* Wed Jun 01 2011 Neil Horman <nhorman@redhat.com> - 15.7a-5
Neil Horman 1a367bf
- Fix scriptles macro expansion (bz 708499)
Neil Horman 1a367bf
Neil Horman 07eae65
* Thu May 26 2011 Neil Horman <nhorman@redhat.com> - 15.7a-4
Neil Horman 07eae65
- Added cctree.vim vi plugin
Neil Horman 07eae65
c92501c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.7a-3
c92501c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c92501c
Neil Horman 53f7520
* Thu Sep 30 2010 Neil Horman 
Neil Horman 53f7520
- Ignore SIGPIPE in line mode (bz 638756)
Neil Horman 53f7520
00a193b
* Mon Mar 1 2010 Neil Horman <nhorman@redhat.com> - 15.7a-1
00a193b
- Update to latest upstream release (bz 569043)
00a193b
1b3bf20
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.6-5
1b3bf20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1b3bf20
faafb29
* Fri Jun 12 2009 Neil Horman <nhorman@redhat.com>
faafb29
- Fix some buffer overflows (bz 505605)
faafb29
9d32894
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.6-3
9d32894
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9d32894
3111970
* Tue Jul 08 2008 Neil Horman <nhorman@redhat.com> -15.6-2.dist
3111970
- Grab upstream patch for -q rebuld (bz 436648)
3111970
bf72a06
* Fri Mar 25 2007 Neil Horman <nhorman@redhat.com> -15.6-1.dist
bf72a06
- Rebase to version 15.6
6294e95
6eb1cd7
* Mon Mar 05 2007 Neil Horman <nhorman@redhat.com> -15.5-15.4.dist
6eb1cd7
- Make sigwinch handler only register for curses mode (bz 230862)
6eb1cd7
8c96a46
* Mon Feb 05 2007 Neil Horman <nhorman@redhat.com> -15.5-15.3.dist
8c96a46
- Fixing dist label in release tag.
8c96a46
1151b2a
* Thu Feb 01 2007 Neil Horman <nhorman@redhat.com> -15.5-15.2.dist
1151b2a
- Fixing changelog to not have macro in release
1151b2a
1151b2a
* Wed Aug 23 2006 Neil Horman <nhorman@redhat.com> -15.5-15.1
a13fed4
- fixed overflows per bz 203651
1151b2a
- start using {dist} tag to make release numbering easier
a13fed4
8c4d519
* Mon Jul 17 2006 Jesse Keating <jkeating@redhat.com> - 15.5-14
8c4d519
- rebuild
8c4d519
8c4d519
* Fri Jun 23 2006 Neil Horman <nhorman@redhat.com>
8c4d519
- Fix putstring overflow (bz 189666)
8c4d519
1da0916
* Fri Jun 23 2006 Neil Horman <nhorman@redhat.com>
1da0916
- Fix putstring overflow (bz 189666)
1da0916
a0b06da
* Fri May 5  2006 Neil Horman <nhorman@redhat.com>
a0b06da
- Adding fix to put SYSDIR in right location (bz190580)
a0b06da
bbb4295
* Fri Apr 21 2006 Neil Horman <nhorman@redhat.com> - 15.5-13.4
bbb4295
- adding inverted index overflow patch
bbb4295
4d02f79
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 15.5-13.2
4d02f79
- bump again for double-long bug on ppc(64)
4d02f79
8337e71
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 15.5-13.1
8337e71
- rebuilt for new gcc4.1 snapshot and glibc changes
8337e71
4154541
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
4154541
- rebuild on new gcc
4154541
cf86bbb
* Tue Nov 30 2004 Neil Horman <nhorman@redhat.com>
cf86bbb
- added tempsec patch to fix bz140764/140765
cf86bbb
451bf47
* Mon Nov 29 2004 Neil Horman <nhorman@redhat.com>
451bf47
- updated cscope resize patch to do less work in
451bf47
  signal handler and synced version nr. on dist.
451bf47
067719a
* Mon Nov 22 2004 Neil Horman <nhorman@redhat.com>
067719a
- added cscope-1.5.-resize patch to allow terminal
067719a
  resizing while cscope is running
79b1fc9
6639cc3
* Tue Oct 5  2004 Neil Horman <nhorman@redhat.com>
6639cc3
- modified cscope-15.5.-inverted patch to be upstream
6639cc3
  friendly
6639cc3
cdfea3c
* Tue Sep 28 2004 Neil Horman <nhorman@redhat.com>
cdfea3c
- fixed inverted index bug (bz 133942)
cdfea3c
 
875fc3b
* Mon Sep 13 2004 Frank Ch. Eigler <fche@redhat.com>
875fc3b
- bumped release number to a plain "1"
875fc3b
b9252d5
* Fri Jul 16 2004 Neil Horman <nhorman@redhat.com>
b9252d5
- Added cscope-indexer helper and xcscope lisp addon
b9252d5
- Added man page for xcscope
b9252d5
- Added triggers to add xcscope.el pkg to (x)emacs
b9252d5
- Thanks to Ville, Michael and Jens for thier help :)
b9252d5
b9252d5
* Fri Jul 2 2004 Neil Horman <nhorman@redhat.com>
b9252d5
- Added upstream ocs fix
b9252d5
- Added feature to find symbol assignments
b9252d5
- Changed default SYSDIR directory to /var/lib/cs
b9252d5
- Incoproated M. Schwendt's fix for ocs -s 
b9252d5
b9252d5
* Fri Jun 18 2004 Neil Horman <nhorman@redhat.com>
b9252d5
- built the package