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:
commit
1d102a2e67
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
13
_service
Normal file
13
_service
Normal file
@ -0,0 +1,13 @@
|
||||
<services>
|
||||
<service mode="localonly" name="tar_scm">
|
||||
<param name="url">git://github.com/Andersbakken/rtags</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="filename">rtags</param>
|
||||
<param name="versionformat">2.0.%ad</param>
|
||||
</service>
|
||||
<service mode="localonly" name="recompress">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service mode="localonly" name="set_version"/>
|
||||
</services>
|
40
generate-tarball.sh
Normal file
40
generate-tarball.sh
Normal file
@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
vers="2.0"
|
||||
|
||||
while getopts v:h opt ; do
|
||||
case $opt in
|
||||
v) vers="$OPTARG" ;;
|
||||
*) echo "Usage: $0 [-v RTAGS-VERSION]" ; exit 1; ;;
|
||||
esac
|
||||
done
|
||||
|
||||
msg() {
|
||||
echo "[*] $*"
|
||||
}
|
||||
|
||||
dir="rtags-$vers"
|
||||
tag="v$vers"
|
||||
tarball="$dir.tar.gz"
|
||||
|
||||
msg "cleaning existing repo/tarball"
|
||||
rm -rf "$dir" "$tarball"
|
||||
|
||||
msg "cloning repo"
|
||||
git clone https://github.com/Andersbakken/rtags.git "$dir"
|
||||
|
||||
msg "init submodules"
|
||||
cd "$dir"
|
||||
git checkout "$tag"
|
||||
git submodule init
|
||||
git submodule update
|
||||
cd ..
|
||||
|
||||
msg "make tarball"
|
||||
find "$dir" -type f | grep -v '/.git' | xargs -d '\n' tar cfvz "$tarball"
|
||||
|
||||
msg "remove repo"
|
||||
rm -rf "$dir"
|
||||
|
||||
msg "done!"
|
3
rtags-2.0.20150915.tar.xz
Normal file
3
rtags-2.0.20150915.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ecf4122ee1593d65630377ed64399b318654419d6869669f2c46ad87d553e643
|
||||
size 1148160
|
3
rtags-2.0.tar.gz
Normal file
3
rtags-2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9068070bf30ba42dee392541de16c37297ee2ea886f691ee6922963fb1ed2857
|
||||
size 1272524
|
5
rtags.changes
Normal file
5
rtags.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 17 08:53:59 UTC 2015 - sleep_walker@opensuse.org
|
||||
|
||||
- let there be rtags package!
|
||||
|
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
|
Loading…
Reference in New Issue
Block a user