forked from pool/rtags
Accepting request 332538 from home:aaptel:rtags
I believe this project belongs in devel:tools. Gave a talk about it at SUSE Labs conf. OBS-URL: https://build.opensuse.org/request/show/332538 OBS-URL: https://build.opensuse.org/package/show/devel:tools/rtags?expand=0&rev=1
This commit is contained in:
76
rtags.spec
Normal file
76
rtags.spec
Normal file
@@ -0,0 +1,76 @@
|
||||
#
|
||||
# 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
|
||||
Version: 2.0.20150915
|
||||
Release: 0
|
||||
Summary: Clang based source code indexer
|
||||
License: GPL-3.0+
|
||||
Group: Development/Tools/Navigators
|
||||
Url: https://github.com/Andersbakken/rtags
|
||||
|
||||
# github release archives don't include rct (git submodule)
|
||||
# you need to:
|
||||
# - get the repo
|
||||
# - checkout the right version tag
|
||||
# - init & update the repo git submodule
|
||||
# - make a tarball out of that
|
||||
# See generate-tarball.sh
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: llvm-devel
|
||||
BuildRequires: llvm-clang-devel
|
||||
BuildRequires: libopenssl-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 -t %{buildroot}%{_scriptdir} bin/*.sh
|
||||
|
||||
|
||||
%files
|
||||
/usr/bin/rc
|
||||
/usr/bin/rdm
|
||||
/usr/bin/rp
|
||||
/usr/share/man/man7/rc.7.gz
|
||||
/usr/share/man/man7/rdm.7.gz
|
||||
%{_sitedir}/rtags
|
||||
%{_scriptdir}
|
||||
%doc LICENSE.txt README.org
|
||||
%changelog
|
Reference in New Issue
Block a user