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