11# SPEC file for dblink_plus
2- # Copyright(C) 2019 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
2+ # Copyright(C) 2021 NIPPON TELEGRAPH AND TELEPHONE CORPORATION
33
44%define _pgdir /usr/pgsql-12
55%define _bindir %{_pgdir }/bin
1111## Set general information
1212Summary: PostgreSQL module to connect PostgreSQL/Oracle
1313Name: dblink_plus
14- Version: 1.0.5
14+ Version: 1.0.6
1515Release: 1%{?dist }
1616License: BSD
1717Group: Applications/Databases
@@ -35,11 +35,11 @@ Note that this package is available for only PostgreSQL 12.
3535
3636%package llvmjit
3737Requires: postgresql12-server, postgresql12-llvmjit
38- Requires: dblink_plus = 1.0.5
38+ Requires: dblink_plus = 1.0.6
3939Summary: Just-in-time compilation support for dblink_plus
4040
4141%description llvmjit
42- Just-in-time compilation support for dblink_plus 1.0.5
42+ Just-in-time compilation support for dblink_plus 1.0.6
4343
4444## prework
4545%prep
@@ -52,29 +52,18 @@ USE_PGXS=1 make %{?_smp_mflags} MYSQL=0 SQLITE3=0 ORACLE=1
5252## Set variables for install
5353%install
5454rm -rf %{buildroot }
55-
56- install -d %{buildroot }%{_libdir }
57- install -m 755 dblink_plus.so %{buildroot }%{_libdir }/dblink_plus.so
58- install -d %{buildroot }%{_datadir }
59- install -m 755 dblink_plus.sql %{buildroot }%{_datadir }/dblink_plus.sql
60- install -m 755 dblink_plus--1.0.5.sql %{buildroot }%{_datadir }/dblink_plus--1.0.5.sql
61- install -m 755 dblink_plus.control %{buildroot }%{_datadir }/dblink_plus.control
62- install -m 755 uninstall_dblink_plus.sql %{buildroot }%{_datadir }/uninstall_dblink_plus.sql
63- install -m 755 COPYRIGHT %{buildroot }%{_datadir }/COPYRIGHT_dblink_plus
64- install -d %{buildroot }%{_bcdir }
65- install -m 644 dblink.bc %{buildroot }%{_bcdir }/dblink.bc
66- install -m 644 dblink_postgres.bc %{buildroot }%{_bcdir }/dblink_postgres.bc
67- install -m 644 dblink_oracle.bc %{buildroot }%{_bcdir }/dblink_oracle.bc
68- install -m 644 dblink_plus.index.bc %{buildroot }%{_bc_ind_dir }/dblink_plus.index.bc
55+ USE_PGXS=1 make install MYSQL=0 SQLITE3=0 ORACLE=1 DESTDIR=%{buildroot }
56+ install -m 644 COPYRIGHT %{buildroot }%{_datadir }/COPYRIGHT_dblink_plus
6957
7058%clean
7159rm -rf %{buildroot }
7260
7361%files
74- %defattr(755 ,root,root)
62+ %defattr(0755 ,root,root)
7563%{_libdir }/dblink_plus.so
64+ %defattr(0644,root,root)
7665%{_datadir }/dblink_plus.sql
77- %{_datadir }/dblink_plus--1.0.5 .sql
66+ %{_datadir }/dblink_plus--1.0.6 .sql
7867%{_datadir }/dblink_plus.control
7968%{_datadir }/uninstall_dblink_plus.sql
8069%{_datadir }/COPYRIGHT_dblink_plus
@@ -87,6 +76,8 @@ rm -rf %{buildroot}
8776
8877# History.
8978%changelog
79+ * Thu Jan 07 2021 - NTT OSS Center <keisuke.kuroda.3862@gmail.com> 1.0.6-1
80+ Support PG13 and fix how to install bitcode.
9081* Mon Nov 25 2019 - NTT OSS Center <keisuke.kuroda.3862@gmail.com> 1.0.5-1
9182Support PG12.
9283* Tue Jan 22 2019 - NTT OSS Center <tatsuro.yamada@lab.ntt.co.jp> 1.0.4-1
0 commit comments