1 Star 0 Fork 12

Linux_zhang/cscope

forked from src-openEuler/cscope 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
cscope.spec 2.34 KB
一键复制 编辑 原始数据 按行查看 历史
markeryang 提交于 2022-10-24 17:47 +08:00 . update for mass rebuild and upgrade verification
Name: cscope
Summary: a developer's tool for browsing source code
Version: 15.9
Release: 6
Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{name}-%{version}.tar.gz
URL: http://cscope.sourceforge.net
License: BSD and GPLv2+
BuildRequires: pkgconfig ncurses-devel flex bison m4 gcc autoconf automake
Requires: emacs-filesystem
%description
Cscope is a developer's tool for browsing source code. It has an impeccable
Unix pedigree, having been originally developed at Bell Labs back in the days
of the PDP-11. Cscope was part of the official AT&T Unix distribution for many
years, and has been used to manage projects involving 20 million lines of code
%package_help
%prep
%autosetup -p1
autoreconf
%build
%configure
%make_build
%install
%make_install
install -d %{buildroot}/var/lib/cs
install -d %{buildroot}%{_datadir}/%{name}
cp -a contrib/xcscope/xcscope.el %{buildroot}%{_datadir}/%{name}
install -m 755 contrib/xcscope/%{name}-indexer %{buildroot}%{_bindir}
cp -a contrib/cctree.vim %{buildroot}%{_datadir}/%{name}
for dir in %{_datadir}/xemacs/site-packages/lisp %{_datadir}/emacs/site-lisp ; do
install -d %{buildroot}$dir
ln -s %{_datadir}/%{name}/xcscope.el %{buildroot}$dir
touch %{buildroot}$dir/xcscope.elc
echo "%ghost $dir/xcscope.el*" >> %{name}-%{version}.files
done
%files -f %{name}-%{version}.files
%doc COPYING
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/
%dir /var/lib/cs
%files help
%{_mandir}/man1/*
%doc AUTHORS ChangeLog TODO README
%doc contrib/cctree.txt
%triggerin -- emacs, emacs-nox, emacs-lucid
ln -sf %{_datadir}/%{name}/xcscope.el %{_datadir}/emacs/site-lisp/xcscope.el
%triggerun -- emacs, emacs-nox, emacs-lucid
if [ $2 -gt 0 ]
then
exit 0
fi
rm -f %{_datadir}/emacs/site-lisp/xcscope.el
%triggerin -- vim-filesystem
ln -sf %{_datadir}/%{name}/cctree.vim %{_datadir}/vim/vimfiles/plugin/cctree.vim
%triggerun -- vim-filesystem
if [ $2 -gt 0 ]
then
exit 0
fi
rm -f %{_datadir}/vim/vimfiles/plugin/cctree.vim
%changelog
* Mon Oct 24 2022 yanglongkang<yanglongkang@h-partners.com> - 15.9-6
- rebuild for next release
* Mon Mar 15 2021 liudabo<liudabo1@h-partners.com> - 15.9-5
- split help package from main package
* Fri Dec 11 2020 shixuantong<shixuantong@huawei.com> - 15.9-4
- update Source0 and tarball from upstream
* Tue Dec 3 2019 caomeng<caomeng5@huawei.com> - 15.9-3
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Linux_zhang2024/cscope.git
git@gitee.com:Linux_zhang2024/cscope.git
Linux_zhang2024
cscope
cscope
master

搜索帮助