public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <filiperosset@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-psycopg2] rawhide: spec cleanup and modernization
Date: Sat, 13 Jun 2026 02:31:13 GMT	[thread overview]
Message-ID: <178131787371.1.3626891434064193749.rpms-python-psycopg2-e74aa70ff9a6@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-06-13  2:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178131787371.1.3626891434064193749.rpms-python-psycopg2-e74aa70ff9a6@fedoraproject.org \
    --to=filiperosset@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox