Skip to content

Commit

Permalink
Merge pull request #97 from ntt-ossc-dbms-internal/feature/#96-update…
Browse files Browse the repository at this point in the history
…_spec-tashiro

PostgreSQL 14向けにSPECファイルを修正
close #96
  • Loading branch information
kiskk authored Jan 28, 2022
2 parents 19030ff + 6044b24 commit ab61450
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions spec/pg_statsinfo.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

# Original declaration for pg_statsinfo rpmbuild #

%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_statsinfo.
Name: pg_statsinfo
Version: 13.0
Version: 14.0
Release: 1%{?dist}
Summary: Performance monitoring tool for PostgreSQL
Group: Applications/Databases
Expand All @@ -20,7 +20,7 @@ Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)

## We use postgresql-devel package
BuildRequires: postgresql13-devel
BuildRequires: postgresql14-devel
%if %{rhel} == 7
BuildRequires: llvm-toolset-7 llvm5.0
%endif
Expand All @@ -33,7 +33,7 @@ pg_statsinfo monitors an instance of PostgreSQL server and gather
the statistics and activities of the server as snapshots.

%package llvmjit
Requires: postgresql12-llvmjit
Requires: postgresql14-llvmjit
Requires: pg_statsinfo = %{version}
Summary: Just-in-time compilation support for pg_statsinfo

Expand Down Expand Up @@ -68,9 +68,6 @@ rm -rf %{buildroot}
%{_datadir}/contrib/uninstall_pg_statsrepo.sql
%{_datadir}/contrib/pg_statsinfo.sql
%{_datadir}/contrib/uninstall_pg_statsinfo.sql
%doc doc/pg_statsinfo-ja.html
%doc doc/pg_statsinfo.html
%doc doc/image/

%files llvmjit
%defattr(-,root,root)
Expand All @@ -79,7 +76,7 @@ rm -rf %{buildroot}
%{_libdir}/bitcode/pg_statsinfo/last_xact_activity.bc
%{_libdir}/bitcode/pg_statsinfo/pg_control.bc
%{_libdir}/bitcode/pg_statsinfo/port.bc
%{_libdir}/bitcode/pg_statsinfo/pgut/pgut-be.bc
%{_libdir}/bitcode/pg_statsinfo/wait_sampling.bc
%{_libdir}/bitcode/pg_statsinfo/pgut/pgut-spi.bc

## Script to run just before installing the package
Expand Down Expand Up @@ -124,8 +121,10 @@ EOF
fi
fi

# History of pg_statsinfo-v12 RPM.
# History of pg_statsinfo-v14 RPM.
%changelog
* Tue Feb 1 2022 - NTT OSS Center 14.0-1
- pg_statsinfo 14.0 released
* Mon Dec 14 2020 - NTT OSS Center 13.0-1
- pg_statsinfo 13.0 released
* Fri Feb 28 2020 - NTT OSS Center 12.1-1
Expand Down

0 comments on commit ab61450

Please sign in to comment.