[erlang-riak_search] Initial commit (see rhbz #841766)

Peter Lemenkov peter at fedoraproject.org
Mon Jul 30 05:18:05 UTC 2012


commit 4673173bef03e6232b5a7d9cb102b0c77f59f406
Author: Peter Lemenkov <lemenkov at gmail.com>
Date:   Mon Jul 30 09:17:52 2012 +0400

    Initial commit (see rhbz #841766)
    
    Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>

 .gitignore                                         |    1 +
 ...-dependency-checking-Fedora-EPEL-specific.patch |   35 ++++++
 erlang-riak_search.spec                            |  113 ++++++++++++++++++++
 sources                                            |    1 +
 4 files changed, 150 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a5a1f05 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/basho-riak_search-1.1.4-0-ga497f8b.tar.gz
diff --git a/erlang-riak_search-0001-Remove-dependency-checking-Fedora-EPEL-specific.patch b/erlang-riak_search-0001-Remove-dependency-checking-Fedora-EPEL-specific.patch
new file mode 100644
index 0000000..9581649
--- /dev/null
+++ b/erlang-riak_search-0001-Remove-dependency-checking-Fedora-EPEL-specific.patch
@@ -0,0 +1,35 @@
+From 224aed156cd6c8bbafeef518ba7bdd84d40ca4ef Mon Sep 17 00:00:00 2001
+From: Peter Lemenkov <lemenkov at gmail.com>
+Date: Sun, 29 Jul 2012 16:04:15 +0400
+Subject: [PATCH 1/1] Remove dependency checking (Fedora/EPEL-specific)
+
+Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
+---
+ rebar.config | 9 ---------
+ 1 file changed, 9 deletions(-)
+
+diff --git a/rebar.config b/rebar.config
+index 0d37b41..cf01b98 100644
+--- a/rebar.config
++++ b/rebar.config
+@@ -3,17 +3,8 @@
+ 
+ {lib_dirs, ["apps"]}.
+ 
+-{require_otp_vsn, "R13B04|R14"}.
+-
+ {cover_enabled, true}.
+ 
+ {edoc_opts, [{preprocess, true}]}.
+ 
+-{deps, [
+-       {riak_kv, "1.1.4", {git, "git://github.com/basho/riak_kv",
+-                                 {tag, "1.1.4"}}},
+-       {merge_index, "1.1.0", {git, "git://github.com/basho/merge_index",
+-                                {tag, "1.1.0"}}}
+-       ]}.
+-
+ {erl_first_files, ["src/riak_search_backend.erl"]}.
+-- 
+1.7.11.2
+
diff --git a/erlang-riak_search.spec b/erlang-riak_search.spec
new file mode 100644
index 0000000..a2c48af
--- /dev/null
+++ b/erlang-riak_search.spec
@@ -0,0 +1,113 @@
+%global realname riak_search
+%global upstream basho
+#
+# This package contains only arch-independent data but install it into
+# arch-dependent directory thus making this package arch-dependent. In order to
+# suppress empty *-debuginfo generation we have to explicitly order
+# debuginfo-generator to skip trying to build *-debuiginfo for that package.
+#
+%global debug_package %{nil}
+%global git_tag a497f8b
+%global patchnumber 0
+
+
+Name:		erlang-%{realname}
+Version:	1.1.4
+Release:	1%{?dist}
+Summary:	Full-text search engine based on Riak
+Group:		Development/Languages
+License:	ASL 2.0
+URL:		https://github.com/basho/riak_search
+# wget --content-disposition https://github.com/basho/riak_search/tarball/1.1.4
+Source0:	%{upstream}-%{realname}-%{version}-%{patchnumber}-g%{git_tag}.tar.gz
+# Fedora/EPEL-specific
+Patch1:		%{name}-0001-Remove-dependency-checking-Fedora-EPEL-specific.patch
+BuildRequires:	erlang-lager
+BuildRequires:	erlang-rebar
+BuildRequires:	erlang-riak_core
+BuildRequires:	erlang-riak_kv
+BuildRequires:	erlang-webmachine
+# Error:erlang(basho_bench_config:get/1)
+# Error:erlang(basho_bench_config:get/2)
+Requires:	erlang-cluster_info%{?_isa}
+Requires:	erlang-crypto%{?_isa}
+Requires:	erlang-erts%{?_isa}
+Requires:	erlang-eunit%{?_isa}
+Requires:	erlang-inets%{?_isa}
+Requires:	erlang-kernel%{?_isa}
+Requires:	erlang-lager%{?_isa}
+Requires:	erlang-luke%{?_isa}
+Requires:	erlang-merge_index%{?_isa}
+Requires:	erlang-mochiweb%{?_isa}
+Requires:	erlang-riak_core%{?_isa}
+Requires:	erlang-riak_kv%{?_isa}
+Requires:	erlang-riak_pipe%{?_isa}
+Requires:	erlang-stdlib%{?_isa}
+Requires:	erlang-webmachine%{?_isa}
+Requires:	erlang-xmerl%{?_isa}
+
+
+%description
+The riak_search OTP application provides Riak with the capability to act as a
+text search engine similar to Apache’s Lucene. Previously Riak Search was a
+release in it’s own right. Since then Basho has decided it would be easier for
+our users if Search was simply a set of functionality that can be enabled via a
+config option. For that reason, if you want to use Search you’ll have to build
+a Riak release and enable it.
+
+
+%prep
+%setup -q -n %{upstream}-%{realname}-8947b2d
+%patch1 -p1 -b .nodeps
+# remove bundled rebar copy - just to be absolutely sure
+rm -f ./rebar
+
+
+%build
+rebar compile -v
+
+
+%install
+mkdir -p %{buildroot}%{_libdir}/erlang/lib/lucene_parser-1/{ebin,include}
+install -p -m 0644 apps/lucene_parser/ebin/lucene_parser.app %{buildroot}%{_libdir}/erlang/lib/lucene_parser-1/ebin/lucene_parser.app
+install -p -m 0644 apps/lucene_parser/ebin/*.beam %{buildroot}%{_libdir}/erlang/lib/lucene_parser-1/ebin
+install -p -m 0644 apps/lucene_parser/include/*.hrl %{buildroot}%{_libdir}/erlang/lib/lucene_parser-1/include/
+
+mkdir -p %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/{ebin,include,priv}
+install -p -m 0644 ebin/%{realname}.app %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+install -p -m 0644 ebin/*.beam %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -p -m 0644 include/*.hrl %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/include/
+install -p -m 0644 priv/default.def %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/priv/
+
+
+%check
+rebar eunit -v
+
+
+%files
+%doc LICENSE README.org
+%dir %{_libdir}/erlang/lib/lucene_parser-1
+%dir %{_libdir}/erlang/lib/lucene_parser-1/ebin
+%dir %{_libdir}/erlang/lib/lucene_parser-1/include
+%{_libdir}/erlang/lib/lucene_parser-1/ebin/lucene_parser.app
+%{_libdir}/erlang/lib/lucene_parser-1/ebin/*.beam
+%{_libdir}/erlang/lib/lucene_parser-1/include/*.hrl
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/include
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/priv
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/*.beam
+%{_libdir}/erlang/lib/%{realname}-%{version}/include/*.hrl
+%{_libdir}/erlang/lib/%{realname}-%{version}/priv/default.def
+
+
+%changelog
+* Sun Jul 29 2012 Peter Lemenkov <lemenkov at gmail.com> - 1.1.4-1
+- Ver. 1.1.4 (fully API compatible with 1.1.2)
+- Removed sed invocation
+- Consistently use macros
+
+* Thu May 17 2012 Peter Lemenkov <lemenkov at gmail.com> - 1.1.2-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..675b990 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+797d7f7dc5f7e0df09060ea06dcc63b5  basho-riak_search-1.1.4-0-ga497f8b.tar.gz


More information about the scm-commits mailing list