# SPEC file for pg_store_plans
# Copyright(C) 2020 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
-%define _pgdir /usr/pgsql-13
+%define _pgdir /usr/pgsql-14
%define _bindir %{_pgdir}/bin
%define _libdir %{_pgdir}/lib
%define _datadir %{_pgdir}/share
## Set general information for pg_store_plans.
Summary: Optimizer hint on PostgreSQL 12
-Name: pg_hint_plan13
-Version: 1.3.7
+Name: pg_hint_plan14
+Version: 1.4
Release: 1%{?dist}
License: BSD
Group: Applications/Databases
Vendor: NIPPON TELEGRAPH AND TELEPHONE CORPORATION
## We use postgresql-devel package
-BuildRequires: postgresql13-devel
-Requires: postgresql13-server
+BuildRequires: postgresql14-devel
+Requires: postgresql14-server
## Description for "pg_hint_plan"
%description
pg_hint_plan provides capability to tweak execution plans to be
executed on PostgreSQL.
-Note that this package is available for only PostgreSQL 13.
+Note that this package is available for only PostgreSQL 14.
%package llvmjit
-Requires: postgresql13-server, postgresql13-llvmjit
-Requires: pg_hint_plan13 = 1.3.7
-Summary: Just-in-time compilation support for pg_hint_plan13
+Requires: postgresql14-server, postgresql14-llvmjit
+Requires: pg_hint_plan14 = 1.4
+Summary: Just-in-time compilation support for pg_hint_plan14
%description llvmjit
-Just-in-time compilation support for pg_hint_plan13
+Just-in-time compilation support for pg_hint_plan14
## pre work for build pg_hint_plan
%prep
-PATH=/usr/pgsql-13/bin:$PATH
+PATH=/usr/pgsql-14/bin:$PATH
if [ "${MAKE_ROOT}" != "" ]; then
pushd ${MAKE_ROOT}
make clean %{name}-%{version}.tar.gz
## Set variables for build environment
%build
-PATH=/usr/pgsql-13/bin:$PATH
+PATH=/usr/pgsql-14/bin:$PATH
make USE_PGXS=1 %{?_smp_mflags}
## Set variables for install
%defattr(0755,root,root)
%{_libdir}/pg_hint_plan.so
%defattr(0644,root,root)
-%{_datadir}/extension/pg_hint_plan--1.3.7.sql
+%{_datadir}/extension/pg_hint_plan--1.4.sql
%{_datadir}/extension/pg_hint_plan.control
%files llvmjit
# History of pg_hint_plan.
%changelog
-* Thu Oct 29 2020 Kyotaro Horiguchi
-- First release of pg_hint_plan13.
+* Tue Oct 05 2021 Kyotaro Horiguchi
+- Support PostgreSQL 14.