b9252d5
Summary: C source code tree search and browse tool 
b9252d5
Name: cscope
832dfa9
Version: 15.5
bbb4295
Release: 13.4 
b9252d5
Source0: http://unc.dl.sourceforge.net/sourceforge/cscope/cscope-15.5.tar.gz 
b9252d5
URL: http://cscope.sourceforge.net
b9252d5
License: BSD 
b9252d5
Group: Development/Tools 
b9252d5
BuildRoot: %{_tmppath}/%{name}-%{version}
b9252d5
BuildRequires: pkgconfig ncurses-devel flex bison m4
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
b9252d5
b9252d5
Patch0:cscope-15.5-ocs.patch
b9252d5
Patch1:cscope-15.5-findassign.patch
b9252d5
Patch2:cscope-15.5-ocs-dash_s_fix.patch
b9252d5
Patch3:cscope-15.5-xcscope-man.patch
cdfea3c
Patch4:cscope-15.5-inverted.patch
067719a
Patch5:cscope-15.5-resize.patch
cf86bbb
Patch6:cscope-15.5-tempsec.patch
bbb4295
Patch7:cscope-15.5-inv-overflow.patch
b9252d5
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
b9252d5
%patch0 -p1
b9252d5
%patch1 -p1
b9252d5
%patch2 -p1
b9252d5
%patch3 -p1
cdfea3c
%patch4 -p1
5b7149c
%patch5 -p1
cf86bbb
%patch6 -p1
bbb4295
%patch7 -p1
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}
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}
b9252d5
%{cscope_share_path}/xcscope.el
b9252d5
%{_mandir}/man1/*
b9252d5
%dir /var/lib/cs
b9252d5
%doc AUTHORS COPYING ChangeLog README TODO
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
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
b9252d5
%changelog
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