diff --git a/pg8000-1.12.4.tar.gz b/pg8000-1.12.4.tar.gz deleted file mode 100644 index 1fc535636bbe91d03f39e83a010b0cb7467bfcbb..0000000000000000000000000000000000000000 Binary files a/pg8000-1.12.4.tar.gz and /dev/null differ diff --git a/pg8000-1.31.2.tar.gz b/pg8000-1.31.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..289d10524316e1f81278fc88881270cc0366877c Binary files /dev/null and b/pg8000-1.31.2.tar.gz differ diff --git a/python-pg8000.spec b/python-pg8000.spec index 78074c7baf95f1d8b94a0a9dc64758ca6be5b89f..078ff1f7cdc1785f8dc2b6b7f4ad63d71be89638 100644 --- a/python-pg8000.spec +++ b/python-pg8000.spec @@ -1,21 +1,23 @@ %global _empty_manifest_terminate_build 0 -Name: python-pg8000 -Version: 1.12.4 +%global srcname pg8000 + +Name: python-%{srcname} +Version: 1.31.2 Release: 1 -Summary: PostgreSQL interface library +Summary: Pure Python PostgreSQL Driver + License: BSD-3-Clause URL: https://github.com/tlocke/pg8000 -Source0: https://files.pythonhosted.org/packages/61/e2/3fe355285531c917e21665545ba24f2372dc8597ea3f455df2d7637dc629/pg8000-1.12.4.tar.gz +Source0: https://files.pythonhosted.org/packages/0f/d7/0554640cbe3e193184796bedb6de23f797c03958425176faf0e694c06eb0/pg8000-1.31.2.tar.gz BuildArch: noarch %description -pg8000 is a Pure-Python interface to the PostgreSQL database engine. +pg8000 is a pure-Python PostgreSQL driver that complies with DB-API 2.0. The driver communicates with the database using the PostgreSQL Backend and Frontend Protocol. -%package -n python3-pg8000 -Summary: PostgreSQL interface library -Provides: python-pg8000 +%package -n python%{python3_pkgversion}-%{srcname} +Summary: Pure Python3 PostgreSQL Driver +Provides: python3-%{srcname} # Base build requires BuildRequires: python3-devel -BuildRequires: python3-setuptools BuildRequires: python3-six BuildRequires: python3-pbr BuildRequires: python3-pip @@ -24,56 +26,31 @@ BuildRequires: python3-wheel pg8000 is a Pure-Python interface to the PostgreSQL database engine. %package help -Summary: PostgreSQL interface library -Provides: python3-pg8000-doc +Summary: Pure Python3 PostgreSQL Driver +Provides: python3-%{srcname}-doc + %description help -pg8000 is a Pure-Python interface to the PostgreSQL database engine. +pg8000 is a pure Python3 PostgreSQL driver that complies with DB-API 2.0. +The driver communicates with the database using the PostgreSQL Backend / +Frontend Protocol. + +%generate_buildrequires +%pyproject_buildrequires %prep -%autosetup -n pg8000-%{version} +%autosetup -n %{srcname}-%{version} %build -%py3_build +%pyproject_wheel %install -%py3_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 -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . - -%check -%{__python3} setup.py test - -%files -n python3-pg8000 -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst -%{_docdir}/* - +%pyproject_install +%pyproject_save_files %{srcname} %changelog +* Thu Oct 24 2024 caiyuxin - 1.31.2-1 +- Update to 1.31.2-1 +- include fixes from BZ#1825716 + * Mon Jul 18 2022 OpenStack_SIG - 1.12.4-1 - Init package python3-pg8000 of version 1.12.4