!1 init package with version 2.9.0
From: @desert-sailor Reviewed-by: @xiyuanwang Signed-off-by: @xiyuanwang
This commit is contained in:
commit
0c0c2e9923
BIN
psycopg2cffi-2.9.0.tar.gz
Normal file
BIN
psycopg2cffi-2.9.0.tar.gz
Normal file
Binary file not shown.
65
python-psycopg2cffi.spec
Normal file
65
python-psycopg2cffi.spec
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-psycopg2cffi
|
||||||
|
Version: 2.9.0
|
||||||
|
Release: 1
|
||||||
|
Summary: An implementation of the psycopg2 module using cffi.
|
||||||
|
License: LGPL-3.0-or-later
|
||||||
|
URL: http://github.com/chtd/psycopg2cffi
|
||||||
|
Source0: https://files.pythonhosted.org/packages/ac/d8/45bd0870d45964f6f92367fd383e8abb8f57815360654ef913c5417f0714/psycopg2cffi-2.9.0.tar.gz
|
||||||
|
|
||||||
|
%description
|
||||||
|
An implementation of the psycopg2 module using cffi.
|
||||||
|
|
||||||
|
%package -n python3-psycopg2cffi
|
||||||
|
Summary: An implementation of the psycopg2 module using cffi.
|
||||||
|
Provides: python-psycopg2cffi
|
||||||
|
# Base build requires
|
||||||
|
BuildRequires: libpq-devel
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-setuptools_scm
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-hatchling
|
||||||
|
# General requires
|
||||||
|
BuildRequires: python3-six
|
||||||
|
BuildRequires: python3-cffi
|
||||||
|
|
||||||
|
%description -n python3-psycopg2cffi
|
||||||
|
An implementation of the psycopg2 module using cffi.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: An implementation of the psycopg2 module using cffi.
|
||||||
|
Provides: python3-psycopg2cffi-doc
|
||||||
|
%description help
|
||||||
|
An implementation of the psycopg2 module using cffi.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n psycopg2cffi-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
|
|
||||||
|
%files -n python3-psycopg2cffi
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitearch}/psycopg2cffi
|
||||||
|
%{python3_sitearch}/psycopg2cffi*.dist-info/
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Jul 17 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.9.0-1
|
||||||
|
- Init package
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user