Skip to content

Commit

Permalink
Bump to version 2.0.2 and add PostgreSQL 13
Browse files Browse the repository at this point in the history
  • Loading branch information
juliogonzalez committed Sep 26, 2020
1 parent b049006 commit edb4a50
Show file tree
Hide file tree
Showing 11 changed files with 124 additions and 14 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------
Expand All @@ -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

Expand All @@ -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
-------------------
Expand All @@ -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
5 changes: 4 additions & 1 deletion SPECS/tds_fdw-10.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <[email protected]> 2.0.2-0
- 2.0.2 from https://github.com/tds-fdw/tds_fdw

* Tue Dec 03 2019 Julio Gonzalez Gil <[email protected]> 2.0.1-0
- 2.0.1 from https://github.com/tds-fdw/tds_fdw
- SPEC cleanup to allow easier maintenance
Expand Down
5 changes: 4 additions & 1 deletion SPECS/tds_fdw-11.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <[email protected]> 2.0.2-0
- 2.0.2 from https://github.com/tds-fdw/tds_fdw

* Tue Dec 03 2019 Julio Gonzalez Gil <[email protected]> 2.0.1-0
- 2.0.1 from https://github.com/tds-fdw/tds_fdw
- SPEC cleanup to allow easier maintenance
Expand Down
5 changes: 4 additions & 1 deletion SPECS/tds_fdw-12.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <[email protected]> 2.0.2-0
- 2.0.2 from https://github.com/tds-fdw/tds_fdw

* Tue Dec 03 2019 Julio Gonzalez Gil <[email protected]> 2.0.1-0
- 2.0.1 from https://github.com/tds-fdw/tds_fdw
- SPEC cleanup to allow easier maintenance
Expand Down
87 changes: 87 additions & 0 deletions SPECS/tds_fdw-13.spec
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> 2.0.2-0
- 2.0.2 from https://github.com/tds-fdw/tds_fdw
5 changes: 4 additions & 1 deletion SPECS/tds_fdw-93.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <[email protected]> 2.0.2-0
- 2.0.2 from https://github.com/tds-fdw/tds_fdw

* Tue Dec 03 2019 Julio Gonzalez Gil <[email protected]> 2.0.1-0
- 2.0.1 from https://github.com/tds-fdw/tds_fdw
- SPEC cleanup to allow easier maintenance
Expand Down
5 changes: 4 additions & 1 deletion SPECS/tds_fdw-94.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <[email protected]> 2.0.2-0
- 2.0.2 from https://github.com/tds-fdw/tds_fdw

* Tue Dec 03 2019 Julio Gonzalez Gil <[email protected]> 2.0.1-0
- 2.0.1 from https://github.com/tds-fdw/tds_fdw
- SPEC cleanup to allow easier maintenance
Expand Down
5 changes: 4 additions & 1 deletion SPECS/tds_fdw-95.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <[email protected]> 2.0.2-0
- 2.0.2 from https://github.com/tds-fdw/tds_fdw

* Tue Dec 03 2019 Julio Gonzalez Gil <[email protected]> 2.0.1-0
- 2.0.1 from https://github.com/tds-fdw/tds_fdw
- SPEC cleanup to allow easier maintenance
Expand Down
5 changes: 4 additions & 1 deletion SPECS/tds_fdw-96.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <[email protected]> 2.0.2-0
- 2.0.2 from https://github.com/tds-fdw/tds_fdw

* Tue Dec 03 2019 Julio Gonzalez Gil <[email protected]> 2.0.1-0
- 2.0.1 from https://github.com/tds-fdw/tds_fdw
- SPEC cleanup to allow easier maintenance
Expand Down
2 changes: 1 addition & 1 deletion ci
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tds_fdw-rpm
Original file line number Diff line number Diff line change
@@ -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 ""
Expand Down

0 comments on commit edb4a50

Please sign in to comment.