|
@@ -3,7 +3,7 @@
|
|
%global _initddir %{_sysconfdir}/init.d/
|
|
%global _initddir %{_sysconfdir}/init.d/
|
|
|
|
|
|
Name: groonga
|
|
Name: groonga
|
|
-Version: 2.0.6
|
|
|
|
|
|
+Version: 2.0.8
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Summary: An Embeddable Fulltext Search Engine
|
|
Summary: An Embeddable Fulltext Search Engine
|
|
|
|
|
|
@@ -56,10 +56,26 @@ Requires(pre): shadow-utils
|
|
%description server-common
|
|
%description server-common
|
|
This package provides common settings for server use
|
|
This package provides common settings for server use
|
|
|
|
|
|
-%package server
|
|
|
|
-Summary: Groonga server
|
|
|
|
|
|
+%package server-gqtp
|
|
|
|
+Summary: Groonga GQTP server
|
|
Group: Applications/Text
|
|
Group: Applications/Text
|
|
-License: LGPLv2 and (MIT or GPLv2)
|
|
|
|
|
|
+License: LGPLv2
|
|
|
|
+Requires: %{name}-server-common = %{version}-%{release}
|
|
|
|
+Requires(pre): shadow-utils
|
|
|
|
+Requires(post): /sbin/chkconfig
|
|
|
|
+Requires(preun): /sbin/chkconfig
|
|
|
|
+Requires(preun): /sbin/service
|
|
|
|
+Requires(postun): /sbin/service
|
|
|
|
+Obsoletes: %{name} < 1.2.2-0
|
|
|
|
+Obsoletes: %{name}-server < 2.0.7-0
|
|
|
|
+
|
|
|
|
+%description server-gqtp
|
|
|
|
+This package contains the groonga GQTP server
|
|
|
|
+
|
|
|
|
+%package server-http
|
|
|
|
+Summary: Groonga HTTP server (stable)
|
|
|
|
+Group: Applications/Text
|
|
|
|
+License: LGPLv2
|
|
Requires: %{name}-server-common = %{version}-%{release}
|
|
Requires: %{name}-server-common = %{version}-%{release}
|
|
Requires: curl
|
|
Requires: curl
|
|
Requires(pre): shadow-utils
|
|
Requires(pre): shadow-utils
|
|
@@ -68,21 +84,22 @@ Requires(preun): /sbin/chkconfig
|
|
Requires(preun): /sbin/service
|
|
Requires(preun): /sbin/service
|
|
Requires(postun): /sbin/service
|
|
Requires(postun): /sbin/service
|
|
Obsoletes: %{name} < 1.2.2-0
|
|
Obsoletes: %{name} < 1.2.2-0
|
|
-Obsoletes: %{name}-server < 2.0.6-0
|
|
|
|
|
|
+Obsoletes: %{name}-server < 2.0.7-0
|
|
|
|
|
|
-%description server
|
|
|
|
-This package contains the groonga server
|
|
|
|
|
|
+%description server-http
|
|
|
|
+This package contains the groonga HTTP server
|
|
|
|
|
|
%package httpd
|
|
%package httpd
|
|
-Summary: Groonga HTTP server
|
|
|
|
|
|
+Summary: Groonga HTTP server (experimental)
|
|
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}
|
|
-Requires: pcre
|
|
|
|
-Obsoletes: %{name}-httpd < 2.0.6-0
|
|
|
|
|
|
+Conflicts: %{name}-server-http
|
|
|
|
|
|
%description httpd
|
|
%description httpd
|
|
-This package contains the groonga HTTP server
|
|
|
|
|
|
+This package contains the groonga HTTP server. It is experimental
|
|
|
|
+but has many features. Because it is based on nginx HTTP server.
|
|
|
|
+It will obsolete groonga-server-http when it is stable.
|
|
|
|
|
|
%package doc
|
|
%package doc
|
|
Summary: Documentation for groonga
|
|
Summary: Documentation for groonga
|
|
@@ -104,7 +121,6 @@ Libraries and header files for groonga
|
|
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}
|
|
-Requires: mecab
|
|
|
|
|
|
|
|
%description tokenizer-mecab
|
|
%description tokenizer-mecab
|
|
MeCab tokenizer for groonga
|
|
MeCab tokenizer for groonga
|
|
@@ -113,9 +129,6 @@ MeCab tokenizer for groonga
|
|
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}
|
|
-#Requires: messagepack
|
|
|
|
-#Requires: zeromq
|
|
|
|
-#Requires: libevent
|
|
|
|
|
|
|
|
%description plugin-suggest
|
|
%description plugin-suggest
|
|
Sugget plugin for groonga
|
|
Sugget plugin for groonga
|
|
@@ -183,12 +196,31 @@ 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
|
|
|
|
+ mkdir -p %{_localstatedir}/lib/groonga/db
|
|
|
|
+ groonga -n %{_localstatedir}/lib/groonga/db/db shutdown > /dev/null
|
|
|
|
+ chown -R groonga:groonga %{_localstatedir}/lib/groonga
|
|
|
|
+ mkdir -p %{_localstatedir}/run/groonga
|
|
|
|
+ chown -R groonga:groonga %{_localstatedir}/run/groonga
|
|
|
|
+fi
|
|
exit 0
|
|
exit 0
|
|
|
|
|
|
-%post server
|
|
|
|
-/sbin/chkconfig --add groonga
|
|
|
|
|
|
+%post server-gqtp
|
|
|
|
+/sbin/chkconfig --add groonga-server-gqtp
|
|
|
|
+
|
|
|
|
+%post server-http
|
|
|
|
+/sbin/chkconfig --add groonga-server-http
|
|
|
|
+
|
|
|
|
+%post httpd
|
|
|
|
+if [ $1 = 1 ] ; then
|
|
|
|
+ mkdir -p %{_localstatedir}/log/groonga/httpd
|
|
|
|
+ chown -R groonga:groonga %{_localstatedir}/log/groonga/httpd
|
|
|
|
+elif [ $1 = 2 ] ; then
|
|
|
|
+ /sbin/service groonga-httpd restart >/dev/null 2>&1 || :
|
|
|
|
+fi
|
|
|
|
|
|
%post libs
|
|
%post libs
|
|
/sbin/ldconfig
|
|
/sbin/ldconfig
|
|
@@ -199,15 +231,26 @@ exit 0
|
|
/sbin/service munin-node restart > /dev/null 2>&1
|
|
/sbin/service munin-node restart > /dev/null 2>&1
|
|
:
|
|
:
|
|
|
|
|
|
-%preun server
|
|
|
|
|
|
+%preun server-http
|
|
|
|
+if [ $1 = 0 ] ; then
|
|
|
|
+ /sbin/service groonga-server-http stop >/dev/null 2>&1 || :
|
|
|
|
+ /sbin/chkconfig --del groonga-server-http
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+%postun server-http
|
|
|
|
+if [ $1 -ge 1 ] ; then
|
|
|
|
+ /sbin/service groonga-server-http condrestart >/dev/null 2>&1 || :
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+%preun server-gqtp
|
|
if [ $1 = 0 ] ; then
|
|
if [ $1 = 0 ] ; then
|
|
- /sbin/service groonga stop >/dev/null 2>&1 || :
|
|
|
|
- /sbin/chkconfig --del groonga
|
|
|
|
|
|
+ /sbin/service groonga-server-http stop >/dev/null 2>&1 || :
|
|
|
|
+ /sbin/chkconfig --del groonga-server-gqtp
|
|
fi
|
|
fi
|
|
|
|
|
|
-%postun server
|
|
|
|
|
|
+%postun server-gqtp
|
|
if [ $1 -ge 1 ] ; then
|
|
if [ $1 -ge 1 ] ; then
|
|
- /sbin/service groonga condrestart >/dev/null 2>&1 || :
|
|
|
|
|
|
+ /sbin/service groonga-server-gqtp condrestart >/dev/null 2>&1 || :
|
|
fi
|
|
fi
|
|
|
|
|
|
%postun libs
|
|
%postun libs
|
|
@@ -236,15 +279,28 @@ fi
|
|
%dir %{_libdir}/groonga/plugins
|
|
%dir %{_libdir}/groonga/plugins
|
|
%dir %{_libdir}/groonga/plugins/tokenizers
|
|
%dir %{_libdir}/groonga/plugins/tokenizers
|
|
%{_libdir}/groonga/plugins/table/table.so
|
|
%{_libdir}/groonga/plugins/table/table.so
|
|
|
|
+%{_libdir}/groonga/plugins/query_expanders/tsv.so
|
|
%{_datadir}/groonga/
|
|
%{_datadir}/groonga/
|
|
|
|
+%config(noreplace) %{_sysconfdir}/groonga/synonyms.tsv
|
|
|
|
|
|
%files server-common
|
|
%files server-common
|
|
|
|
|
|
-%files server
|
|
|
|
|
|
+%files server-gqtp
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%config(noreplace) %{_sysconfdir}/groonga/
|
|
%config(noreplace) %{_sysconfdir}/groonga/
|
|
-%config(noreplace) %{_sysconfdir}/sysconfig/groonga
|
|
|
|
-%{_initddir}/*
|
|
|
|
|
|
+%config(noreplace) %{_sysconfdir}/sysconfig/groonga-server-gqtp
|
|
|
|
+%config(noreplace) %{_sysconfdir}/logrotate.d/groonga-server-gqtp
|
|
|
|
+%{_initddir}/groonga-server-gqtp
|
|
|
|
+%ghost %dir %{_localstatedir}/run/%{name}
|
|
|
|
+%attr(0750,groonga,groonga) %dir %{_localstatedir}/lib/%{name}
|
|
|
|
+%attr(0750,groonga,groonga) %dir %{_localstatedir}/lib/%{name}/db
|
|
|
|
+
|
|
|
|
+%files server-http
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%config(noreplace) %{_sysconfdir}/groonga/
|
|
|
|
+%config(noreplace) %{_sysconfdir}/sysconfig/groonga-server-http
|
|
|
|
+%config(noreplace) %{_sysconfdir}/logrotate.d/groonga-server-http
|
|
|
|
+%{_initddir}/groonga-server-http
|
|
%ghost %dir %{_localstatedir}/run/%{name}
|
|
%ghost %dir %{_localstatedir}/run/%{name}
|
|
%attr(0750,groonga,groonga) %dir %{_localstatedir}/lib/%{name}
|
|
%attr(0750,groonga,groonga) %dir %{_localstatedir}/lib/%{name}
|
|
%attr(0750,groonga,groonga) %dir %{_localstatedir}/lib/%{name}/db
|
|
%attr(0750,groonga,groonga) %dir %{_localstatedir}/lib/%{name}/db
|
|
@@ -252,7 +308,11 @@ fi
|
|
%files httpd
|
|
%files httpd
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%config(noreplace) %{_sysconfdir}/groonga/httpd/*
|
|
%config(noreplace) %{_sysconfdir}/groonga/httpd/*
|
|
|
|
+%config(noreplace) %{_sysconfdir}/sysconfig/groonga-httpd
|
|
|
|
+%config(noreplace) %{_sysconfdir}/logrotate.d/groonga-httpd
|
|
|
|
+%{_initddir}/groonga-httpd
|
|
%{_sbindir}/groonga-httpd
|
|
%{_sbindir}/groonga-httpd
|
|
|
|
+%{_sbindir}/groonga-httpd-restart
|
|
|
|
|
|
%files doc
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -281,6 +341,9 @@ fi
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/*
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Nov 16 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.8-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Sat Sep 15 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.6-1
|
|
* Sat Sep 15 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.6-1
|
|
- initial build for Vine Linux.
|
|
- initial build for Vine Linux.
|
|
|
|
|