Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
:
testing
>
cscope
> cscope.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File cscope.spec of Package cscope
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.32 # Name: cscope # >> macros # << macros %define vimpluginname cctree %define vimplugindir %{_datadir}/vimfiles %define vimpluginsubdirs after autoload colors compiler doc ftdetect ftplugin indent keymap macros plugin spell syntax Summary: Developer's tool for browsing source code Version: 15.9 Release: 0 Group: Development/Tools License: BSD URL: https://cscope.sourceforge.net Source0: https://downloads.sourceforge.net/project/%{name}/%{name}/v%{version}/%{name}-%{version}.tar.gz Source100: cscope.yaml Source101: cscope-rpmlintrc Patch0: cscope-15.7a-ocs-sysdir.patch Patch1: cscope-15.9-pkgconfig.patch Patch2: cscope-15.9-emacs-27.patch BuildRequires: pkgconfig(ncursesw) BuildRequires: bison BuildRequires: flex BuildRequires: emacs %description cscope is an interactive, screen-oriented tool that allows the user to browse through C source files for specified elements of code. %if "%{?vendor}" == "chum" Type: console-application DeveloperName: The Santa Cruz Operation PackagedBy: nephros Categories: - Development - Utility PackageIcon: %{url}/pics/cscope_main.jpg Links: Homepage: %{url} %endif %package -n xcscope Summary: Emacs plugin for %{name} Group: Development/Tools Requires: %{name} = %{version}-%{release} Requires: %{name} Requires: emacs %description -n xcscope %if "%{?vendor}" == "chum" Title: CScope for Emacs Type: addon DeveloperName: The Santa Cruz Operation PackagedBy: nephros PackageIcon: https://framalibre.org/images/logo/GNU%20Emacs.png Categories: - Text - Development Links: Homepage: %{url} %endif %package -n vim-%{name} Summary: vim plugin for %{name} Group: Development/Tools BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: %{name} Requires: vim-filesystem %description -n vim-%{name} %if "%{?vendor}" == "chum" Title: CScope for Vim Type: addon DeveloperName: The Santa Cruz Operation PackagedBy: nephros PackageIcon: https://www.vim.org/images/vimlogo.svg Categories: - Text - Development Links: Homepage: %{url} %endif %prep %setup -q -n %{name}-%{version} # cscope-15.7a-ocs-sysdir.patch %patch0 -p1 # cscope-15.9-pkgconfig.patch %patch1 -p1 # cscope-15.9-emacs-27.patch %patch2 -p1 # >> setup # << setup %build # >> build pre mv configure.{in,ac} # << build pre %reconfigure --disable-static # >> build post %make_build pushd contrib/xcscope emacs -batch -q --no-site-file -L . -f batch-byte-compile xcscope.el # << build post %install rm -rf %{buildroot} # >> install pre %make_install # << install pre # >> install post pushd contrib /usr/bin/install -d '%{buildroot}%{vimplugindir}/plugin/' /usr/bin/install -c -m 644 cctree.vim '%{buildroot}%{vimplugindir}/plugin/' /usr/bin/install -d '%{buildroot}%{vimplugindir}/doc/' /usr/bin/install -c -m 644 cctree.txt '%{buildroot}%{vimplugindir}/doc/' pushd xcscope /usr/bin/install -c -m 755 cscope-indexer '%{buildroot}%{_bindir}' /usr/bin/install -d '%{buildroot}%{_datadir}/emacs/site-lisp/' /usr/bin/install -c -m 644 xcscope.el '%{buildroot}%{_datadir}/emacs/site-lisp/' /usr/bin/install -c -m 644 xcscope.elc '%{buildroot}%{_datadir}/emacs/site-lisp/' rm -rf %{buildroot}%{_mandir} # << install post %files %defattr(-,root,root,-) %license COPYING %{_bindir}/cscope %{_bindir}/ocs # >> files # << files %files -n xcscope %defattr(-,root,root,-) %{_bindir}/cscope-indexer %{_datadir}/emacs/site-lisp/* # >> files xcscope # << files xcscope %files -n vim-%{name} %defattr(-,root,root,-) %{vimplugindir}/plugin/%{vimpluginname}.vim %{vimplugindir}/doc/*.txt # >> files vim-%{name} # << files vim-%{name}