|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
Name: groonga
|
|
|
Summary: An Embeddable Fulltext Search Engine
|
|
|
-Version: 12.0.9
|
|
|
+Version: 14.0.6
|
|
|
Release: 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
|
Group: office
|
|
|
Vendor: Project Vine
|
|
@@ -12,15 +12,16 @@ Distribution: Vine Linux
|
|
|
Packager: tomop, iwaim
|
|
|
|
|
|
License: LGPLv2
|
|
|
-URL: http://groonga.org/
|
|
|
-Source0: http://packages.groonga.org/source/groonga/groonga-%{version}.tar.gz
|
|
|
-Source1: groonga-httpd.init
|
|
|
+URL: https://groonga.org/
|
|
|
+Source0: https://packages.groonga.org/source/groonga/groonga-%{version}.tar.gz
|
|
|
Source2: groonga-server-gqtp.init
|
|
|
Source3: groonga-server-http.init
|
|
|
|
|
|
+Patch0: rapidjson-gcc14.patch
|
|
|
+
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
|
|
BuildRequires: mecab-devel
|
|
|
-BuildRequires: zlib-devel
|
|
|
+BuildRequires: pkgconfig(zlib)
|
|
|
BuildRequires: lz4-devel
|
|
|
BuildRequires: libzstd-devel
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
@@ -62,10 +63,14 @@ Group: servers
|
|
|
License: LGPLv2
|
|
|
Requires: %{name}-server-common = %{version}-%{release}
|
|
|
Requires(pre): shadow-utils
|
|
|
+%if %{with systemd}
|
|
|
+%{?systemd_requires}
|
|
|
+%else
|
|
|
Requires(post): /sbin/chkconfig
|
|
|
Requires(preun): /sbin/chkconfig
|
|
|
Requires(preun): /sbin/service
|
|
|
Requires(postun): /sbin/service
|
|
|
+%endif
|
|
|
Obsoletes: %{name} < 1.2.2-0
|
|
|
Obsoletes: %{name}-server < 2.0.7-0
|
|
|
|
|
@@ -80,31 +85,22 @@ License: LGPLv2
|
|
|
Requires: %{name}-server-common = %{version}-%{release}
|
|
|
Requires: curl
|
|
|
Requires(pre): shadow-utils
|
|
|
+%if %{with systemd}
|
|
|
+%{?systemd_requires}
|
|
|
+%else
|
|
|
Requires(post): /sbin/chkconfig
|
|
|
Requires(preun): /sbin/chkconfig
|
|
|
Requires(preun): /sbin/service
|
|
|
Requires(postun): /sbin/service
|
|
|
+%endif
|
|
|
Obsoletes: %{name} < 1.2.2-0
|
|
|
Obsoletes: %{name}-server < 2.0.7-0
|
|
|
+Obsoletes: %{name}-httpd < 14.0.0
|
|
|
|
|
|
%description server-http
|
|
|
This is a transitional package to groonga-httpd.
|
|
|
|
|
|
|
|
|
-%package httpd
|
|
|
-Summary: Groonga HTTP server
|
|
|
-Group: servers
|
|
|
-License: LGPLv2 and BSD
|
|
|
-Requires: %{name}-server-common = %{version}-%{release}
|
|
|
-Provides: %{name}-server-http = %{version}-%{release}
|
|
|
-Obsoletes: %{name}-server-http <= 4.0.7-2
|
|
|
-
|
|
|
-%description httpd
|
|
|
-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
|
|
|
Summary: Documentation for groonga
|
|
|
Group: documentation
|
|
@@ -159,15 +155,18 @@ Munin plugins for Groonga
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
+pushd vendor/rapidjson-1.1.0/
|
|
|
+%patch0 -p1
|
|
|
+popd
|
|
|
|
|
|
|
|
|
%build
|
|
|
%configure \
|
|
|
--disable-static \
|
|
|
%if %{with systemd}
|
|
|
- --with-package-platform=centos8 \
|
|
|
+ --with-package-platform=rhel \
|
|
|
%else
|
|
|
- --with-package-platform=centos6 \
|
|
|
+ --with-package-platform=no \
|
|
|
%endif
|
|
|
--with-zlib \
|
|
|
--with-lz4 \
|
|
@@ -225,13 +224,10 @@ cat <<EOC > $RPM_BUILD_ROOT%{_sysconfdir}/munin/plugin-conf.d/groonga
|
|
|
EOC
|
|
|
|
|
|
%if %{with systemd}
|
|
|
-mkdir -p %{buildroot}%{_unitdir}
|
|
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
|
|
mv -f %{buildroot}%{_sysconfdir}/tmpfiles.d/* %{buildroot}%{_tmpfilesdir}/
|
|
|
-mv -f %{buildroot}/usr%{_unitdir}/* %{buildroot}%{_unitdir}/
|
|
|
%else
|
|
|
mkdir -p %{buildroot}%{_initdir}
|
|
|
-install -m755 %{SOURCE1} %{buildroot}%{_initdir}/groonga-httpd
|
|
|
install -m755 %{SOURCE2} %{buildroot}%{_initdir}/groonga-server-gqtp
|
|
|
install -m755 %{SOURCE3} %{buildroot}%{_initdir}/groonga-server-http
|
|
|
# this file is needed by systemd only
|
|
@@ -272,20 +268,6 @@ exit 0
|
|
|
/sbin/chkconfig --add groonga-server-http
|
|
|
%endif
|
|
|
|
|
|
-%post httpd
|
|
|
-if [ $1 = 1 ] ; then
|
|
|
- mkdir -p %{_localstatedir}/log/groonga/httpd
|
|
|
- chown -R groonga:groonga %{_localstatedir}/log/groonga/httpd
|
|
|
-%if %{with systemd}
|
|
|
- %systemd_post groonga-httpd.service
|
|
|
-elif [ $1 = 2 ] ; then
|
|
|
- /usr/sbin/groonga-httpd-restart > /dev/null 2>&1 || :
|
|
|
-%else
|
|
|
-elif [ $1 = 2 ] ; then
|
|
|
- /sbin/service groonga-httpd restart >/dev/null 2>&1 || :
|
|
|
-%endif
|
|
|
-fi
|
|
|
-
|
|
|
%post munin-plugins
|
|
|
%{_sbindir}/munin-node-configure --shell --remove-also | grep -e 'groonga_' | sh
|
|
|
[ -f %{_localstatedir}/lock/subsys/munin-node ] && \
|
|
@@ -334,35 +316,13 @@ if [ $1 -ge 1 ] ; then
|
|
|
fi
|
|
|
%endif
|
|
|
|
|
|
-%preun httpd
|
|
|
-%if %{with systemd}
|
|
|
-%systemd_preun groonga-httpd.service
|
|
|
-%else
|
|
|
-if [ $1 = 0 -o -x /bin/systemctl ] ; then
|
|
|
- %{_initdir}/groonga-httpd stop >/dev/null 2>&1 || :
|
|
|
- /sbin/chkconfig --del groonga-server-gqtp
|
|
|
-fi
|
|
|
-%endif
|
|
|
-
|
|
|
-%postun httpd
|
|
|
-%if %{with systemd}
|
|
|
-%systemd_postun groonga-httpd.service
|
|
|
-%else
|
|
|
-if [ $1 -ge 1 ] ; then
|
|
|
- %{_initdir}/groonga-httpd condrestart >/dev/null 2>&1 || :
|
|
|
-fi
|
|
|
-%endif
|
|
|
-
|
|
|
%postun munin-plugins
|
|
|
%if %{with systemd}
|
|
|
+ /bin/systemctl try-restart munin-node.service
|
|
|
%else
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
[ -f %{_localstatedir}/lock/subsys/munin-node ] && \
|
|
|
-%if %{with systemd}
|
|
|
- /bin/systemctl restart munin-node.service
|
|
|
-%else
|
|
|
/sbin/service munin-node restart > /dev/null 2>&1
|
|
|
-%endif
|
|
|
:
|
|
|
fi
|
|
|
%endif
|
|
@@ -394,12 +354,12 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
|
|
|
%files server-gqtp
|
|
|
%defattr(-,root,root,-)
|
|
|
%config(noreplace) %{_sysconfdir}/groonga/
|
|
|
-%config(noreplace) %{_sysconfdir}/sysconfig/groonga-server-gqtp
|
|
|
-%config(noreplace) %{_sysconfdir}/logrotate.d/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
|
|
|
%if %{with systemd}
|
|
|
+%config(noreplace) %{_sysconfdir}/sysconfig/groonga-server-gqtp
|
|
|
+%config(noreplace) %{_sysconfdir}/logrotate.d/groonga-server-gqtp
|
|
|
%{_unitdir}/groonga-server-gqtp.service
|
|
|
%else
|
|
|
%{_initdir}/groonga-server-gqtp
|
|
@@ -408,33 +368,17 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
|
|
|
%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
|
|
|
%ghost %dir %{_localstatedir}/run/%{name}
|
|
|
%attr(0750,groonga,groonga) %dir %{_localstatedir}/lib/%{name}
|
|
|
%attr(0750,groonga,groonga) %dir %{_localstatedir}/lib/%{name}/db
|
|
|
%if %{with systemd}
|
|
|
+%config(noreplace) %{_sysconfdir}/sysconfig/groonga-server-http
|
|
|
+%config(noreplace) %{_sysconfdir}/logrotate.d/groonga-server-http
|
|
|
%{_unitdir}/groonga-server-http.service
|
|
|
%else
|
|
|
%{_initdir}/groonga-server-http
|
|
|
%endif
|
|
|
|
|
|
-%files httpd
|
|
|
-%defattr(-,root,root,-)
|
|
|
-%config(noreplace) %{_sysconfdir}/groonga/httpd/*
|
|
|
-%config(noreplace) %{_sysconfdir}/sysconfig/groonga-httpd
|
|
|
-%config(noreplace) %{_sysconfdir}/logrotate.d/groonga-httpd
|
|
|
-%{_sbindir}/groonga-httpd
|
|
|
-%{_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
|
|
|
-%if %{with systemd}
|
|
|
-%{_unitdir}/groonga-httpd.service
|
|
|
-%else
|
|
|
-%{_initdir}/groonga-httpd
|
|
|
-%endif
|
|
|
-
|
|
|
%files doc
|
|
|
%defattr(-,root,root,-)
|
|
|
%license COPYING
|
|
@@ -462,7 +406,11 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
|
|
|
%{_datadir}/munin/plugins/*
|
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/*
|
|
|
|
|
|
+
|
|
|
%changelog
|
|
|
+* Thu Aug 15 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 14.0.6-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Wed Nov 09 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.0.9-1
|
|
|
- new upstream release.
|
|
|
|