rebase: latest upstream release
Per release notes: http://initd.org/psycopg/articles/2017/03/01/psycopg-27-released/ Version: 2.7-1
This commit is contained in:
parent
959a2610ba
commit
32e83c7ac1
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
/psycopg2-2.6.2.tar.gz
|
/psycopg2-2.7.tar.gz
|
||||||
|
@ -26,14 +26,14 @@ features offered by PostgreSQL.
|
|||||||
|
|
||||||
Summary: %{sum}
|
Summary: %{sum}
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 2.6.2
|
Version: 2.7
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
# The exceptions allow linking to OpenSSL and PostgreSQL's libpq
|
# The exceptions allow linking to OpenSSL and PostgreSQL's libpq
|
||||||
License: LGPLv3+ with exceptions
|
License: LGPLv3+ with exceptions
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
Url: http://www.psycopg.org/psycopg/
|
Url: http://www.psycopg.org/psycopg/
|
||||||
|
|
||||||
Source0: http://www.psycopg.org/psycopg/tarballs/PSYCOPG-2-6/psycopg2-%{version}.tar.gz
|
Source0: http://www.psycopg.org/psycopg/tarballs/PSYCOPG-2-7/psycopg2-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: postgresql-devel
|
BuildRequires: postgresql-devel
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
@ -57,6 +57,12 @@ Summary: %{sum} 2
|
|||||||
%description -n python2-%{srcname}
|
%description -n python2-%{srcname}
|
||||||
%{desc}
|
%{desc}
|
||||||
|
|
||||||
|
%package -n python2-%{srcname}-tests
|
||||||
|
Summary: A testsuite for %sum 2
|
||||||
|
|
||||||
|
%description -n python2-%{srcname}-tests
|
||||||
|
%desc
|
||||||
|
This sub-package delivers set of tests for the adapter.
|
||||||
|
|
||||||
%package -n python2-%{srcname}-debug
|
%package -n python2-%{srcname}-debug
|
||||||
Summary: A PostgreSQL database adapter for Python 2 (debug build)
|
Summary: A PostgreSQL database adapter for Python 2 (debug build)
|
||||||
@ -78,6 +84,14 @@ Summary: %{sum} 3
|
|||||||
%{desc}
|
%{desc}
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python3-%{srcname}-tests
|
||||||
|
Summary: A testsuite for %sum 2
|
||||||
|
|
||||||
|
%description -n python3-%{srcname}-tests
|
||||||
|
%desc
|
||||||
|
This sub-package delivers set of tests for the adapter.
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-psycopg2-debug
|
%package -n python3-psycopg2-debug
|
||||||
Summary: A PostgreSQL database adapter for Python 3 (debug build)
|
Summary: A PostgreSQL database adapter for Python 3 (debug build)
|
||||||
# Require base python 3 package, as we're sharing .py/.pyc files:
|
# Require base python 3 package, as we're sharing .py/.pyc files:
|
||||||
@ -134,21 +148,25 @@ rm -f doc/html/.buildinfo
|
|||||||
make -C doc/src html
|
make -C doc/src html
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
export PGTESTS_LOCALE=C.UTF-8
|
||||||
|
%pgtests_init
|
||||||
|
%pgtests_start
|
||||||
|
|
||||||
|
export PSYCOPG2_TESTDB=${PGTESTS_DATABASES##*:}
|
||||||
|
export PSYCOPG2_TESTDB_HOST=$PGHOST
|
||||||
|
export PSYCOPG2_TESTDB_PORT=$PGPORT
|
||||||
|
# export PSYCOPG2_TESTDB_USER
|
||||||
|
# export PSYCOPG2_TESTDB_PASSWORD
|
||||||
|
|
||||||
|
cmd="from psycopg2 import tests; tests.unittest.main(defaultTest='tests.test_suite')"
|
||||||
|
PYTHONPATH=%buildroot%python2_sitearch %__python2 -c "$cmd" --verbose || :
|
||||||
|
PYTHONPATH=%buildroot%python3_sitearch %__python3 -c "$cmd" --verbose || :
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
DoInstall() {
|
|
||||||
PythonBinary=$1
|
|
||||||
|
|
||||||
Python_SiteArch=$($PythonBinary -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}$Python_SiteArch/psycopg2
|
|
||||||
$PythonBinary setup.py install --no-compile --root %{buildroot}
|
|
||||||
|
|
||||||
# We're not currently interested in packaging the test suite.
|
|
||||||
rm -rf %{buildroot}$Python_SiteArch/psycopg2/tests
|
|
||||||
}
|
|
||||||
|
|
||||||
for python in %{python_runtimes} ; do
|
for python in %{python_runtimes} ; do
|
||||||
DoInstall $python
|
$python setup.py install --no-compile --root %{buildroot}
|
||||||
done
|
done
|
||||||
|
|
||||||
%if %zope
|
%if %zope
|
||||||
@ -167,6 +185,8 @@ cp -pr ZPsycopgDA/* %{buildroot}%{ZPsycopgDAdir}
|
|||||||
%{python2_sitearch}/psycopg2/*.pyo
|
%{python2_sitearch}/psycopg2/*.pyo
|
||||||
%{python2_sitearch}/psycopg2-%{version}-py2*.egg-info
|
%{python2_sitearch}/psycopg2-%{version}-py2*.egg-info
|
||||||
|
|
||||||
|
%files -n python2-%{srcname}-tests
|
||||||
|
%{python2_sitearch}/psycopg2/tests
|
||||||
|
|
||||||
%files -n python2-%{srcname}-debug
|
%files -n python2-%{srcname}-debug
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -185,6 +205,9 @@ cp -pr ZPsycopgDA/* %{buildroot}%{ZPsycopgDAdir}
|
|||||||
%{python3_sitearch}/psycopg2-%{version}-py3*.egg-info
|
%{python3_sitearch}/psycopg2-%{version}-py3*.egg-info
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python3-%{srcname}-tests
|
||||||
|
%{python3_sitearch}/psycopg2/tests
|
||||||
|
|
||||||
%files -n python3-psycopg2-debug
|
%files -n python3-psycopg2-debug
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitearch}/psycopg2/_psycopg.cpython-3?dm*.so
|
%{python3_sitearch}/psycopg2/_psycopg.cpython-3?dm*.so
|
||||||
@ -209,6 +232,11 @@ cp -pr ZPsycopgDA/* %{buildroot}%{ZPsycopgDAdir}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 02 2017 Pavel Raiskup <praiskup@redhat.com> - 2.7-1
|
||||||
|
- rebase to latest upstream release, per release notes:
|
||||||
|
http://initd.org/psycopg/articles/2017/03/01/psycopg-27-released/
|
||||||
|
- enable testsuite during build, and package it
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-4
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user