|
@@ -1,59 +1,57 @@
|
|
|
-%define _unpackaged_files_terminate_build 1
|
|
|
-
|
|
|
%global _initddir %{_sysconfdir}/init.d/
|
|
|
|
|
|
Name: groonga
|
|
|
-Version: 9.0.7
|
|
|
-Release: 1%{?_dist_release}
|
|
|
Summary: An Embeddable Fulltext Search Engine
|
|
|
+Version: 11.0.0
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: office
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+Packager: tomop, iwaim
|
|
|
|
|
|
-Group: Applications/Text
|
|
|
License: LGPLv2
|
|
|
URL: http://groonga.org/
|
|
|
Source0: http://packages.groonga.org/source/groonga/groonga-%{version}.tar.gz
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
|
|
|
-BuildRequires: libxcrypt-devel
|
|
|
BuildRequires: mecab-devel
|
|
|
BuildRequires: zlib-devel
|
|
|
-BuildRequires: lzo-devel
|
|
|
+BuildRequires: lz4-devel
|
|
|
+BuildRequires: libzstd-devel
|
|
|
BuildRequires: pcre-devel
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
Requires: %{name}-plugin-suggest = %{version}-%{release}
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
-Packager: tomop, iwaim
|
|
|
-
|
|
|
%description
|
|
|
Groonga is an embeddable full-text search engine library. It can
|
|
|
integrate with DBMS and scripting languages to enhance their search
|
|
|
functionality. It also provides a standalone data store server based
|
|
|
on relational data model.
|
|
|
|
|
|
-%package libs
|
|
|
+
|
|
|
+%package libs
|
|
|
Summary: Runtime libraries for groonga
|
|
|
-Group: System Environment/Libraries
|
|
|
+Group: system
|
|
|
License: LGPLv2 and (MIT or GPLv2)
|
|
|
-Requires(post): /sbin/ldconfig
|
|
|
-Requires(postun): /sbin/ldconfig
|
|
|
|
|
|
-%description libs
|
|
|
+%description libs
|
|
|
This package contains the libraries for groonga
|
|
|
|
|
|
-%package server-common
|
|
|
+
|
|
|
+%package server-common
|
|
|
Summary: Common packages for the groonga server and the groonga HTTP server
|
|
|
-Group: Applications/Text
|
|
|
+Group: servers
|
|
|
License: LGPLv2
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
|
-%description server-common
|
|
|
+%description server-common
|
|
|
This package provides common settings for server use
|
|
|
|
|
|
-%package server-gqtp
|
|
|
+
|
|
|
+%package server-gqtp
|
|
|
Summary: Groonga GQTP server
|
|
|
-Group: Applications/Text
|
|
|
+Group: servers
|
|
|
License: LGPLv2
|
|
|
Requires: %{name}-server-common = %{version}-%{release}
|
|
|
Requires(pre): shadow-utils
|
|
@@ -64,12 +62,13 @@ Requires(postun): /sbin/service
|
|
|
Obsoletes: %{name} < 1.2.2-0
|
|
|
Obsoletes: %{name}-server < 2.0.7-0
|
|
|
|
|
|
-%description server-gqtp
|
|
|
+%description server-gqtp
|
|
|
This package contains the groonga GQTP server
|
|
|
|
|
|
-%package server-http
|
|
|
+
|
|
|
+%package server-http
|
|
|
Summary: Groonga HTTP server (transitional)
|
|
|
-Group: Applications/Text
|
|
|
+Group: servers
|
|
|
License: LGPLv2
|
|
|
Requires: %{name}-server-common = %{version}-%{release}
|
|
|
Requires: curl
|
|
@@ -81,76 +80,88 @@ Requires(postun): /sbin/service
|
|
|
Obsoletes: %{name} < 1.2.2-0
|
|
|
Obsoletes: %{name}-server < 2.0.7-0
|
|
|
|
|
|
-%description server-http
|
|
|
+%description server-http
|
|
|
This is a transitional package to groonga-httpd.
|
|
|
|
|
|
-%package httpd
|
|
|
+
|
|
|
+%package httpd
|
|
|
Summary: Groonga HTTP server
|
|
|
-Group: Applications/Text
|
|
|
+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
|
|
|
+%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
|
|
|
-Group: Documentation
|
|
|
+Group: documentation
|
|
|
License: LGPLv2 and BSD
|
|
|
|
|
|
-%description doc
|
|
|
+%description doc
|
|
|
Documentation for Groonga
|
|
|
|
|
|
-%package devel
|
|
|
+
|
|
|
+%package devel
|
|
|
Summary: Libraries and header files for Groonga
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
-%description devel
|
|
|
+%description devel
|
|
|
Libraries and header files for Groonga
|
|
|
|
|
|
-%package tokenizer-mecab
|
|
|
+
|
|
|
+%package tokenizer-mecab
|
|
|
Summary: MeCab tokenizer for Groonga
|
|
|
-Group: Applications/Text
|
|
|
+Group: office
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
-%description tokenizer-mecab
|
|
|
+%description tokenizer-mecab
|
|
|
MeCab tokenizer for Groonga
|
|
|
|
|
|
-%package plugin-suggest
|
|
|
+
|
|
|
+%package plugin-suggest
|
|
|
Summary: Suggest plugin for Groonga
|
|
|
-Group: Applications/Text
|
|
|
+Group: office
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
-%description plugin-suggest
|
|
|
+%description plugin-suggest
|
|
|
Sugget plugin for Groonga
|
|
|
|
|
|
-%package munin-plugins
|
|
|
+
|
|
|
+%package munin-plugins
|
|
|
Summary: Munin plugins for Groonga
|
|
|
-Group: Applications/System
|
|
|
+Group: system
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
Requires: munin-node
|
|
|
Requires(post): munin-node
|
|
|
Requires(post): /sbin/service
|
|
|
Requires(postun): /sbin/service
|
|
|
|
|
|
-%description munin-plugins
|
|
|
+%description munin-plugins
|
|
|
Munin plugins for Groonga
|
|
|
|
|
|
+
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
#% define optflags -O0
|
|
|
%setup -q
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
%configure \
|
|
|
--disable-static \
|
|
|
--with-package-platform=centos6 \
|
|
|
--with-zlib \
|
|
|
- --with-lzo \
|
|
|
+ --with-lz4 \
|
|
|
+ --with-zstd \
|
|
|
--with-mecab \
|
|
|
--with-munin-plugins \
|
|
|
--enable-mruby
|
|
@@ -159,6 +170,7 @@ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
@@ -203,9 +215,11 @@ EOC
|
|
|
# this file is needed by systemd only
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/tmpfiles.d
|
|
|
|
|
|
+
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+
|
|
|
%pre server-common
|
|
|
getent group groonga >/dev/null || groupadd -r groonga
|
|
|
getent passwd groonga >/dev/null || \
|
|
@@ -234,9 +248,6 @@ elif [ $1 = 2 ] ; then
|
|
|
/sbin/service groonga-httpd restart >/dev/null 2>&1 || :
|
|
|
fi
|
|
|
|
|
|
-%post libs
|
|
|
-/sbin/ldconfig
|
|
|
-
|
|
|
%post munin-plugins
|
|
|
%{_sbindir}/munin-node-configure --shell --remove-also | grep -e 'groonga_' | sh
|
|
|
[ -f %{_localstatedir}/lock/subsys/munin-node ] && \
|
|
@@ -265,9 +276,6 @@ if [ $1 -ge 1 ] ; then
|
|
|
/sbin/service groonga-server-gqtp condrestart >/dev/null 2>&1 || :
|
|
|
fi
|
|
|
|
|
|
-%postun libs
|
|
|
-/sbin/ldconfig
|
|
|
-
|
|
|
%postun munin-plugins
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
[ -f %{_localstatedir}/lock/subsys/munin-node ] && \
|
|
@@ -279,6 +287,7 @@ fi
|
|
|
chown -R groonga:groonga %{_localstatedir}/lib/groonga
|
|
|
chown -R groonga:groonga %{_localstatedir}/run/groonga
|
|
|
|
|
|
+
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
%{_bindir}/groonga
|
|
@@ -356,6 +365,10 @@ chown -R groonga:groonga %{_localstatedir}/run/groonga
|
|
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/*
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Mar 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 11.0.0-1
|
|
|
+- new upstream release.
|
|
|
+- dropped ldconfig scriptlets.
|
|
|
+
|
|
|
* Wed Sep 04 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.0.7-1
|
|
|
- new upstream release.
|
|
|
|