diff --git a/README.md b/README.md index 6eafaa9..18efe94 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,13 @@ It does not yet support write operations, as added in PostgreSQL 9.3. PostgreSQL versions that the SPEC can support --------------------------------------------- * 9.3 >= 9.3.4 (EoL and not maintained by tds_fdw upstream anymore) -* 9.4 >= 9.4.1 +* 9.4 >= 9.4.1 (EoL and not maintained by tds_fdw upstream anymore) * 9.5 >= 9.5.1 * 9.6 >= 9.6.1 * 10 >= 10.0 * 11 >= 11.0 +* 12 >= 12.0 +* 13 >= 13.0 Requirements ------------ @@ -33,7 +35,7 @@ And: * postgresql[version]-devel -Being **[version]** one of: 93, 94, 95, 96, 10 or 11 +Being **[version]** one of: 93, 94, 95, 96, 10, 11, 12 or 13 To install the RPM for PostgreSQL @@ -44,7 +46,7 @@ And: * postgresql[version]-server * postgresql[version]-libs -Being **[version]** one of: 93, 94, 95, 96, 10 or 11 +Being **[version]** one of: 93, 94, 95, 96, 10, 11, 12 or 13 Building fresh RPMs ------------------- @@ -62,10 +64,10 @@ Build the RPMs for with: ./tds-fdw_rpm -p [version] -Where `[version]` is one of: 9.3, 9.4, 9.5, 9.6, 10 or 11 +Where `[version]` is one of: 9.3, 9.4, 9.5, 9.6, 10, 11, 12 or 13 And install with rpm -Uvh RPMS/$HOSTTYPE/postgresql-[version]-tds_fdw-*.*.$HOSTTYPE.rpm -Where `[version]` is one of: 9.3, 9.4, 9.5, 9.6, 10 or 11 +Where `[version]` is one of: 9.3, 9.4, 9.5, 9.6, 10, 11, 12 or 13 diff --git a/SPECS/tds_fdw-10.spec b/SPECS/tds_fdw-10.spec index 2fbb627..df337d3 100644 --- a/SPECS/tds_fdw-10.spec +++ b/SPECS/tds_fdw-10.spec @@ -2,7 +2,7 @@ %define PG_SVER 10 Name: postgresql-%{PG_SVER}-tds_fdw -Version: 2.0.1 +Version: 2.0.2 Release: 0%{?dist} Summary: TDS foreing data wrapper for PostgreSQL %{PG_VER} License: None @@ -67,6 +67,9 @@ mv %{buildroot}%{PG_DOC}/README.tds_fdw.md %{buildroot}%{MOD_DOC}/README.md %doc %{MOD_DOC}/README.md %changelog +* Sat Sep 26 2020 Julio Gonzalez Gil 2.0.2-0 +- 2.0.2 from https://github.com/tds-fdw/tds_fdw + * Tue Dec 03 2019 Julio Gonzalez Gil 2.0.1-0 - 2.0.1 from https://github.com/tds-fdw/tds_fdw - SPEC cleanup to allow easier maintenance diff --git a/SPECS/tds_fdw-11.spec b/SPECS/tds_fdw-11.spec index 3c2bf5f..b316263 100644 --- a/SPECS/tds_fdw-11.spec +++ b/SPECS/tds_fdw-11.spec @@ -2,7 +2,7 @@ %define PG_SVER 11 Name: postgresql-%{PG_SVER}-tds_fdw -Version: 2.0.1 +Version: 2.0.2 Release: 0%{?dist} Summary: TDS foreing data wrapper for PostgreSQL %{PG_VER} License: None @@ -83,6 +83,9 @@ mv %{buildroot}%{PG_DOC}/README.tds_fdw.md %{buildroot}%{MOD_DOC}/README.md %endif %changelog +* Sat Sep 26 2020 Julio Gonzalez Gil 2.0.2-0 +- 2.0.2 from https://github.com/tds-fdw/tds_fdw + * Tue Dec 03 2019 Julio Gonzalez Gil 2.0.1-0 - 2.0.1 from https://github.com/tds-fdw/tds_fdw - SPEC cleanup to allow easier maintenance diff --git a/SPECS/tds_fdw-12.spec b/SPECS/tds_fdw-12.spec index 96f33df..ecec5c8 100644 --- a/SPECS/tds_fdw-12.spec +++ b/SPECS/tds_fdw-12.spec @@ -2,7 +2,7 @@ %define PG_SVER 12 Name: postgresql-%{PG_SVER}-tds_fdw -Version: 2.0.1 +Version: 2.0.2 Release: 0%{?dist} Summary: TDS foreing data wrapper for PostgreSQL %{PG_VER} License: None @@ -83,6 +83,9 @@ mv %{buildroot}%{PG_DOC}/README.tds_fdw.md %{buildroot}%{MOD_DOC}/README.md %endif %changelog +* Sat Sep 26 2020 Julio Gonzalez Gil 2.0.2-0 +- 2.0.2 from https://github.com/tds-fdw/tds_fdw + * Tue Dec 03 2019 Julio Gonzalez Gil 2.0.1-0 - 2.0.1 from https://github.com/tds-fdw/tds_fdw - SPEC cleanup to allow easier maintenance diff --git a/SPECS/tds_fdw-13.spec b/SPECS/tds_fdw-13.spec new file mode 100644 index 0000000..554e223 --- /dev/null +++ b/SPECS/tds_fdw-13.spec @@ -0,0 +1,87 @@ +%define PG_VER 13 +%define PG_SVER 13 + +Name: postgresql-%{PG_SVER}-tds_fdw +Version: 2.0.2 +Release: 0%{?dist} +Summary: TDS foreing data wrapper for PostgreSQL %{PG_VER} +License: None +URL: https://github.com/tds-fdw/tds_fdw +Source: https://github.com/tds-fdw/tds_fdw/archive/v%{version}.tar.gz + +Provides: tds_fdw%{PG_SVER} + +Requires: postgresql%{PG_SVER} >= %{PG_VER}.0 +Requires: postgresql%{PG_SVER}-server >= %{PG_VER}.0 +%if ! 0%{?suse_version} +Requires: postgresql%{PG_SVER}-libs >= %{PG_VER}.0 +%endif +Requires: freetds >= 0.91 + +BuildRequires: gcc +BuildRequires: freetds-devel +BuildRequires: make +%if 0%{?suse_version} +BuildRequires: postgresql%{PG_SVER}-server-devel +%else +BuildRequires: postgresql%{PG_SVER}-devel +%endif + +%if 0%{?suse_version} + %define PG_BIN %{_prefix}/lib/postgresql%{PG_SVER}/bin + %define PG_LIB %{_prefix}/lib/postgresql%{PG_SVER}/%{_lib} + %define PG_DATA %{_datadir}/postgresql%{PG_SVER} + %define PG_DOC %{_docdir}/postgresql%{PG_SVER}/extension + %define MOD_DOC %{_docdir}/%{name} + %if 0%{?suse_version} >= 1500 + %define PG_BITCODEDIR %{_prefix}/lib/postgresql%{PG_SVER}/%{_lib}/bitcode + %endif +%else + %define PG_BIN %{_prefix}/pgsql-%{PG_VER}/bin + %define PG_LIB %{_prefix}/pgsql-%{PG_VER}/lib + %define PG_DATA %{_prefix}/pgsql-%{PG_VER}/share + %define PG_DOC %{_prefix}/pgsql-%{PG_VER}/doc/extension + %define MOD_DOC %{_docdir}/%{name} + %if 0%{?rhel} >= 7 + %define PG_BITCODEDIR /usr/pgsql-%{PG_VER}/lib/bitcode/ + %endif +%endif + +%description +This is a PostgreSQL foreign data wrapper that can connect to databases that +use the Tabular Data Stream (TDS) protocol, such as Sybase databases and +Microsoft SQL server. +. +It does not yet support write operations, as added in PostgreSQL %{PG_VER}. + +%global debug_package %{nil} + +%prep +%setup -q -n tds_fdw-%{version} + +%build +PATH=%{PG_BIN}/:$PATH make USE_PGXS=1 + +%install +PATH=%{PG_BIN}/:$PATH make USE_PGXS=1 install DESTDIR=%{buildroot} +mkdir -p %{buildroot}%{MOD_DOC} +mv %{buildroot}%{PG_DOC}/README.tds_fdw.md %{buildroot}%{MOD_DOC}/README.md + +%files +%attr(755, root, root)%{PG_LIB}/tds_fdw.so +%dir %attr(755, root, root)%{PG_DATA} +%dir %attr(755, root, root)%{PG_DATA}/extension +%attr(644, root, root)%{PG_DATA}/extension/tds_fdw--%{version}.sql +%attr(644, root, root)%{PG_DATA}/extension/tds_fdw.control +%dir %attr(755, root, root)%{MOD_DOC} +%doc %{MOD_DOC}/README.md +%if 0%{?rhel} >= 7 || 0%{?suse_version} >= 1500 +%attr(644, root, root)%{PG_BITCODEDIR}/tds_fdw.index.bc +%attr(644, root, root)%{PG_BITCODEDIR}/tds_fdw/src/deparse.bc +%attr(644, root, root)%{PG_BITCODEDIR}/tds_fdw/src/options.bc +%attr(644, root, root)%{PG_BITCODEDIR}/tds_fdw/src/tds_fdw.bc +%endif + +%changelog +* Sat Sep 26 2020 Julio Gonzalez Gil 2.0.2-0 +- 2.0.2 from https://github.com/tds-fdw/tds_fdw diff --git a/SPECS/tds_fdw-93.spec b/SPECS/tds_fdw-93.spec index c167770..4d3415d 100644 --- a/SPECS/tds_fdw-93.spec +++ b/SPECS/tds_fdw-93.spec @@ -2,7 +2,7 @@ %define PG_SVER 93 Name: postgresql-%{PG_SVER}-tds_fdw -Version: 2.0.1 +Version: 2.0.2 Release: 0%{?dist} Summary: TDS foreing data wrapper for PostgreSQL %{PG_VER} License: None @@ -67,6 +67,9 @@ mv %{buildroot}%{PG_DOC}/README.tds_fdw.md %{buildroot}%{MOD_DOC}/README.md %doc %{MOD_DOC}/README.md %changelog +* Sat Sep 26 2020 Julio Gonzalez Gil 2.0.2-0 +- 2.0.2 from https://github.com/tds-fdw/tds_fdw + * Tue Dec 03 2019 Julio Gonzalez Gil 2.0.1-0 - 2.0.1 from https://github.com/tds-fdw/tds_fdw - SPEC cleanup to allow easier maintenance diff --git a/SPECS/tds_fdw-94.spec b/SPECS/tds_fdw-94.spec index 4c81644..3c32c99 100644 --- a/SPECS/tds_fdw-94.spec +++ b/SPECS/tds_fdw-94.spec @@ -2,7 +2,7 @@ %define PG_SVER 94 Name: postgresql-%{PG_SVER}-tds_fdw -Version: 2.0.1 +Version: 2.0.2 Release: 0%{?dist} Summary: TDS foreing data wrapper for PostgreSQL %{PG_VER} License: None @@ -67,6 +67,9 @@ mv %{buildroot}%{PG_DOC}/README.tds_fdw.md %{buildroot}%{MOD_DOC}/README.md %doc %{MOD_DOC}/README.md %changelog +* Sat Sep 26 2020 Julio Gonzalez Gil 2.0.2-0 +- 2.0.2 from https://github.com/tds-fdw/tds_fdw + * Tue Dec 03 2019 Julio Gonzalez Gil 2.0.1-0 - 2.0.1 from https://github.com/tds-fdw/tds_fdw - SPEC cleanup to allow easier maintenance diff --git a/SPECS/tds_fdw-95.spec b/SPECS/tds_fdw-95.spec index 825ae74..9732455 100644 --- a/SPECS/tds_fdw-95.spec +++ b/SPECS/tds_fdw-95.spec @@ -2,7 +2,7 @@ %define PG_SVER 95 Name: postgresql-%{PG_SVER}-tds_fdw -Version: 2.0.1 +Version: 2.0.2 Release: 0%{?dist} Summary: TDS foreing data wrapper for PostgreSQL %{PG_VER} License: None @@ -67,6 +67,9 @@ mv %{buildroot}%{PG_DOC}/README.tds_fdw.md %{buildroot}%{MOD_DOC}/README.md %doc %{MOD_DOC}/README.md %changelog +* Sat Sep 26 2020 Julio Gonzalez Gil 2.0.2-0 +- 2.0.2 from https://github.com/tds-fdw/tds_fdw + * Tue Dec 03 2019 Julio Gonzalez Gil 2.0.1-0 - 2.0.1 from https://github.com/tds-fdw/tds_fdw - SPEC cleanup to allow easier maintenance diff --git a/SPECS/tds_fdw-96.spec b/SPECS/tds_fdw-96.spec index 4f915d3..377387b 100644 --- a/SPECS/tds_fdw-96.spec +++ b/SPECS/tds_fdw-96.spec @@ -2,7 +2,7 @@ %define PG_SVER 96 Name: postgresql-%{PG_SVER}-tds_fdw -Version: 2.0.1 +Version: 2.0.2 Release: 0%{?dist} Summary: TDS foreing data wrapper for PostgreSQL %{PG_VER} License: None @@ -67,6 +67,9 @@ mv %{buildroot}%{PG_DOC}/README.tds_fdw.md %{buildroot}%{MOD_DOC}/README.md %doc %{MOD_DOC}/README.md %changelog +* Sat Sep 26 2020 Julio Gonzalez Gil 2.0.2-0 +- 2.0.2 from https://github.com/tds-fdw/tds_fdw + * Tue Dec 03 2019 Julio Gonzalez Gil 2.0.1-0 - 2.0.1 from https://github.com/tds-fdw/tds_fdw - SPEC cleanup to allow easier maintenance diff --git a/ci b/ci index e83300d..bb94866 100755 --- a/ci +++ b/ci @@ -9,7 +9,7 @@ SCRIPT=$(basename ${0}) SUPPORTEDDISTROS='centos6 centos7' # Supported PostgreSQL major versions -POSTGRESQLMAJORVERS='9.3 9.4 9.5 9.6 10 11 12' +POSTGRESQLMAJORVERS='9.3 9.4 9.5 9.6 10 11 12 13' # Allocate tty by default TTY='-t' diff --git a/tds_fdw-rpm b/tds_fdw-rpm index b03c802..d8ecd8c 100755 --- a/tds_fdw-rpm +++ b/tds_fdw-rpm @@ -1,7 +1,7 @@ #!/bin/bash -e SCRIPT=$(basename ${0}) -VERSIONS="9.3 9.4 9.5 9.6 10 11 12" +VERSIONS="9.3 9.4 9.5 9.6 10 11 12 13" function help() { echo ""