2007-01-16 00:08:09 +01:00
|
|
|
#
|
2011-05-02 14:38:14 +02:00
|
|
|
# spec file for package cscope
|
2007-01-16 00:08:09 +01:00
|
|
|
#
|
2017-03-24 13:58:14 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:08:09 +01:00
|
|
|
#
|
2009-02-16 01:14:51 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:08:09 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-09-04 09:52:30 +02:00
|
|
|
|
2007-01-16 00:08:09 +01:00
|
|
|
Name: cscope
|
2016-01-03 09:27:52 +01:00
|
|
|
Version: 15.8b
|
2011-12-22 16:16:24 +01:00
|
|
|
Release: 0
|
2007-01-16 00:08:09 +01:00
|
|
|
Summary: Interactive Tool for Browsing C Source Code
|
2011-12-22 16:16:24 +01:00
|
|
|
License: BSD-3-Clause
|
2011-05-02 14:38:02 +02:00
|
|
|
Group: Development/Tools/Navigators
|
2011-12-22 16:16:24 +01:00
|
|
|
Url: http://cscope.sourceforge.net/
|
2015-04-04 11:14:06 +02:00
|
|
|
Source: http://sourceforge.net/projects/cscope/files/cscope/%{version}/%{name}-%{version}.tar.gz
|
2017-03-24 13:58:14 +01:00
|
|
|
Patch1: cscope-null.patch
|
|
|
|
Patch2: cscope-15.7-gcc-warnings.patch
|
|
|
|
Patch3: cscope-15.7-vpath.patch
|
|
|
|
Patch4: cscope-15.8a-fix-bashisms.patch
|
|
|
|
Patch5: cscope-cleanup_on_sigterm.patch
|
|
|
|
Patch6: cscope-egrep.out.patch
|
2015-01-05 15:28:18 +01:00
|
|
|
Patch7: support-fun-as-params.patch
|
2011-05-02 14:38:02 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: ncurses-devel
|
2017-03-24 13:58:14 +01:00
|
|
|
BuildRequires: pkgconfig
|
2007-01-16 00:08:09 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Cscope is an interactive, screen-oriented tool that allows the user to
|
|
|
|
browse through C source code files for specified elements of code.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2014-11-21 14:07:45 +01:00
|
|
|
%patch4 -p1
|
2007-12-13 14:02:11 +01:00
|
|
|
%patch5
|
2011-06-23 16:44:07 +02:00
|
|
|
%patch6 -p1
|
2015-01-05 15:28:18 +01:00
|
|
|
%patch7 -p1
|
2007-01-16 00:08:09 +01:00
|
|
|
|
|
|
|
%build
|
2009-02-16 01:14:51 +01:00
|
|
|
%configure
|
2011-09-20 13:00:24 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:08:09 +01:00
|
|
|
|
|
|
|
%install
|
2011-05-02 14:38:02 +02:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
install -m 755 src/cscope %{buildroot}%{_bindir}/cscope
|
|
|
|
install -m 644 doc/cscope.1 %{buildroot}%{_mandir}/man1/cscope.1
|
|
|
|
install -m 755 contrib/xcscope/cscope-indexer %{buildroot}%{_bindir}/cscope-indexer
|
2009-02-16 01:14:51 +01:00
|
|
|
pushd contrib
|
2017-03-24 13:58:14 +01:00
|
|
|
%make_install
|
2009-02-16 01:14:51 +01:00
|
|
|
popd
|
2007-01-16 00:08:09 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2015-01-05 15:28:18 +01:00
|
|
|
%doc TODO COPYING ChangeLog AUTHORS README NEWS
|
2017-03-24 13:58:14 +01:00
|
|
|
%{_mandir}/man1/cscope.1%{ext_man}
|
2009-02-16 01:14:51 +01:00
|
|
|
%{_bindir}/cscope
|
|
|
|
%{_bindir}/ocs
|
2011-05-02 14:38:02 +02:00
|
|
|
%{_bindir}/cscope-indexer
|
2007-01-16 00:08:09 +01:00
|
|
|
|
2007-03-30 02:34:22 +02:00
|
|
|
%changelog
|