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