Skip to content

Commit

Permalink
Update to 2.0.0-alpha.3
Browse files Browse the repository at this point in the history
  • Loading branch information
juliogonzalez committed Jan 19, 2019
1 parent 46ad7dc commit 4e1cd24
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 27 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tds_fdw
=======

CentOS/RH/Amazon RPMs for tds_fdw <https://github.com/GeoffMontee/tds_fdw> and postgresql 9.3.4 or later
CentOS/RH/Amazon RPMs for tds_fdw <https://github.com/tds-fdw/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

Expand All @@ -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
------------
Expand All @@ -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

Expand All @@ -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
-------------------
Expand All @@ -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
11 changes: 7 additions & 4 deletions SPECS/tds_fdw-10.spec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -45,14 +45,17 @@ 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



%changelog

* Sat Jan 19 2019 Julio Gonzalez Gil <[email protected]> - 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 <[email protected]> - 2.0.0-alpha.2.1
- Initial build of 2.0.0-alpha.2 from https://github.com/tds-fdw/tds_fdw

70 changes: 70 additions & 0 deletions SPECS/tds_fdw-11.spec
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> - 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 <[email protected]> - 2.0.0-alpha.2.1
- Initial build of 2.0.0-alpha.2 from https://github.com/tds-fdw/tds_fdw
11 changes: 7 additions & 4 deletions SPECS/tds_fdw-93.spec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -45,14 +45,17 @@ 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



%changelog

* Sat Jan 19 2019 Julio Gonzalez Gil <[email protected]> - 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 <[email protected]> - 2.0.0-alpha.2.1
- 2.0.0-alpha.2 build from https://github.com/tds-fdw/tds_fdw

Expand Down
11 changes: 7 additions & 4 deletions SPECS/tds_fdw-94.spec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -45,14 +45,17 @@ 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



%changelog

* Sat Jan 19 2019 Julio Gonzalez Gil <[email protected]> - 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 <[email protected]> - 2.0.0-alpha.2.1
- 2.0.0-alpha.2 build from https://github.com/tds-fdw/tds_fdw

Expand Down
11 changes: 7 additions & 4 deletions SPECS/tds_fdw-95.spec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -45,14 +45,17 @@ 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



%changelog

* Sat Jan 19 2019 Julio Gonzalez Gil <[email protected]> - 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 <[email protected]> - 2.0.0-alpha.2.1
- 2.0.0-alpha.2 build from https://github.com/tds-fdw/tds_fdw

Expand Down
11 changes: 7 additions & 4 deletions SPECS/tds_fdw-96.spec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -45,14 +45,17 @@ 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



%changelog

* Sat Jan 19 2019 Julio Gonzalez Gil <[email protected]> - 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 <[email protected]> - 2.0.0-alpha.2.1
- 2.0.0-alpha.2 build from https://github.com/tds-fdw/tds_fdw

Expand Down
4 changes: 2 additions & 2 deletions tds_fdw-rpm
Original file line number Diff line number Diff line change
@@ -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 ""
Expand Down

0 comments on commit 4e1cd24

Please sign in to comment.