Skip to content

Commit

Permalink
Update to 2.0.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
juliogonzalez committed Jan 19, 2019
1 parent 73b8283 commit 46ad7dc
Show file tree
Hide file tree
Showing 8 changed files with 374 additions and 120 deletions.
49 changes: 30 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,48 @@ tds_fdw

CentOS/RH/Amazon RPMs for tds_fdw <https://github.com/GeoffMontee/tds_fdw> and postgresql 9.3.4 or later

Tested on CentOS 6.4/7.1 x86_64 and Amazon Linux 2014.03
Tested on CentOS 6/7 x86_64. Should work for other RPM base distributions such as openSUSE or Amazon Linux

tds_fdw 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.

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.5 >= 9.5.1
* 9.6 >= 9.6.1
* 10 >= 10.0

Requirements
------------

Use postgresql93\* packages for PostgreSQL 9.3 (>= 9.3.4) or posgresql94\* packages for PostgreSQL 9.4 (>= 9.4.1)

To build:

* freetds-devel
* postgresql93-devel or postgresql94-devel
* automake
* gcc-c++
* gcc
* Git
* make
* rpmbuild

And:

* postgresql[version]-devel

Being **[version]** one of: 93, 94, 95, 96 or 10

To install the RPM for PostgreSQL

* postgresql93 >= 9.3.4 or postgresql94 >= 9.4.1
* postgresql93-server >= 9.3.4 or postgresql94-server >= 9.4.1
* postgresql93-libs >= 9.3.4 or postgresql94-libs >= 9.4.1
* freetds >= 0.91

And:
* postgresql[version]
* postgresql[version]-server
* postgresql[version]-libs

Being **[version]** one of: 93, 94, 95, 96 or 10

Building fresh RPMs
-------------------

Expand All @@ -42,18 +57,14 @@ Clone the repo:
Build the tds_fdw RPM
---------------------

Build the RPMs:

./tds-fdw_rpm -p 9.3 for PostgreSQL 9.3

or
Build the RPMs for with:

./tds-fdw_rpm -p 9.4 for PostgreSQL 9.4
./tds-fdw_rpm -p [version]

And install:
Where `[version]` is one of: 9.3, 9.4, 9.5, 9.6 or 10

rpm -Uvh RPMS/$HOSTTYPE/postgresql-93-tds_fdw-1.0.8-1.*.$HOSTTYPE.rpm for PostgreSQL 9.3
And install with

or
rpm -Uvh RPMS/$HOSTTYPE/postgresql-[version]-tds_fdw-*.*.$HOSTTYPE.rpm

rpm -Uvh RPMS/$HOSTTYPE/postgresql-94-tds_fdw-1.0.8-1.*.$HOSTTYPE.rpm for PostgreSQL 9.4
Where `[version]` is one of: 9.3, 9.4, 9.5, 9.6 or 10
58 changes: 58 additions & 0 deletions SPECS/tds_fdw-10.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
Name: postgresql-10-tds_fdw
Version: 2.0.0
Release: alpha.2.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

Requires: postgresql10 >= 10.0
Requires: postgresql10-server >= 10.0
Requires: postgresql10-libs >= 10.0
Requires: freetds >= 0.91

BuildRequires: gcc
BuildRequires: freetds-devel
BuildRequires: make
BuildRequires: postgresql10-devel

%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.2


%build
PATH=/usr/pgsql-10/bin:$PATH make USE_PGXS=1

%install
rm -rf %{buildroot}
PATH=/usr/pgsql-10/bin:$PATH make USE_PGXS=1 install DESTDIR=%{buildroot}
mkdir -p %{buildroot}/usr/share/doc/%{name}-%{version}
mv %{buildroot}/usr/pgsql-10/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-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.control
%doc /usr/share/doc/%{name}-%{version}/README.md



%changelog

* 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

45 changes: 25 additions & 20 deletions SPECS/tds_fdw-93.spec
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
Name: postgresql-93-tds_fdw
Version: 1.0.8
Release: 1%{?dist}
Version: 2.0.0
Release: alpha.2.1%{?dist}
Summary: TDS foreing data wrapper for PostgreSQL 9.3

License: None
URL: https://github.com/GeoffMontee/tds_fdw
Source: https://github.com/GeoffMontee/tds_fdw/archive/v%{version}.tar.gz
URL: https://github.com/tds-fdw/tds_fdw
Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.2.tar.gz

Requires: postgresql93 >= 9.3.4
Requires: postgresql93-server >= 9.3.4
Requires: postgresql93-libs >= 9.3.4
Requires: freetds >= 0.91

BuildRequires: freetds-devel, postgresql93-devel
BuildRequires: automake, gcc-c++
BuildRequires: gcc
BuildRequires: freetds-devel
BuildRequires: make
BuildRequires: postgresql93-devel

%description
This is a PostgreSQL foreign data wrapper that can connect to databases that
Expand All @@ -25,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-1.0.8
%setup -q -n tds_fdw-2.0.0-alpha.2


%build
Expand All @@ -43,28 +45,31 @@ 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--1.0.8.sql
%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.control
%doc /usr/share/doc/%{name}-%{version}/README.md



%changelog

* Sat Nov 12 2016 Julio Gonzalez Gil <[email protected]> - 1.0.8
- 1.0.8 build from https://github.com/GeoffMontee/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

* Thu Jan 07 2016 Julio Gonzalez Gil <[email protected]> - 1.0.7
- 1.0.7 build from https://github.com/GeoffMontee/tds_fdw
* Sat Nov 12 2016 Julio Gonzalez Gil <[email protected]> - 1.0.8-1
- 1.0.8 build from https://github.com/tds-fdw/tds_fdw

* Sun Oct 25 2015 Julio Gonzalez Gil <[email protected]> - 1.0.6
- 1.0.6 build from https://github.com/GeoffMontee/tds_fdw
* Thu Jan 07 2016 Julio Gonzalez Gil <[email protected]> - 1.0.7-1
- 1.0.7 build from https://github.com/tds-fdw/tds_fdw

* Sun Sep 13 2015 Julio Gonzalez Gil <[email protected]> - 1.0.3
- 1.0.3 build from https://github.com/GeoffMontee/tds_fdw
* Sun Oct 25 2015 Julio Gonzalez Gil <[email protected]> - 1.0.6-1
- 1.0.6 build from https://github.com/tds-fdw/tds_fdw

* Sun Sep 13 2015 Julio Gonzalez Gil <[email protected]> - 1.0.2
- 1.0.2 build from https://github.com/GeoffMontee/tds_fdw
* Sun Sep 13 2015 Julio Gonzalez Gil <[email protected]> - 1.0.3-1
- 1.0.3 build from https://github.com/tds-fdw/tds_fdw

* Thu Aug 28 2014 Julio Gonzalez Gil <[email protected]> - 1.0.1
- Initial build of 1.0.1 from https://github.com/GeoffMontee/tds_fdw
* Sun Sep 13 2015 Julio Gonzalez Gil <[email protected]> - 1.0.2-1
- 1.0.2 build from https://github.com/tds-fdw/tds_fdw

* Thu Aug 28 2014 Julio Gonzalez Gil <[email protected]> - 1.0.1-1
- Initial build of 1.0.1 from https://github.com/tds-fdw/tds_fdw
45 changes: 25 additions & 20 deletions SPECS/tds_fdw-94.spec
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
Name: postgresql-94-tds_fdw
Version: 1.0.8
Release: 1%{?dist}
Version: 2.0.0
Release: alpha.2.1%{?dist}
Summary: TDS foreing data wrapper for PostgreSQL 9.4

License: None
URL: https://github.com/GeoffMontee/tds_fdw
Source: https://github.com/GeoffMontee/tds_fdw/archive/v%{version}.tar.gz
URL: https://github.com/tds-fdw/tds_fdw
Source: https://github.com/tds-fdw/tds_fdw/archive/v2.0.0-alpha.2.tar.gz

Requires: postgresql94 >= 9.4.1
Requires: postgresql94-server >= 9.4.1
Requires: postgresql94-libs >= 9.4.1
Requires: freetds >= 0.91

BuildRequires: freetds-devel, postgresql94-devel
BuildRequires: automake, gcc-c++
BuildRequires: gcc
BuildRequires: freetds-devel
BuildRequires: make
BuildRequires: postgresql94-devel

%description
This is a PostgreSQL foreign data wrapper that can connect to databases that
Expand All @@ -25,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-1.0.8
%setup -q -n tds_fdw-2.0.0-alpha.2


%build
Expand All @@ -43,28 +45,31 @@ 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--1.0.8.sql
%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.control
%doc /usr/share/doc/%{name}-%{version}/README.md



%changelog

* Sat Nov 12 2016 Julio Gonzalez Gil <[email protected]> - 1.0.8
- 1.0.8 build from https://github.com/GeoffMontee/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

* Thu Jan 07 2016 Julio Gonzalez Gil <[email protected]> - 1.0.7
- 1.0.7 build from https://github.com/GeoffMontee/tds_fdw
* Sat Nov 12 2016 Julio Gonzalez Gil <[email protected]> - 1.0.8-1
- 1.0.8 build from https://github.com/tds-fdw/tds_fdw

* Sun Oct 25 2015 Julio Gonzalez Gil <[email protected]> - 1.0.6
- 1.0.6 build from https://github.com/GeoffMontee/tds_fdw
* Thu Jan 07 2016 Julio Gonzalez Gil <[email protected]> - 1.0.7-1
- 1.0.7 build from https://github.com/tds-fdw/tds_fdw

* Sun Sep 13 2015 Julio Gonzalez Gil <[email protected]> - 1.0.3
- 1.0.3 build from https://github.com/GeoffMontee/tds_fdw
* Sun Oct 25 2015 Julio Gonzalez Gil <[email protected]> - 1.0.6-1
- 1.0.6 build from https://github.com/tds-fdw/tds_fdw

* Sun Sep 13 2015 Julio Gonzalez Gil <[email protected]> - 1.0.2
- 1.0.2 build from https://github.com/GeoffMontee/tds_fdw
* Sun Sep 13 2015 Julio Gonzalez Gil <[email protected]> - 1.0.3-1
- 1.0.3 build from https://github.com/tds-fdw/tds_fdw

* Thu Aug 28 2014 Julio Gonzalez Gil <[email protected]> - 1.0.1
- Initial build of 1.0.1 from https://github.com/GeoffMontee/tds_fdw
* Sun Sep 13 2015 Julio Gonzalez Gil <[email protected]> - 1.0.2-1
- 1.0.2 build from https://github.com/tds-fdw/tds_fdw

* Thu Aug 28 2014 Julio Gonzalez Gil <[email protected]> - 1.0.1-1
- Initial build of 1.0.1 from https://github.com/tds-fdw/tds_fdw
Loading

0 comments on commit 46ad7dc

Please sign in to comment.