|
|
|
@ -1,14 +1,20 @@
|
|
|
|
|
%if !0%{?rhel} && 0%{?fedora} < 36
|
|
|
|
|
%bcond_without xemacs
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with xemacs
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Summary: C source code tree search and browse tool
|
|
|
|
|
Name: cscope
|
|
|
|
|
Version: 15.9
|
|
|
|
|
Release: 25%{?dist}
|
|
|
|
|
Release: 26%{?dist}
|
|
|
|
|
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
URL: http://cscope.sourceforge.net
|
|
|
|
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
|
|
|
|
BuildRequires: pkgconf-pkg-config ncurses-devel gcc flex bison m4
|
|
|
|
|
BuildRequires: autoconf automake make
|
|
|
|
|
Requires: emacs-filesystem coreutils ed
|
|
|
|
|
%if !0%{?rhel} && 0%{?fedora} < 36
|
|
|
|
|
%if %{with xemacs}
|
|
|
|
|
Requires: xemacs-filesystem
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -29,9 +35,10 @@ Patch11: dist-1-coverity-fixes.patch
|
|
|
|
|
Patch12: dist-2-cscope-indexer-help.patch
|
|
|
|
|
Patch13: dist-3-add-selftests.patch
|
|
|
|
|
Patch14: dist-4-fix-printf.patch
|
|
|
|
|
Patch15: dist-5-fix-signal-handler.patch
|
|
|
|
|
|
|
|
|
|
%define cscope_share_path %{_datadir}/cscope
|
|
|
|
|
%if !0%{?rhel} && 0%{?fedora} < 36
|
|
|
|
|
%if %{with xemacs}
|
|
|
|
|
%define xemacs_lisp_path %{_datadir}/xemacs/site-packages/lisp
|
|
|
|
|
%else
|
|
|
|
|
%define xemacs_lisp_path %nil
|
|
|
|
@ -83,24 +90,24 @@ make check
|
|
|
|
|
%dir /var/lib/cs
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README TODO contrib/cctree.txt
|
|
|
|
|
|
|
|
|
|
%if !0%{?rhel} && 0%{?fedora} < 36
|
|
|
|
|
%if %{with xemacs}
|
|
|
|
|
%triggerin -- xemacs
|
|
|
|
|
ln -sf %{cscope_share_path}/xcscope.el %{xemacs_lisp_path}/xcscope.el
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%triggerin -- emacs, emacs-nox, emacs-lucid
|
|
|
|
|
%triggerin -- emacs, emacs-nw, emacs-lucid, emacs-gtk+x11
|
|
|
|
|
ln -sf %{cscope_share_path}/xcscope.el %{emacs_lisp_path}/xcscope.el
|
|
|
|
|
|
|
|
|
|
%triggerin -- vim-filesystem
|
|
|
|
|
ln -sf %{cscope_share_path}/cctree.vim %{vim_plugin_path}/cctree.vim
|
|
|
|
|
|
|
|
|
|
%if !0%{?rhel} && 0%{?fedora} < 36
|
|
|
|
|
%if %{with xemacs}
|
|
|
|
|
%triggerun -- xemacs
|
|
|
|
|
[ $2 -gt 0 ] && exit 0
|
|
|
|
|
rm -f %{xemacs_lisp_path}/xcscope.el
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%triggerun -- emacs, emacs-nox, emacs-lucid
|
|
|
|
|
%triggerun -- emacs, emacs-nw, emacs-lucid, emacs-gtk+x11
|
|
|
|
|
[ $2 -gt 0 ] && exit 0
|
|
|
|
|
rm -f %{emacs_lisp_path}/xcscope.el
|
|
|
|
|
|
|
|
|
@ -109,9 +116,15 @@ rm -f %{emacs_lisp_path}/xcscope.el
|
|
|
|
|
rm -f %{vim_plugin_path}/cctree.vim
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Oct 31 2024 Vladis Dronov <vdronov@redhat.com> - 15.9-26
|
|
|
|
|
- Update cscope to 15.9-26 from Fedora (RHEL-65464)
|
|
|
|
|
- Fix signal handling at exit
|
|
|
|
|
- Add emacs-nw and emacs-gtk+x11 to supported emacs flavors
|
|
|
|
|
- Minor edits in the rpm scripts
|
|
|
|
|
- Make xemacs a bcond
|
|
|
|
|
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 15.9-25
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
- Bump release for October 2024 mass rebuild (RHEL-64018)
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 15.9-24
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|