commit 1d102a2e6714429b627a93bde061c59e2b1a4b3a0e342fa53fabbe1aaeb92955 Author: Martin Pluskal Date: Mon Sep 21 08:24:53 2015 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..b155450 --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + git://github.com/Andersbakken/rtags + git + rtags + 2.0.%ad + + + *.tar + xz + + + diff --git a/generate-tarball.sh b/generate-tarball.sh new file mode 100644 index 0000000..736e725 --- /dev/null +++ b/generate-tarball.sh @@ -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!" diff --git a/rtags-2.0.20150915.tar.xz b/rtags-2.0.20150915.tar.xz new file mode 100644 index 0000000..f80c335 --- /dev/null +++ b/rtags-2.0.20150915.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecf4122ee1593d65630377ed64399b318654419d6869669f2c46ad87d553e643 +size 1148160 diff --git a/rtags-2.0.tar.gz b/rtags-2.0.tar.gz new file mode 100644 index 0000000..2e70026 --- /dev/null +++ b/rtags-2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9068070bf30ba42dee392541de16c37297ee2ea886f691ee6922963fb1ed2857 +size 1272524 diff --git a/rtags.changes b/rtags.changes new file mode 100644 index 0000000..b310fad --- /dev/null +++ b/rtags.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Sep 17 08:53:59 UTC 2015 - sleep_walker@opensuse.org + +- let there be rtags package! + diff --git a/rtags.spec b/rtags.spec new file mode 100644 index 0000000..c0d4389 --- /dev/null +++ b/rtags.spec @@ -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