diff --git a/psycopg2cffi-2.9.0.tar.gz b/psycopg2cffi-2.9.0.tar.gz new file mode 100644 index 0000000..2d00f39 Binary files /dev/null and b/psycopg2cffi-2.9.0.tar.gz differ diff --git a/python-psycopg2cffi.spec b/python-psycopg2cffi.spec new file mode 100644 index 0000000..6503295 --- /dev/null +++ b/python-psycopg2cffi.spec @@ -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 - 2.9.0-1 +- Init package +