Blob Blame History Raw
%global pypi pg8000

Name:           python-%{pypi}
Version:        1.11.0
Release:        3%{?dist}
Summary:        Pure Python PostgreSQL Driver
License:        BSD
URL:            http://pythonhosted.org/pg8000/
Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi}/%{pypi}-%{version}.tar.gz

BuildArch:      noarch

%description
pg8000 is a pure-Python PostgreSQL driver that complies with DB-API 2.0. 
The driver communicates with the database using the PostgreSQL Backend / 
Frontend Protocol.

%package -n python2-%{pypi}
Summary:        Pure Python2 PostgreSQL Driver
BuildRequires:  python2-devel
BuildRequires:  python2-six
BuildRequires:  python2-setuptools
Requires:       python2-six
%{?fedora:Suggests:       python2-sqlalchemy}
%{?fedora:Suggests:       postgresql}
%{?python_provide:%python_provide python2-%{pypi}}

%description -n python2-%{pypi}
pg8000 is a pure Python2 PostgreSQL driver that complies with DB-API 2.0. 
The driver communicates with the database using the PostgreSQL Backend / 
Frontend Protocol.

%package -n python%{python3_pkgversion}-%{pypi}
Summary:        Pure Python3 PostgreSQL Driver
BuildRequires:  python%{python3_pkgversion}-devel
BuildRequires:  python%{python3_pkgversion}-six
BuildRequires:  python%{python3_pkgversion}-setuptools
Requires:       python%{python3_pkgversion}-six
%{?fedora:Suggests:       python3-sqlalchemy}
%{?fedora:Suggests:       postgresql}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi}}

%description -n python%{python3_pkgversion}-%{pypi}
pg8000 is a pure Python3 PostgreSQL driver that complies with DB-API 2.0. 
The driver communicates with the database using the PostgreSQL Backend / 
Frontend Protocol.

%prep
%autosetup -n %{pypi}-%{version}

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

%check
#Test requires a runing PostgreSQL instance

%files -n python2-%{pypi}
%license LICENSE
%{python2_sitelib}/*

%files -n python%{python3_pkgversion}-%{pypi}
%license LICENSE
%{python3_sitelib}/*

%changelog
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.11.0-3
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Sat Sep 30 2017 williamjmorenor@gmail.com - 1.11.0-1
- Update to v1.11.0 release
  Note that this version is not backward compatible with previous versions.
  https://github.com/mfenniak/pg8000#version-1-11-0-2017-08-16
- Drop docs subpackage removed from upstream

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.10.6-3
- Rebuild for Python 3.6

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.5-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Fri Mar 11 2016 William Moreno <williamjmorenor@gmail.com> - 1.10.5-1
- Update to 1.10.5
- Remove patch included in upstream release
- Build docs in Fedora builds
- Update Source0 link

* Wed Mar 02 2016 William Moreno <williamjmorenor@gmail.com> - 1.10.4-1
- Epel7 packaging of version 1.10.4

* Tue Mar 01 2016 William Moreno <williamjmorenor@gmail.com> - 1.10.4-1
- Update to 1.10.4
- Remove patch1 included in upstream release
- Change source name
- Remove doc subpackage, upstream remove source in this release
- Patch licence text not include in the release

* Mon Feb 08 2016 William Moreno <williamjmorenor at gmail.com> - 1.10.3-2
- Remove bundled six library.

* Wed Feb 03 2016 William Moreno <williamjmorenor at gmail.com> - 1.10.3-1
- Initial Packaging