From b996aed85f191483a0ddd570fe3322ac97de146d Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 9 Oct 2024 08:46:44 +0200 Subject: [PATCH] add psycopg-c --- comps/comps-pulpcore-el8.xml | 1 + comps/comps-pulpcore-el9.xml | 1 + package_manifest.yaml | 1 + .../python-psycopg-c/psycopg-c-3.1.18.tar.gz | 1 + .../python-psycopg-c/python-psycopg-c.spec | 63 +++++++++++++++++++ 5 files changed, 67 insertions(+) create mode 120000 packages/python-psycopg-c/psycopg-c-3.1.18.tar.gz create mode 100644 packages/python-psycopg-c/python-psycopg-c.spec diff --git a/comps/comps-pulpcore-el8.xml b/comps/comps-pulpcore-el8.xml index 16465f543..e57235c8a 100644 --- a/comps/comps-pulpcore-el8.xml +++ b/comps/comps-pulpcore-el8.xml @@ -204,6 +204,7 @@ python3.11-protobuf python3.11-ptyprocess python3.11-psycopg + python3.11-psycopg-c python3.11-productmd python3.11-prometheus-client python3.11-psycopg2 diff --git a/comps/comps-pulpcore-el9.xml b/comps/comps-pulpcore-el9.xml index 8db29f931..05c463fe5 100644 --- a/comps/comps-pulpcore-el9.xml +++ b/comps/comps-pulpcore-el9.xml @@ -211,6 +211,7 @@ python3.11-protobuf python3.11-proto-plus python3.11-psycopg + python3.11-psycopg-c python3.11-psycopg2 python3.11-ptyprocess python3.11-pulp-ansible diff --git a/package_manifest.yaml b/package_manifest.yaml index 074061510..b0d6b4458 100644 --- a/package_manifest.yaml +++ b/package_manifest.yaml @@ -274,6 +274,7 @@ tier4_packages: python-platformdirs: {} python-ptyprocess: {} python-psycopg: {} + python-psycopg-c: {} python-pyasn1: {} python-pyasn1-modules: {} python-pygobject: {} diff --git a/packages/python-psycopg-c/psycopg-c-3.1.18.tar.gz b/packages/python-psycopg-c/psycopg-c-3.1.18.tar.gz new file mode 120000 index 000000000..cb4fc1ce4 --- /dev/null +++ b/packages/python-psycopg-c/psycopg-c-3.1.18.tar.gz @@ -0,0 +1 @@ +../../.git/annex/objects/fV/7v/SHA256E-s561356--ffff0c4a9c0e0b7aadb1acb7b61eb8f886365dd8ef00120ce14676235846ba73.tar.gz/SHA256E-s561356--ffff0c4a9c0e0b7aadb1acb7b61eb8f886365dd8ef00120ce14676235846ba73.tar.gz \ No newline at end of file diff --git a/packages/python-psycopg-c/python-psycopg-c.spec b/packages/python-psycopg-c/python-psycopg-c.spec new file mode 100644 index 000000000..64b0f6820 --- /dev/null +++ b/packages/python-psycopg-c/python-psycopg-c.spec @@ -0,0 +1,63 @@ +%global python3_pkgversion 3.11 +%global __python3 /usr/bin/python3.11 + +# Created by pyp2rpm-3.3.3 +%global pypi_name psycopg-c + +Name: python-%{pypi_name} +Version: 3.2.3 +Release: 1%{?dist} +Summary: PostgreSQL database adapter for Python - C extension + +License: LGPL-3.0-only +URL: https://psycopg.org/psycopg3/ +Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-wheel >= 0.37 + +BuildRequires: python%{python3_pkgversion}-Cython +BuildRequires: gcc +BuildRequires: postgresql-devel + +%description +%{summary} + + +%package -n python%{python3_pkgversion}-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} + + +%description -n python%{python3_pkgversion}-%{pypi_name} +%{summary} + + +%prep +set -ex +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + + +%build +set -ex +%py3_build + + +%install +set -ex +%py3_install + + +%files -n python%{python3_pkgversion}-%{pypi_name} +%license LICENSE.txt +%doc README.rst +%{python3_sitearch}/psycopg_c +%{python3_sitearch}/psycopg_c-%{version}-py%{python3_version}.egg-info + + +%changelog +* Wed Oct 09 2024 Evgeni Golov - 3.2.3-1 +- Initial package.