SHA256
1
0
forked from pool/rtags
rtags/rtags.spec
Martin Pluskal ecb99807eb Accepting request 572221 from home:marxin:branches:devel:tools
- Update to version 2.18+git.20180130.98d668e8:
  * Bump version to 2.18
  * Roll back this one.
  * Fix warning.
  * trigger this on ctest.
  * Try this.
  * Fix package name.
  * Maybe like this?
  * Try to add more compilers.
  * Remove unused capture part deux.
  * Remove unused capture.

OBS-URL: https://build.opensuse.org/request/show/572221
OBS-URL: https://build.opensuse.org/package/show/devel:tools/rtags?expand=0&rev=9
2018-02-05 09:53:28 +00:00

69 lines
2.0 KiB
RPMSpec

#
# spec file for package rtags
#
# Copyright (c) 2018 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
Version: 2.18+git.20180130.98d668e8
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
BuildRequires: emacs-nox
BuildRequires: gcc-c++
BuildRequires: libopenssl-devel
BuildRequires: llvm-clang-devel
BuildRequires: llvm-devel
BuildRequires: ncurses-devel
%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}
install -m 0755 -t %{buildroot}%{_scriptdir} bin/*.sh
chmod 0755 %{buildroot}%{_bindir}/gcc-rtags-wrapper.sh
%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man7/rc.7.gz
%{_mandir}/man7/rdm.7.gz
%{_sitedir}/rtags
%{_scriptdir}
%doc LICENSE.txt README.org
%changelog