diff --git a/README.md b/README.md index 4cecc51..6eafaa9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ tds_fdw ======= -CentOS/RH/Amazon RPMs for tds_fdw and postgresql 9.3.4 or later +CentOS/RH/Amazon RPMs for tds_fdw and postgresql 9.3.4 or later Tested on CentOS 6/7 x86_64. Should work for other RPM base distributions such as openSUSE or Amazon Linux @@ -16,6 +16,7 @@ PostgreSQL versions that the SPEC can support * 9.5 >= 9.5.1 * 9.6 >= 9.6.1 * 10 >= 10.0 +* 11 >= 11.0 Requirements ------------ @@ -32,7 +33,7 @@ And: * postgresql[version]-devel -Being **[version]** one of: 93, 94, 95, 96 or 10 +Being **[version]** one of: 93, 94, 95, 96, 10 or 11 To install the RPM for PostgreSQL @@ -43,7 +44,7 @@ And: * postgresql[version]-server * postgresql[version]-libs -Being **[version]** one of: 93, 94, 95, 96 or 10 +Being **[version]** one of: 93, 94, 95, 96, 10 or 11 Building fresh RPMs ------------------- @@ -61,10 +62,10 @@ Build the RPMs for with: ./tds-fdw_rpm -p [version] -Where `[version]` is one of: 9.3, 9.4, 9.5, 9.6 or 10 +Where `[version]` is one of: 9.3, 9.4, 9.5, 9.6, 10 or 11 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 or 10 +Where `[version]` is one of: 9.3, 9.4, 9.5, 9.6, 10 or 11 diff --git a/SPECS/tds_fdw-10.spec b/SPECS/tds_fdw-10.spec index 979a512..4ec3509 100644 --- a/SPECS/tds_fdw-10.spec +++ b/SPECS/tds_fdw-10.spec @@ -1,11 +1,11 @@ Name: postgresql-10-tds_fdw Version: 2.0.0 -Release: alpha.2.1%{?dist} +Release: alpha.3.1%{?dist} Summary: TDS foreing data wrapper for PostgreSQL 10.0 License: None URL: https://github.com/tds-fdw/tds_fdw -Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.2.tar.gz +Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.3.tar.gz Requires: postgresql10 >= 10.0 Requires: postgresql10-server >= 10.0 @@ -27,7 +27,7 @@ It does not yet support write operations, as added in PostgreSQL 9.3. %global debug_package %{nil} %prep -%setup -q -n tds_fdw-2.0.0-alpha.2 +%setup -q -n tds_fdw-2.0.0-alpha.3 %build @@ -45,7 +45,7 @@ rm -rf %{buildroot} %files %attr(755, root, root)/usr/pgsql-10/lib/tds_fdw.so -%attr(644, root, root)/usr/pgsql-10/share/extension/tds_fdw--2.0.0-alpha.2.sql +%attr(644, root, root)/usr/pgsql-10/share/extension/tds_fdw--2.0.0-alpha.3.sql %attr(644, root, root)/usr/pgsql-10/share/extension/tds_fdw.control %doc /usr/share/doc/%{name}-%{version}/README.md @@ -53,6 +53,9 @@ rm -rf %{buildroot} %changelog +* Sat Jan 19 2019 Julio Gonzalez Gil - 2.0.0-alpha.3.1 +- 2.0.0-alpha.3 build from https://github.com/tds-fdw/tds_fdw + * Fri Jan 18 2019 Julio Gonzalez Gil - 2.0.0-alpha.2.1 - Initial build of 2.0.0-alpha.2 from https://github.com/tds-fdw/tds_fdw diff --git a/SPECS/tds_fdw-11.spec b/SPECS/tds_fdw-11.spec new file mode 100644 index 0000000..0c9daad --- /dev/null +++ b/SPECS/tds_fdw-11.spec @@ -0,0 +1,70 @@ +Name: postgresql-11-tds_fdw +Version: 2.0.0 +Release: alpha.3.1%{?dist} +Summary: TDS foreing data wrapper for PostgreSQL 11 + +License: None +URL: https://github.com/tds-fdw/tds_fdw +Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.3.tar.gz + +Requires: postgresql11 >= 11.0 +Requires: postgresql11-server >= 11.0 +Requires: postgresql11-libs >= 11.0 +Requires: freetds >= 0.91 + +BuildRequires: gcc +BuildRequires: freetds-devel +BuildRequires: make +BuildRequires: postgresql11-devel +%if 0%{?rhel} >= 7 +BuildRequires: llvm-toolset-7-clang +BuildRequires: llvm5.0 +%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 9.3. + +%global debug_package %{nil} + +%prep +%setup -q -n tds_fdw-2.0.0-alpha.3 + + +%build +PATH=/usr/pgsql-11/bin:$PATH make USE_PGXS=1 + +%install +rm -rf %{buildroot} +PATH=/usr/pgsql-11/bin:$PATH make USE_PGXS=1 install DESTDIR=%{buildroot} +mkdir -p %{buildroot}/usr/share/doc/%{name}-%{version} +mv %{buildroot}/usr/pgsql-11/doc/extension/README.tds_fdw.md %{buildroot}/usr/share/doc/%{name}-%{version}/README.md +rm -rf %{buildroot}/usr/share/doc/pgsql/extension/ + +%clean +rm -rf %{buildroot} + +%files +%attr(755, root, root)/usr/pgsql-11/lib/tds_fdw.so +%if 0%{?rhel} >= 7 +%attr(644, root, root)/usr/pgsql-11/lib/bitcode/tds_fdw.index.bc +%attr(644, root, root)/usr/pgsql-11/lib/bitcode/tds_fdw/src/deparse.bc +%attr(644, root, root)/usr/pgsql-11/lib/bitcode/tds_fdw/src/options.bc +%attr(644, root, root)/usr/pgsql-11/lib/bitcode/tds_fdw/src/tds_fdw.bc +%endif +%attr(644, root, root)/usr/pgsql-11/share/extension/tds_fdw--2.0.0-alpha.3.sql +%attr(644, root, root)/usr/pgsql-11/share/extension/tds_fdw.control +%doc /usr/share/doc/%{name}-%{version}/README.md + + + +%changelog + +* Sat Jan 19 2019 Julio Gonzalez Gil - 2.0.0-alpha.3.1 +- 2.0.0-alpha.3 build from https://github.com/tds-fdw/tds_fdw + +* Fri Jan 18 2019 Julio Gonzalez Gil - 2.0.0-alpha.2.1 +- Initial build of 2.0.0-alpha.2 from https://github.com/tds-fdw/tds_fdw diff --git a/SPECS/tds_fdw-93.spec b/SPECS/tds_fdw-93.spec index 6180b03..e1e099e 100644 --- a/SPECS/tds_fdw-93.spec +++ b/SPECS/tds_fdw-93.spec @@ -1,11 +1,11 @@ Name: postgresql-93-tds_fdw Version: 2.0.0 -Release: alpha.2.1%{?dist} +Release: alpha.3.1%{?dist} Summary: TDS foreing data wrapper for PostgreSQL 9.3 License: None URL: https://github.com/tds-fdw/tds_fdw -Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.2.tar.gz +Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.3.tar.gz Requires: postgresql93 >= 9.3.4 Requires: postgresql93-server >= 9.3.4 @@ -27,7 +27,7 @@ It does not yet support write operations, as added in PostgreSQL 9.3. %global debug_package %{nil} %prep -%setup -q -n tds_fdw-2.0.0-alpha.2 +%setup -q -n tds_fdw-2.0.0-alpha.3 %build @@ -45,7 +45,7 @@ rm -rf %{buildroot} %files %attr(755, root, root)/usr/pgsql-9.3/lib/tds_fdw.so -%attr(644, root, root)/usr/pgsql-9.3/share/extension/tds_fdw--2.0.0-alpha.2.sql +%attr(644, root, root)/usr/pgsql-9.3/share/extension/tds_fdw--2.0.0-alpha.3.sql %attr(644, root, root)/usr/pgsql-9.3/share/extension/tds_fdw.control %doc /usr/share/doc/%{name}-%{version}/README.md @@ -53,6 +53,9 @@ rm -rf %{buildroot} %changelog +* Sat Jan 19 2019 Julio Gonzalez Gil - 2.0.0-alpha.3.1 +- 2.0.0-alpha.3 build from https://github.com/tds-fdw/tds_fdw + * Fri Jan 18 2019 Julio Gonzalez Gil - 2.0.0-alpha.2.1 - 2.0.0-alpha.2 build from https://github.com/tds-fdw/tds_fdw diff --git a/SPECS/tds_fdw-94.spec b/SPECS/tds_fdw-94.spec index 473114f..52f6b54 100644 --- a/SPECS/tds_fdw-94.spec +++ b/SPECS/tds_fdw-94.spec @@ -1,11 +1,11 @@ Name: postgresql-94-tds_fdw Version: 2.0.0 -Release: alpha.2.1%{?dist} +Release: alpha.3.1%{?dist} Summary: TDS foreing data wrapper for PostgreSQL 9.4 License: None URL: https://github.com/tds-fdw/tds_fdw -Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.2.tar.gz +Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.3.tar.gz Requires: postgresql94 >= 9.4.1 Requires: postgresql94-server >= 9.4.1 @@ -27,7 +27,7 @@ It does not yet support write operations, as added in PostgreSQL 9.3. %global debug_package %{nil} %prep -%setup -q -n tds_fdw-2.0.0-alpha.2 +%setup -q -n tds_fdw-2.0.0-alpha.3 %build @@ -45,7 +45,7 @@ rm -rf %{buildroot} %files %attr(755, root, root)/usr/pgsql-9.4/lib/tds_fdw.so -%attr(644, root, root)/usr/pgsql-9.4/share/extension/tds_fdw--2.0.0-alpha.2.sql +%attr(644, root, root)/usr/pgsql-9.4/share/extension/tds_fdw--2.0.0-alpha.3.sql %attr(644, root, root)/usr/pgsql-9.4/share/extension/tds_fdw.control %doc /usr/share/doc/%{name}-%{version}/README.md @@ -53,6 +53,9 @@ rm -rf %{buildroot} %changelog +* Sat Jan 19 2019 Julio Gonzalez Gil - 2.0.0-alpha.3.1 +- 2.0.0-alpha.3 build from https://github.com/tds-fdw/tds_fdw + * Fri Jan 18 2019 Julio Gonzalez Gil - 2.0.0-alpha.2.1 - 2.0.0-alpha.2 build from https://github.com/tds-fdw/tds_fdw diff --git a/SPECS/tds_fdw-95.spec b/SPECS/tds_fdw-95.spec index b21cad2..0ec3e51 100644 --- a/SPECS/tds_fdw-95.spec +++ b/SPECS/tds_fdw-95.spec @@ -1,11 +1,11 @@ Name: postgresql-95-tds_fdw Version: 2.0.0 -Release: alpha.2.1%{?dist} +Release: alpha.3.1%{?dist} Summary: TDS foreing data wrapper for PostgreSQL 9.5 License: None URL: https://github.com/tds-fdw/tds_fdw -Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.2.tar.gz +Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.3.tar.gz Requires: postgresql95 >= 9.5.1 Requires: postgresql95-server >= 9.5.1 @@ -27,7 +27,7 @@ It does not yet support write operations, as added in PostgreSQL 9.3. %global debug_package %{nil} %prep -%setup -q -n tds_fdw-2.0.0-alpha.2 +%setup -q -n tds_fdw-2.0.0-alpha.3 %build @@ -45,7 +45,7 @@ rm -rf %{buildroot} %files %attr(755, root, root)/usr/pgsql-9.5/lib/tds_fdw.so -%attr(644, root, root)/usr/pgsql-9.5/share/extension/tds_fdw--2.0.0-alpha.2.sql +%attr(644, root, root)/usr/pgsql-9.5/share/extension/tds_fdw--2.0.0-alpha.3.sql %attr(644, root, root)/usr/pgsql-9.5/share/extension/tds_fdw.control %doc /usr/share/doc/%{name}-%{version}/README.md @@ -53,6 +53,9 @@ rm -rf %{buildroot} %changelog +* Sat Jan 19 2019 Julio Gonzalez Gil - 2.0.0-alpha.3.1 +- 2.0.0-alpha.3 build from https://github.com/tds-fdw/tds_fdw + * Fri Jan 18 2019 Julio Gonzalez Gil - 2.0.0-alpha.2.1 - 2.0.0-alpha.2 build from https://github.com/tds-fdw/tds_fdw diff --git a/SPECS/tds_fdw-96.spec b/SPECS/tds_fdw-96.spec index c26bd6d..bbba034 100644 --- a/SPECS/tds_fdw-96.spec +++ b/SPECS/tds_fdw-96.spec @@ -1,11 +1,11 @@ Name: postgresql-96-tds_fdw Version: 2.0.0 -Release: alpha.2.1%{?dist} +Release: alpha.3.1%{?dist} Summary: TDS foreing data wrapper for PostgreSQL 9.6 License: None URL: https://github.com/tds-fdw/tds_fdw -Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.2.tar.gz +Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.3.tar.gz Requires: postgresql96 >= 9.6.1 Requires: postgresql96-server >= 9.6.1 @@ -27,7 +27,7 @@ It does not yet support write operations, as added in PostgreSQL 9.3. %global debug_package %{nil} %prep -%setup -q -n tds_fdw-2.0.0-alpha.2 +%setup -q -n tds_fdw-2.0.0-alpha.3 %build @@ -45,7 +45,7 @@ rm -rf %{buildroot} %files %attr(755, root, root)/usr/pgsql-9.6/lib/tds_fdw.so -%attr(644, root, root)/usr/pgsql-9.6/share/extension/tds_fdw--2.0.0-alpha.2.sql +%attr(644, root, root)/usr/pgsql-9.6/share/extension/tds_fdw--2.0.0-alpha.3.sql %attr(644, root, root)/usr/pgsql-9.6/share/extension/tds_fdw.control %doc /usr/share/doc/%{name}-%{version}/README.md @@ -53,6 +53,9 @@ rm -rf %{buildroot} %changelog +* Sat Jan 19 2019 Julio Gonzalez Gil - 2.0.0-alpha.3.1 +- 2.0.0-alpha.3 build from https://github.com/tds-fdw/tds_fdw + * Fri Jan 18 2019 Julio Gonzalez Gil - 2.0.0-alpha.2.1 - 2.0.0-alpha.2 build from https://github.com/tds-fdw/tds_fdw diff --git a/tds_fdw-rpm b/tds_fdw-rpm index ca35fe1..e9ed1ed 100755 --- a/tds_fdw-rpm +++ b/tds_fdw-rpm @@ -1,8 +1,8 @@ #!/bin/bash SCRIPT=$(basename ${0}) -MODULE_VER="2.0.0-alpha.2" -VERSIONS="9.3 9.4 9.5 9.6 10" +MODULE_VER="2.0.0-alpha.3" +VERSIONS="9.3 9.4 9.5 9.6 10 11" function help() { echo ""