public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-psycopg2] rawhide: spec cleanup and modernization
@ 2026-06-13 2:31 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-13 2:31 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-psycopg2
Branch : rawhide
Commit : e74aa70ff9a6c87741028170d0e44c446b2caa0d
Author : Filipe Rosset <filiperosset@fedoraproject.org>
Date : 2026-06-12T23:10:30-03:00
Stats : +13/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-psycopg2/c/e74aa70ff9a6c87741028170d0e44c446b2caa0d?branch=rawhide
Log:
spec cleanup and modernization
Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>
---
diff --git a/python-psycopg2.spec b/python-psycopg2.spec
index 331d0de..693ed5c 100644
--- a/python-psycopg2.spec
+++ b/python-psycopg2.spec
@@ -11,7 +11,7 @@ features offered by PostgreSQL.
Summary: %{sum}
Name: python-%{srcname}
Version: 2.9.11
-Release: 2%{?dist}
+Release: 3%{?dist}
# The exceptions allow linking to OpenSSL and PostgreSQL's libpq
License: LGPL-3.0-or-later WITH openvpn-openssl-exception
Url: https://www.psycopg.org/
@@ -22,7 +22,7 @@ BuildRequires: python3-devel
BuildRequires: gcc
BuildRequires: libpq-devel
-BuildRequires: python-sphinx
+BuildRequires: python3-sphinx
# For testsuite
%if %{with tests}
@@ -31,7 +31,7 @@ BuildRequires: postgresql-test-rpm-macros
# Remove test 'test_from_tables' for s390 architecture
# from ./tests/test_types_extras.py
-Patch0: test_types_extras-2.9.3-test_from_tables.patch
+Patch: test_types_extras-2.9.3-test_from_tables.patch
%description
%{desc}
@@ -45,8 +45,8 @@ Summary: %{sum} 3
%package -n python3-%{srcname}-tests
-Summary: A testsuite for %sum 3
-Requires: python3-%srcname = %version-%release
+Summary: A testsuite for %{sum} 3
+Requires: python3-%{srcname}%{?_isa} = %{version}-%{release}
%description -n python3-%{srcname}-tests
%desc
@@ -55,7 +55,7 @@ This sub-package delivers set of tests for the adapter.
%package doc
Summary: Documentation for psycopg python PostgreSQL database adapter
-%py_provides python3-%{srcname}-doc
+BuildArch: noarch
%description doc
Documentation and example files for the psycopg python PostgreSQL
@@ -63,12 +63,12 @@ database adapter.
%prep
-%setup -q -n psycopg2-%{version}
+%autosetup -N -n psycopg2-%{version}
# The patch is applied only for s390 architecture as
# on other architectures the test works
%ifarch s390x s390
-%patch -P0 -p0
+%patch -P 0 -p0
%endif
@@ -98,6 +98,8 @@ make html -C doc/src
%check
+%pyproject_check_import
+
%if %{with tests}
export PGTESTS_LOCALE=C.UTF-8
%postgresql_tests_run
@@ -135,6 +137,9 @@ cp -r tests/ %{buildroot}%{python3_sitearch}/%{srcname}/tests/
%changelog
+* Sat Jun 13 2026 Filipe Rosset <filiperosset@fedoraproject.org> - 2.9.11-3
+- spec cleanup and modernization
+
* Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 2.9.11-2
- Rebuilt for Python 3.15
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-13 2:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-13 2:31 [rpms/python-psycopg2] rawhide: spec cleanup and modernization Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox