|
|
@ -13,7 +13,7 @@
|
|
|
|
%bcond_with python2
|
|
|
|
%bcond_with python2
|
|
|
|
%bcond_without python3
|
|
|
|
%bcond_without python3
|
|
|
|
%bcond_with python2_debug
|
|
|
|
%bcond_with python2_debug
|
|
|
|
%bcond_without python3_debug
|
|
|
|
%bcond_with python3_debug
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%bcond_without python2
|
|
|
|
%bcond_without python2
|
|
|
|
%bcond_with python3
|
|
|
|
%bcond_with python3
|
|
|
@ -22,7 +22,7 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
|
|
%global srcname psycopg2
|
|
|
|
%global srcname psycopg2
|
|
|
|
%global sum A PostgreSQL database adapter for Python
|
|
|
|
%global sum A PostgreSQL database adapter for Python
|
|
|
@ -34,8 +34,8 @@ features offered by PostgreSQL.
|
|
|
|
%global python_runtimes \\\
|
|
|
|
%global python_runtimes \\\
|
|
|
|
%{?with_python2:python2} \\\
|
|
|
|
%{?with_python2:python2} \\\
|
|
|
|
%{?with_python2_debug:python2-debug} \\\
|
|
|
|
%{?with_python2_debug:python2-debug} \\\
|
|
|
|
%{?with_python3:python3} \\\
|
|
|
|
%{?with_python3:python%{python3_version}} \\\
|
|
|
|
%{?with_python3_debug:python3-debug}
|
|
|
|
%{?with_python3_debug:python%{python3_version}d}
|
|
|
|
|
|
|
|
|
|
|
|
%{!?with_python2:%{!?with_python3:%{error:one python version needed}}}
|
|
|
|
%{!?with_python2:%{!?with_python3:%{error:one python version needed}}}
|
|
|
|
|
|
|
|
|
|
|
@ -49,18 +49,23 @@ features offered by PostgreSQL.
|
|
|
|
|
|
|
|
|
|
|
|
Summary: %{sum}
|
|
|
|
Summary: %{sum}
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Version: 2.8.6
|
|
|
|
Version: 2.8.4
|
|
|
|
Release: 6%{?dist}
|
|
|
|
Release: 4%{?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
|
|
|
|
Url: http://initd.org/psycopg/
|
|
|
|
Url: http://initd.org/psycopg/
|
|
|
|
|
|
|
|
|
|
|
|
Source0: http://initd.org/psycopg/tarballs/PSYCOPG-2-8/psycopg2-%{version}.tar.gz
|
|
|
|
Source0: http://initd.org/psycopg/tarballs/PSYCOPG-2-8/psycopg2-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
|
|
|
|
|
|
# x86_64 compose of CRB, but we don't want to ship it at all.
|
|
|
|
|
|
|
|
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
|
|
|
|
|
|
|
ExcludeArch: i686
|
|
|
|
|
|
|
|
|
|
|
|
%{?with_python2:BuildRequires: python2-devel python2-setuptools}
|
|
|
|
%{?with_python2:BuildRequires: python2-devel python2-setuptools}
|
|
|
|
%{?with_python3:BuildRequires: python3-devel python3-setuptools}
|
|
|
|
%{?with_python3:BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools python%{python3_pkgversion}-rpm-macros}
|
|
|
|
%{?with_python2_debug:BuildRequires: python2-debug}
|
|
|
|
%{?with_python2_debug:BuildRequires: python2-debug}
|
|
|
|
%{?with_python3_debug:BuildRequires: python3-debug}
|
|
|
|
%{?with_python3_debug:BuildRequires: python%{python3_pkgversion}-debug}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: pkgconfig(libpq)
|
|
|
|
BuildRequires: pkgconfig(libpq)
|
|
|
@ -109,45 +114,40 @@ build of Python 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%if %{with python3}
|
|
|
|
%package -n python3-psycopg2
|
|
|
|
%package -n python%{python3_pkgversion}-psycopg2
|
|
|
|
Summary: %{sum} 3
|
|
|
|
Summary: %{sum} 3
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-psycopg2
|
|
|
|
%description -n python%{python3_pkgversion}-psycopg2
|
|
|
|
%{desc}
|
|
|
|
%{desc}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{srcname}-tests
|
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}-tests
|
|
|
|
Summary: A testsuite for %sum 2
|
|
|
|
Summary: A testsuite for %sum 2
|
|
|
|
Requires: python3-%srcname = %version-%release
|
|
|
|
Requires: python%{python3_pkgversion}-%srcname = %version-%release
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{srcname}-tests
|
|
|
|
%description -n python%{python3_pkgversion}-%{srcname}-tests
|
|
|
|
%desc
|
|
|
|
%desc
|
|
|
|
This sub-package delivers set of tests for the adapter.
|
|
|
|
This sub-package delivers set of tests for the adapter.
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3_debug}
|
|
|
|
%if %{with python3_debug}
|
|
|
|
%package -n python3-psycopg2-debug
|
|
|
|
%package -n python%{python3_pkgversion}-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:
|
|
|
|
Requires: python3-psycopg2 = %{version}-%{release}
|
|
|
|
Requires: python%{python3_pkgversion}-psycopg2 = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{srcname}-debug
|
|
|
|
%description -n python%{python3_pkgversion}-%{srcname}-debug
|
|
|
|
This is a build of the psycopg PostgreSQL database adapter for the debug
|
|
|
|
This is a build of the psycopg PostgreSQL database adapter for the debug
|
|
|
|
build of Python 3.
|
|
|
|
build of Python 3.
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%package -n python%{python3_pkgversion}-psycopg2-doc
|
|
|
|
Summary: Documentation for psycopg python PostgreSQL database adapter
|
|
|
|
Summary: Documentation for psycopg python PostgreSQL database adapter
|
|
|
|
%{?with_python2:Provides: python2-%{srcname}-doc = %{version}-%{release}}
|
|
|
|
|
|
|
|
%{?with_python3:Provides: python3-%{srcname}-doc = %{version}-%{release}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# For a smoother upgrade from RHEL 8
|
|
|
|
|
|
|
|
%{?with_python3:Obsoletes: python39-psycopg2-doc < %{version}-%{release}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
%description -n python%{python3_pkgversion}-psycopg2-doc
|
|
|
|
Documentation and example files for the psycopg python PostgreSQL
|
|
|
|
Documentation and example files for the psycopg python PostgreSQL
|
|
|
|
database adapter.
|
|
|
|
database adapter.
|
|
|
|
|
|
|
|
|
|
|
@ -223,7 +223,7 @@ done
|
|
|
|
%if %{with python3}
|
|
|
|
%if %{with python3}
|
|
|
|
cp -r tests/ %{buildroot}%{python3_sitearch}/%{srcname}/tests/
|
|
|
|
cp -r tests/ %{buildroot}%{python3_sitearch}/%{srcname}/tests/
|
|
|
|
for i in `find %{buildroot}%{python3_sitearch}/%{srcname}/tests/ -iname "*.py"`; do
|
|
|
|
for i in `find %{buildroot}%{python3_sitearch}/%{srcname}/tests/ -iname "*.py"`; do
|
|
|
|
sed -i 's|#!/usr/bin/env python|#!/usr/bin/python3|' $i
|
|
|
|
sed -i 's|#!/usr/bin/env python|#!%{__python3}|' $i
|
|
|
|
done
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
@ -260,30 +260,30 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%if %{with python3}
|
|
|
|
%files -n python3-psycopg2
|
|
|
|
%files -n python%{python3_pkgversion}-psycopg2
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS NEWS README.rst
|
|
|
|
%doc AUTHORS NEWS README.rst
|
|
|
|
%dir %{python3_sitearch}/psycopg2
|
|
|
|
%dir %{python3_sitearch}/psycopg2
|
|
|
|
%{python3_sitearch}/psycopg2/*.py
|
|
|
|
%{python3_sitearch}/psycopg2/*.py
|
|
|
|
%{python3_sitearch}/psycopg2/_psycopg.cpython-%{python3_version_nodots}[!d]*.so
|
|
|
|
%{python3_sitearch}/psycopg2/_psycopg.cpython-3?[!d]*.so
|
|
|
|
%dir %{python3_sitearch}/psycopg2/__pycache__
|
|
|
|
%dir %{python3_sitearch}/psycopg2/__pycache__
|
|
|
|
%{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-%{srcname}-tests
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}-tests
|
|
|
|
%{python3_sitearch}/psycopg2/tests
|
|
|
|
%{python3_sitearch}/psycopg2/tests
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3_debug}
|
|
|
|
%if %{with python3_debug}
|
|
|
|
%files -n python3-psycopg2-debug
|
|
|
|
%files -n python%{python3_pkgversion}-psycopg2-debug
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitearch}/psycopg2/_psycopg.cpython-%{python3_version_nodots}d*.so
|
|
|
|
%{python3_sitearch}/psycopg2/_psycopg.cpython-3?d*.so
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files -n python%{python3_pkgversion}-psycopg2-doc
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc doc
|
|
|
|
%doc doc
|
|
|
|
|
|
|
|
|
|
|
@ -301,39 +301,18 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Feb 08 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.8.6-6
|
|
|
|
* Fri May 24 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.8.4-4
|
|
|
|
- Add automatically generated Obsoletes tag with the python39- prefix
|
|
|
|
- Rebuilt for MSVSphere 8.10
|
|
|
|
for smoother upgrade from RHEL8
|
|
|
|
|
|
|
|
- Add manual Obsoletes for python39-psycopg2-doc
|
|
|
|
|
|
|
|
- Related: rhbz#1990421
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.8.6-5
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.8.6-4
|
|
|
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 08 2021 Pavel Raiskup <praiskup@redhat.com> - 2.8.6-3
|
|
|
|
|
|
|
|
- rebuild for libpq ABI fix rhbz#1908268
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.6-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 17 2020 Patrik Novotný <panovotn@redhat.com> - 2.8.6-1
|
|
|
|
|
|
|
|
- Rebase to upstream version 2.8.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.5-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 2.8.5-2
|
|
|
|
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 2.8.4-4
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
- Exclude unsupported i686 arch
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 21 2020 Patrik Novotný <panovotn@redhat.com> - 2.8.5-1
|
|
|
|
* Wed Dec 11 2019 Tomas Orsava <torsava@redhat.com> - 2.8.4-3
|
|
|
|
- Rebase to upstream version 2.8.5
|
|
|
|
- Fix shebang mangling
|
|
|
|
|
|
|
|
- Don't ship the debug module, it is not needed and was not shipped in RHEL8 either
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.4-2
|
|
|
|
* Thu Nov 21 2019 Lumír Balhar <lbalhar@redhat.com> - 2.8.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
- Adjusted for Python 3.8 module in RHEL 8
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 06 2019 Lumír Balhar <lbalhar@redhat.com> - 2.8.4-1
|
|
|
|
* Wed Nov 06 2019 Lumír Balhar <lbalhar@redhat.com> - 2.8.4-1
|
|
|
|
- New upstream version 2.8.4
|
|
|
|
- New upstream version 2.8.4
|
|
|
|