|
@@ -3,7 +3,7 @@
|
|
%global _initddir %{_sysconfdir}/init.d/
|
|
%global _initddir %{_sysconfdir}/init.d/
|
|
|
|
|
|
Name: groonga
|
|
Name: groonga
|
|
-Version: 4.0.6
|
|
+Version: 5.1.0
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Summary: An Embeddable Fulltext Search Engine
|
|
Summary: An Embeddable Fulltext Search Engine
|
|
|
|
|
|
@@ -11,9 +11,6 @@ Group: Applications/Text
|
|
License: LGPLv2
|
|
License: LGPLv2
|
|
URL: http://groonga.org/
|
|
URL: http://groonga.org/
|
|
Source0: http://packages.groonga.org/source/groonga/groonga-%{version}.tar.gz
|
|
Source0: http://packages.groonga.org/source/groonga/groonga-%{version}.tar.gz
|
|
-# from upstream 06fe432ad0c7eccec43f4824467e4c30e7026c7f
|
|
|
|
-# https://github.com/groonga/groonga/commit/60a00564d2e9b99c898a25e4ecb3f5c43fb8cf97
|
|
|
|
-#Patch1: groonga-3.0.0-06fe432a.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
|
BuildRequires: mecab-devel
|
|
BuildRequires: mecab-devel
|
|
@@ -76,7 +73,7 @@ Obsoletes: %{name}-server < 2.0.7-0
|
|
This package contains the groonga GQTP server
|
|
This package contains the groonga GQTP server
|
|
|
|
|
|
%package server-http
|
|
%package server-http
|
|
-Summary: Groonga HTTP server (stable)
|
|
+Summary: Groonga HTTP server (transitional)
|
|
Group: Applications/Text
|
|
Group: Applications/Text
|
|
License: LGPLv2
|
|
License: LGPLv2
|
|
Requires: %{name}-server-common = %{version}-%{release}
|
|
Requires: %{name}-server-common = %{version}-%{release}
|
|
@@ -90,14 +87,15 @@ Obsoletes: %{name} < 1.2.2-0
|
|
Obsoletes: %{name}-server < 2.0.7-0
|
|
Obsoletes: %{name}-server < 2.0.7-0
|
|
|
|
|
|
%description server-http
|
|
%description server-http
|
|
-This package contains the groonga HTTP server
|
|
+This is a transitional package to groonga-httpd.
|
|
|
|
|
|
%package httpd
|
|
%package httpd
|
|
-Summary: Groonga HTTP server (experimental)
|
|
+Summary: Groonga HTTP server
|
|
Group: Applications/Text
|
|
Group: Applications/Text
|
|
License: LGPLv2 and BSD
|
|
License: LGPLv2 and BSD
|
|
Requires: %{name}-server-common = %{version}-%{release}
|
|
Requires: %{name}-server-common = %{version}-%{release}
|
|
-Conflicts: %{name}-server-http
|
|
+Provides: %{name}-server-http = %{version}-%{release}
|
|
|
|
+Obsoletes: %{name}-server-http <= 4.0.7-2
|
|
|
|
|
|
%description httpd
|
|
%description httpd
|
|
This package contains the groonga HTTP server. It is experimental
|
|
This package contains the groonga HTTP server. It is experimental
|
|
@@ -110,34 +108,34 @@ Group: Documentation
|
|
License: LGPLv2 and BSD
|
|
License: LGPLv2 and BSD
|
|
|
|
|
|
%description doc
|
|
%description doc
|
|
-Documentation for groonga
|
|
+Documentation for Groonga
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
-Summary: Libraries and header files for groonga
|
|
+Summary: Libraries and header files for Groonga
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
-Libraries and header files for groonga
|
|
+Libraries and header files for Groonga
|
|
|
|
|
|
%package tokenizer-mecab
|
|
%package tokenizer-mecab
|
|
-Summary: MeCab tokenizer for groonga
|
|
+Summary: MeCab tokenizer for Groonga
|
|
Group: Applications/Text
|
|
Group: Applications/Text
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
%description tokenizer-mecab
|
|
%description tokenizer-mecab
|
|
-MeCab tokenizer for groonga
|
|
+MeCab tokenizer for Groonga
|
|
|
|
|
|
%package plugin-suggest
|
|
%package plugin-suggest
|
|
-Summary: Suggest plugin for groonga
|
|
+Summary: Suggest plugin for Groonga
|
|
Group: Applications/Text
|
|
Group: Applications/Text
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
%description plugin-suggest
|
|
%description plugin-suggest
|
|
-Sugget plugin for groonga
|
|
+Sugget plugin for Groonga
|
|
|
|
|
|
%package munin-plugins
|
|
%package munin-plugins
|
|
-Summary: Munin plugins for groonga
|
|
+Summary: Munin plugins for Groonga
|
|
Group: Applications/System
|
|
Group: Applications/System
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
Requires: munin-node
|
|
Requires: munin-node
|
|
@@ -146,12 +144,11 @@ Requires(post): /sbin/service
|
|
Requires(postun): /sbin/service
|
|
Requires(postun): /sbin/service
|
|
|
|
|
|
%description munin-plugins
|
|
%description munin-plugins
|
|
-Munin plugins for groonga
|
|
+Munin plugins for Groonga
|
|
|
|
|
|
%prep
|
|
%prep
|
|
#% define optflags -O0
|
|
#% define optflags -O0
|
|
%setup -q
|
|
%setup -q
|
|
-#%patch1 -p 1
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
%configure \
|
|
%configure \
|
|
@@ -161,7 +158,10 @@ Munin plugins for groonga
|
|
%if %{use_lzo}
|
|
%if %{use_lzo}
|
|
--with-lzo \
|
|
--with-lzo \
|
|
%endif
|
|
%endif
|
|
- --with-munin-plugins
|
|
+ --with-mecab \
|
|
|
|
+ --with-munin-plugins \
|
|
|
|
+ --enable-mruby
|
|
|
|
+
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
@@ -185,11 +185,26 @@ cat <<EOC > $RPM_BUILD_ROOT%{_sysconfdir}/munin/plugin-conf.d/groonga
|
|
user groonga
|
|
user groonga
|
|
group groonga
|
|
group groonga
|
|
env.PATH %{_bindir}
|
|
env.PATH %{_bindir}
|
|
- env.pid_file %{_localstatedir}/run/groonga/groonga.pid
|
|
+ env.database_path %{_localstatedir}/lib/groonga/db/db
|
|
- env.path %{_localstatedir}/lib/groonga/db/db
|
|
|
|
env.host 127.0.0.1
|
|
env.host 127.0.0.1
|
|
- env.port 10041
|
|
+
|
|
- env.log_path %{_localstatedir}/log/groonga/query.log
|
|
+ env.http_host 127.0.0.1
|
|
|
|
+ env.http_port 10041
|
|
|
|
+ env.http_database_path %{_localstatedir}/lib/groonga/db/db
|
|
|
|
+ env.http_pid_path %{_localstatedir}/run/groonga/groonga-http.pid
|
|
|
|
+ env.http_query_log_path %{_localstatedir}/log/groonga/query-http.log
|
|
|
|
+
|
|
|
|
+ env.httpd_host 127.0.0.1
|
|
|
|
+ env.httpd_port 10041
|
|
|
|
+ env.httpd_database_path %{_localstatedir}/lib/groonga/db/db
|
|
|
|
+ env.httpd_pid_path %{_localstatedir}/run/groonga/groonga-httpd.pid
|
|
|
|
+ env.httpd_query_log_path %{_localstatedir}/log/groonga/httpd/groonga-query.log
|
|
|
|
+
|
|
|
|
+ env.gqtp_host 127.0.0.1
|
|
|
|
+ env.gqtp_port 10043
|
|
|
|
+ env.gqtp_database_path %{_localstatedir}/lib/groonga/db/db
|
|
|
|
+ env.gqtp_pid_path %{_localstatedir}/run/groonga/groonga-gqtp.pid
|
|
|
|
+ env.gqtp_query_log_path %{_localstatedir}/log/groonga/query-gqtp.log
|
|
EOC
|
|
EOC
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -198,7 +213,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
%pre server-common
|
|
%pre server-common
|
|
getent group groonga >/dev/null || groupadd -r groonga
|
|
getent group groonga >/dev/null || groupadd -r groonga
|
|
getent passwd groonga >/dev/null || \
|
|
getent passwd groonga >/dev/null || \
|
|
- useradd -r -g groonga -d %{_localstatedir}/lib/groonga -s /sbin/nologin \
|
|
+ useradd -r -g groonga -d %{_localstatedir}/lib/groonga -s /sbin/nologin \
|
|
-c 'groonga' groonga
|
|
-c 'groonga' groonga
|
|
if [ $1 = 1 ]; then
|
|
if [ $1 = 1 ]; then
|
|
mkdir -p %{_localstatedir}/lib/groonga/db
|
|
mkdir -p %{_localstatedir}/lib/groonga/db
|
|
@@ -274,16 +289,41 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
|
|
%{_datadir}/man/*/man1/*
|
|
%{_datadir}/man/*/man1/*
|
|
%{_bindir}/groonga
|
|
%{_bindir}/groonga
|
|
%{_bindir}/groonga-benchmark
|
|
%{_bindir}/groonga-benchmark
|
|
|
|
+%{_bindir}/grndb
|
|
|
|
|
|
%files libs
|
|
%files libs
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc README AUTHORS COPYING
|
|
+%doc README.md COPYING
|
|
%{_libdir}/*.so.*
|
|
%{_libdir}/*.so.*
|
|
%dir %{_libdir}/groonga
|
|
%dir %{_libdir}/groonga
|
|
%dir %{_libdir}/groonga/plugins
|
|
%dir %{_libdir}/groonga/plugins
|
|
|
|
+%dir %{_libdir}/groonga/plugins/functions
|
|
%dir %{_libdir}/groonga/plugins/tokenizers
|
|
%dir %{_libdir}/groonga/plugins/tokenizers
|
|
|
|
+%dir %{_libdir}/groonga/plugins/token_filters
|
|
|
|
+%dir %{_libdir}/groonga/plugins/ruby
|
|
|
|
+%dir %{_libdir}/groonga/plugins/sharding
|
|
|
|
+%dir %{_libdir}/groonga/plugins/expression_rewriters
|
|
|
|
+%dir %{_libdir}/groonga/scripts
|
|
|
|
+%dir %{_libdir}/groonga/scripts/ruby
|
|
|
|
+%dir %{_libdir}/groonga/scripts/ruby/command_line
|
|
|
|
+%dir %{_libdir}/groonga/scripts/ruby/context
|
|
|
|
+%dir %{_libdir}/groonga/scripts/ruby/initialize
|
|
|
|
+%dir %{_libdir}/groonga/scripts/ruby/logger
|
|
|
|
+%dir %{_libdir}/groonga/scripts/ruby/query_logger
|
|
|
|
+%{_libdir}/groonga/plugins/functions/vector.so
|
|
%{_libdir}/groonga/plugins/table/table.so
|
|
%{_libdir}/groonga/plugins/table/table.so
|
|
%{_libdir}/groonga/plugins/query_expanders/tsv.so
|
|
%{_libdir}/groonga/plugins/query_expanders/tsv.so
|
|
|
|
+%{_libdir}/groonga/plugins/token_filters/stop_word.so
|
|
|
|
+%{_libdir}/groonga/plugins/ruby/*.so
|
|
|
|
+%{_libdir}/groonga/plugins/*.rb
|
|
|
|
+%{_libdir}/groonga/plugins/sharding/*.rb
|
|
|
|
+%{_libdir}/groonga/plugins/expression_rewriters/*.rb
|
|
|
|
+%{_libdir}/groonga/scripts/ruby/*.rb
|
|
|
|
+%{_libdir}/groonga/scripts/ruby/command_line/*.rb
|
|
|
|
+%{_libdir}/groonga/scripts/ruby/context/*.rb
|
|
|
|
+%{_libdir}/groonga/scripts/ruby/initialize/*.rb
|
|
|
|
+%{_libdir}/groonga/scripts/ruby/logger/*.rb
|
|
|
|
+%{_libdir}/groonga/scripts/ruby/query_logger/*.rb
|
|
%{_datadir}/groonga/
|
|
%{_datadir}/groonga/
|
|
%config(noreplace) %{_sysconfdir}/groonga/synonyms.tsv
|
|
%config(noreplace) %{_sysconfdir}/groonga/synonyms.tsv
|
|
|
|
|
|
@@ -317,10 +357,13 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
|
|
%{_initddir}/groonga-httpd
|
|
%{_initddir}/groonga-httpd
|
|
%{_sbindir}/groonga-httpd
|
|
%{_sbindir}/groonga-httpd
|
|
%{_sbindir}/groonga-httpd-restart
|
|
%{_sbindir}/groonga-httpd-restart
|
|
|
|
+%ghost %dir %{_localstatedir}/run/%{name}
|
|
|
|
+%attr(0750,groonga,groonga) %dir %{_localstatedir}/lib/%{name}
|
|
|
|
+%attr(0750,groonga,groonga) %dir %{_localstatedir}/lib/%{name}/db
|
|
|
|
|
|
%files doc
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc README AUTHORS COPYING
|
|
+%doc README.md COPYING
|
|
%doc groonga-doc/*
|
|
%doc groonga-doc/*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
@@ -345,6 +388,9 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/*
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Nov 30 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.1.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Mon Sep 29 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.6-1
|
|
* Mon Sep 29 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.6-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|