|
@@ -4,13 +4,15 @@
|
|
|
|
|
|
Name: groonga
|
|
Name: groonga
|
|
Version: 2.0.8
|
|
Version: 2.0.8
|
|
-Release: 1%{?_dist_release}
|
|
+Release: 2%{?_dist_release}
|
|
Summary: An Embeddable Fulltext Search Engine
|
|
Summary: An Embeddable Fulltext Search Engine
|
|
|
|
|
|
Group: Applications/Text
|
|
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 https://github.com/groonga/groonga/pull/53
|
|
|
|
+Patch0: groonga-2.0.8-killproc.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
|
BuildRequires: mecab-devel
|
|
BuildRequires: mecab-devel
|
|
@@ -148,7 +150,7 @@ Munin plugins for groonga
|
|
%prep
|
|
%prep
|
|
#% define optflags -O0
|
|
#% define optflags -O0
|
|
%setup -q
|
|
%setup -q
|
|
-
|
|
+%patch0 -p 1
|
|
|
|
|
|
%build
|
|
%build
|
|
%configure \
|
|
%configure \
|
|
@@ -197,7 +199,6 @@ rm -rf $RPM_BUILD_ROOT
|
|
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
|
|
@@ -263,6 +264,9 @@ if [ $1 -eq 0 ]; then
|
|
:
|
|
:
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+%triggerpostun -n groonga-server-common -- groonga-server-common < 2.0.8-2
|
|
|
|
+chown -R groonga:groonga %{_localstatedir}/lib/groonga
|
|
|
|
+chown -R groonga:groonga %{_localstatedir}/run/groonga
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
@@ -341,6 +345,11 @@ fi
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/*
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Feb 7 2013 IWAI, Masaharu <iwai@alib.jp> 2.0.8-2
|
|
|
|
+- fix pre script for groonga-server-common sub package
|
|
|
|
+- add triggerpostun script: groonga-server-common < 2.0.8-2
|
|
|
|
+- add groonga-server-http script patch (Patch0)
|
|
|
|
+
|
|
* Fri Nov 16 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.8-1
|
|
* Fri Nov 16 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.8-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|