Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add psycopg_c #1359

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions comps/comps-pulpcore-el8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
<packagereq type="default">python3.11-protobuf</packagereq>
<packagereq type="default">python3.11-ptyprocess</packagereq>
<packagereq type="default">python3.11-psycopg</packagereq>
<packagereq type="default">python3.11-psycopg_c</packagereq>
Odilhao marked this conversation as resolved.
Show resolved Hide resolved
<packagereq type="default">python3.11-productmd</packagereq>
<packagereq type="default">python3.11-prometheus-client</packagereq>
<packagereq type="default">python3.11-psycopg2</packagereq>
Expand Down
1 change: 1 addition & 0 deletions comps/comps-pulpcore-el9.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
<packagereq type="default">python3.11-protobuf</packagereq>
<packagereq type="default">python3.11-proto-plus</packagereq>
<packagereq type="default">python3.11-psycopg</packagereq>
<packagereq type="default">python3.11-psycopg_c</packagereq>
<packagereq type="default">python3.11-psycopg2</packagereq>
<packagereq type="default">python3.11-ptyprocess</packagereq>
<packagereq type="default">python3.11-pulp-ansible</packagereq>
Expand Down
1 change: 1 addition & 0 deletions package_manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ tier4_packages:
python-platformdirs: {}
python-ptyprocess: {}
python-psycopg: {}
python-psycopg_c: {}
python-pyasn1: {}
python-pyasn1-modules: {}
python-pygobject: {}
Expand Down
1 change: 1 addition & 0 deletions packages/python-psycopg_c/psycopg_c-3.2.3.tar.gz
63 changes: 63 additions & 0 deletions packages/python-psycopg_c/python-psycopg_c.spec
Original file line number Diff line number Diff line change
@@ -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}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info


%changelog
* Wed Oct 09 2024 Evgeni Golov - 3.2.3-1
- Initial package.