2015-09-21 10:24:53 +02:00
|
|
|
#
|
|
|
|
# spec file for package rtags
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
|
|
|
|
Name: rtags
|
2017-03-03 13:02:18 +01:00
|
|
|
Version: 2.8+git.20161226.6ac7740e
|
2015-09-21 10:24:53 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Clang based source code indexer
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Development/Tools/Navigators
|
|
|
|
Url: https://github.com/Andersbakken/rtags
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
BuildRequires: cmake
|
2015-11-10 14:29:07 +01:00
|
|
|
BuildRequires: emacs-nox
|
|
|
|
BuildRequires: gcc-c++
|
2015-09-21 10:24:53 +02:00
|
|
|
BuildRequires: libopenssl-devel
|
2015-11-10 14:29:07 +01:00
|
|
|
BuildRequires: llvm-clang-devel
|
|
|
|
BuildRequires: llvm-devel
|
|
|
|
BuildRequires: ncurses-devel
|
2015-09-21 10:24:53 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Rtags is Clang based source file indexer supporting C/C++/Objective-C(++) code.
|
|
|
|
|
|
|
|
%define _sitedir %{_datadir}/emacs/site-lisp
|
|
|
|
%define _scriptdir %{_datadir}/rtags/
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags} -Wno-unused-parameter"
|
|
|
|
export CXXFLAGS="%{optflags} -Wno-unused-parameter"
|
|
|
|
%cmake \
|
|
|
|
-DCURSES_CURSES_LIBRARY:FILEPATH="%{_libdir}/libncurses.so"
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
mkdir -p %{buildroot}%{_sitedir} %{buildroot}%{_scriptdir}
|
2015-11-10 14:29:07 +01:00
|
|
|
install -m 0755 -t %{buildroot}%{_scriptdir} bin/*.sh
|
|
|
|
chmod 0755 %{buildroot}%{_bindir}/gcc-rtags-wrapper.sh
|
2015-09-21 10:24:53 +02:00
|
|
|
|
|
|
|
%files
|
2015-11-10 14:29:07 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man7/rc.7.gz
|
|
|
|
%{_mandir}/man7/rdm.7.gz
|
2015-09-21 10:24:53 +02:00
|
|
|
%{_sitedir}/rtags
|
|
|
|
%{_scriptdir}
|
|
|
|
%doc LICENSE.txt README.org
|
2015-11-10 14:29:07 +01:00
|
|
|
|
2015-09-21 10:24:53 +02:00
|
|
|
%changelog
|