style: white-space changes

Version: 2.6.1-6
This commit is contained in:
Pavel Raiskup 2016-05-29 21:09:55 +02:00
parent 29ae04ad26
commit 509bf2c7a3

View File

@ -10,9 +10,9 @@ features offered by PostgreSQL.
%endif
%if 0%{?with_python3}
%global python_runtimes python python-debug python3 python3-debug
%global python_runtimes python python-debug python3 python3-debug
%else
%global python_runtimes python python-debug
%global python_runtimes python python-debug
%endif # with_python3
@ -77,6 +77,7 @@ Summary: %{sum} 3
%description -n python3-psycopg2
%{desc}
%package -n python3-psycopg2-debug
Summary: A PostgreSQL database adapter for Python 3 (debug build)
# Require base python 3 package, as we're sharing .py/.pyc files:
@ -87,6 +88,7 @@ This is a build of the psycopg PostgreSQL database adapter for the debug
build of Python 3.
%endif # with_python3
%package doc
Summary: Documentation for psycopg python PostgreSQL database adapter
Group: Documentation
@ -98,6 +100,7 @@ Provides: python3-%{srcname}-doc = %{version}-%{release}
Documentation and example files for the psycopg python PostgreSQL
database adapter.
%if %zope
%package zope
Summary: Zope Database Adapter ZPsycopgDA
@ -111,9 +114,11 @@ Requires: zope
Zope Database Adapter for PostgreSQL, called ZPsycopgDA
%endif
%prep
%setup -q -n psycopg2-%{version}
%build
for python in %{python_runtimes} ; do
$python setup.py build
@ -128,8 +133,8 @@ rm -f doc/html/.buildinfo
make -C doc/src html
%install
%install
DoInstall() {
PythonBinary=$1
@ -162,10 +167,12 @@ cp -pr ZPsycopgDA/* %{buildroot}%{ZPsycopgDAdir}
%{python2_sitearch}/psycopg2/*.pyo
%{python2_sitearch}/psycopg2-%{version}-py2*.egg-info
%files -n python2-%{srcname}-debug
%license LICENSE
%{python2_sitearch}/psycopg2/_psycopg_d.so
%if 0%{?with_python3}
%files -n python3-psycopg2
%license LICENSE
@ -177,6 +184,7 @@ cp -pr ZPsycopgDA/* %{buildroot}%{ZPsycopgDAdir}
%{python3_sitearch}/psycopg2/__pycache__/*.py{c,o}
%{python3_sitearch}/psycopg2-%{version}-py3*.egg-info
%files -n python3-psycopg2-debug
%license LICENSE
%{python3_sitearch}/psycopg2/_psycopg.cpython-3?dm*.so
@ -187,6 +195,7 @@ cp -pr ZPsycopgDA/* %{buildroot}%{ZPsycopgDAdir}
%license LICENSE
%doc doc examples/
%if %zope
%files zope
%license LICENSE
@ -198,6 +207,7 @@ cp -pr ZPsycopgDA/* %{buildroot}%{ZPsycopgDAdir}
%{ZPsycopgDAdir}/icons/*
%endif
%changelog
* Sun May 29 2016 Pavel Raiskup <praiskup@redhat.com> - 2.6.1-6
- provide python2-psycopg2 (rhbz#1306025)