Browse Source

groonga-12.0.9-1

Tomohiro "Tomo-p" KATO 1 year ago
parent
commit
a069ef713f
1 changed files with 18 additions and 9 deletions
  1. 18 9
      g/groonga/groonga-vl.spec

+ 18 - 9
g/groonga/groonga-vl.spec

@@ -1,10 +1,10 @@
 %bcond_with systemd
 
-%global _initddir %{_sysconfdir}/init.d/
+%global _initdir %{_sysconfdir}/init.d/
 
 Name:		groonga
 Summary:	An Embeddable Fulltext Search Engine
-Version:	12.0.1
+Version:	12.0.9
 Release:	1%{?_dist_release}%{?with_systemd:.systemd}
 Group:		office
 Vendor:		Project Vine
@@ -14,13 +14,15 @@ Packager:	tomop, iwaim
 License:	LGPLv2
 URL:		http://groonga.org/
 Source0:	http://packages.groonga.org/source/groonga/groonga-%{version}.tar.gz
+Source1:	groonga-httpd.init
+Source2:	groonga-server-gqtp.init
+Source3:	groonga-server-http.init
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
 BuildRequires:	mecab-devel
 BuildRequires:	zlib-devel
 BuildRequires:	lz4-devel
 BuildRequires:	libzstd-devel
-BuildRequires:	pcre-devel
 Requires:	%{name}-libs = %{version}-%{release}
 Requires:	%{name}-plugin-suggest = %{version}-%{release}
 %if %{with systemd}
@@ -228,8 +230,13 @@ 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
 rm -rf %{buildroot}%{_sysconfdir}/tmpfiles.d
+rm -rf %{buildroot}/usr/lib/systemd
 %endif
 
 
@@ -332,7 +339,7 @@ fi
 %systemd_preun groonga-httpd.service
 %else
 if [ $1 = 0 -o -x /bin/systemctl ] ; then
-	%{_initddir}/groonga-httpd stop >/dev/null 2>&1 || :
+	%{_initdir}/groonga-httpd stop >/dev/null 2>&1 || :
 	/sbin/chkconfig --del groonga-server-gqtp
 fi
 %endif
@@ -342,7 +349,7 @@ fi
 %systemd_postun groonga-httpd.service
 %else
 if [ $1 -ge 1 ] ; then
-	%{_initddir}/groonga-httpd condrestart >/dev/null 2>&1 || :
+	%{_initdir}/groonga-httpd condrestart >/dev/null 2>&1 || :
 fi
 %endif
 
@@ -368,7 +375,6 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
 %files
 %defattr(-,root,root,-)
 %{_bindir}/groonga
-%{_bindir}/groonga-benchmark
 %{_bindir}/grndb
 
 %files libs
@@ -396,7 +402,7 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
 %if %{with systemd} 
 %{_unitdir}/groonga-server-gqtp.service
 %else
-%{_initddir}/groonga-server-gqtp
+%{_initdir}/groonga-server-gqtp
 %endif
 
 %files server-http
@@ -410,7 +416,7 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
 %if %{with systemd}
 %{_unitdir}/groonga-server-http.service
 %else
-%{_initddir}/groonga-server-http
+%{_initdir}/groonga-server-http
 %endif
 
 %files httpd
@@ -426,7 +432,7 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
 %if %{with systemd}
 %{_unitdir}/groonga-httpd.service
 %else
-%{_initddir}/groonga-httpd
+%{_initdir}/groonga-httpd
 %endif
 
 %files doc
@@ -457,6 +463,9 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
 %config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/*
 
 %changelog
+* Wed Nov 09 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.0.9-1
+- new upstream release.
+
 * Wed Mar 02 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.0.1-1
 - new upstream release.