Skip to content

Commit

Permalink
add psycopg-c
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 9, 2024
1 parent 3892e02 commit b996aed
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
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>
<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.1.18.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}/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.

0 comments on commit b996aed

Please sign in to comment.