public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pythoncapi-compat] rawhide: Update to commit 2682b1e
@ 2026-10-11 8:33 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-11 8:33 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/pythoncapi-compat
Branch : rawhide
Commit : dfa8277e6c42e36715c158f178a1008e1825b6aa
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-11T07:50:38+01:00
Stats : +29/-113 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/pythoncapi-compat/c/dfa8277e6c42e36715c158f178a1008e1825b6aa?branch=rawhide
Log:
Update to commit 2682b1e
- Breaking change: upstream dropped upgrade_pythoncapi.py, so we drop
and Obsolete the -tools subpackage and the -doc subpackage, merging
the documentation into the -devel subpackage
- Bump Epoch and switch from date-numbered to serial-numbered snapshot
versioning so we can update to a snapshot from the same day as the
previously packaged one
---
diff --git a/.gitignore b/.gitignore
index 99c1ac7..fa02a74 100644
--- a/.gitignore
+++ b/.gitignore
@@ -54,3 +54,4 @@
/pythoncapi-compat-cb1eadf2e58e845f7b0c80e498db1178bf5511f9.tar.gz
/pythoncapi-compat-ebbf075e3bd317e11a39215c50debd3f301590de.tar.gz
/pythoncapi-compat-f1fb61f9844e020dc748c5f430a38291e31f292d.tar.gz
+/pythoncapi-compat-2682b1e65b1a8c105e22791a5f60cf462872b10f.tar.gz
diff --git a/pythoncapi-compat.rpmlintrc b/pythoncapi-compat.rpmlintrc
index 3c24150..6431322 100644
--- a/pythoncapi-compat.rpmlintrc
+++ b/pythoncapi-compat.rpmlintrc
@@ -1,4 +1,2 @@
-# All documentation is in the -doc subpackage.
-addFilter(r' no-documentation$')
-# Spurious, probably due to the unusual binary name
-addFilter(" no-manual-page-for-binary upgrade_pythoncapi\.py")
+# Removed without replacement after upstream dropped upgrade_pythoncapi.py
+addFilter(" obsolete-not-provided pythoncapi-compat-tools$")
diff --git a/pythoncapi-compat.spec b/pythoncapi-compat.spec
index 649b06e..983ddc0 100644
--- a/pythoncapi-compat.spec
+++ b/pythoncapi-compat.spec
@@ -1,32 +1,30 @@
-%global commit f1fb61f9844e020dc748c5f430a38291e31f292d
-%global snapdate 20261010
+# Increment the serial number every time we update the commit hash.
+%global serial 1
+%global commit 2682b1e65b1a8c105e22791a5f60cf462872b10f
Name: pythoncapi-compat
Summary: Python C API compatibility
# Upstream has never versioned this project.
-Version: 0^%{snapdate}.%{sub %{commit} 1 7}
-Epoch: 1
+Version: 0^%{serial}.%{sub %{commit} 1 7}
+Epoch: 2
Release: %autorelease
License: 0BSD
URL: https://github.com/python/pythoncapi-compat
-Source0: %{url}/archive/%{commit}/pythoncapi-compat-%{commit}.tar.gz
-# Man page hand-written for Fedora in groff_man(7) format based on --help
-Source1: upgrade_pythoncapi.py.1
+Source: %{url}/archive/%{commit}/pythoncapi-compat-%{commit}.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
-# As a header-only library package (with an additional command-line tool
-# subpackage), the base package is arched so that it is compiled and tested on
-# all architectures; however, no compiled code is installed, and there are no
-# debugging symbols.
+# As a header-only library package, the base package is arched so that it is
+# compiled and tested on all architectures; however, no compiled code is
+# installed, and there are no debugging symbols.
%global debug_package %{nil}
%global common_description %{expand:
The pythoncapi-compat project can be used to write a C or C++ extension
supporting a wide range of Python versions with a single code base. It is made
-of the pythoncapi_compat.h header file and the upgrade_pythoncapi.py script.}
+of the pythoncapi_compat.h header file.}
%description %{common_description}
@@ -34,33 +32,24 @@ of the pythoncapi_compat.h header file and the upgrade_pythoncapi.py script.}
%package devel
Summary: %{summary}
+BuildArch: noarch
+
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_packaging_header_only_libraries
Provides: pythoncapi-compat-static = %{epoch}:%{version}-%{release}
-
-BuildArch: noarch
+# We dropped the separate -doc subpackage, but the docs are still here:
+Provides: pythoncapi-compat-doc = %{epoch}:%{version}-%{release}
+
+# Upstream removed the upgrade_pythoncapi.py script in commit
+# 2682b1e65b1a8c105e22791a5f60cf462872b10f, so we had to drop the -tools
+# subpackage that had contained it.
+Obsoletes: pythoncapi-compat-tools < 2:0^1.2682b1e-1
+# At the same time, we merged the documentation into the -devel package. With
+# only one binary package to document the reStructuredText files are not large
+# or numerous enough to justify keeping a separate -doc subpackage.
+Obsoletes: pythoncapi-compat-doc < 2:0^1.2682b1e-1
%description devel %{common_description}
-This package provides the compatibility header library pythoncapi_compat.h.
-
-
-%package tools
-Summary: %{summary}
-
-BuildArch: noarch
-
-%description tools %{common_description}
-
-This package provides the command-line tool upgrade_pythoncapi.py.
-
-
-%package doc
-Summary: Documentation for pythoncapi-compat
-
-BuildArch: noarch
-
-%description doc %{common_description}
-
%prep
%autosetup -n pythoncapi-compat-%{commit}
@@ -82,11 +71,6 @@ sed --regexp-extended --in-place "s/^([[:blank:]]*)(['\"]-Werror)/\1# \2/" \
%install
install -D --preserve-timestamps --mode=0644 \
--target='%{buildroot}%{_includedir}' pythoncapi_compat.h
-install -D --preserve-timestamps \
- --target='%{buildroot}%{_bindir}' upgrade_pythoncapi.py
-install -D --preserve-timestamps --mode=0644 \
- --target='%{buildroot}%{_mandir}/man1' '%{SOURCE1}'
-%py3_shebang_fix %{buildroot}%{_bindir}/upgrade_pythoncapi.py
%check
@@ -96,25 +80,11 @@ install -D --preserve-timestamps --mode=0644 \
%files devel
%license COPYING
-
-%{_includedir}/pythoncapi_compat.h
-
-
-%files tools
-%license COPYING
-
-%{_bindir}/upgrade_pythoncapi.py
-%{_mandir}/man1/upgrade_pythoncapi.py.1*
-
-
-%files doc
-%license COPYING
-
-# This primarily documents the script rather than the header.
%doc README.rst
-
%doc docs/*.rst
+%{_includedir}/pythoncapi_compat.h
+
%changelog
%autochangelog
diff --git a/sources b/sources
index 19dd1df..16c05dd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pythoncapi-compat-f1fb61f9844e020dc748c5f430a38291e31f292d.tar.gz) = b4b556722b0b154725f10aaa410b454866390c99e194b56ed8121461f5f181debf492e6ea5145018b4eaa4301e4362d2739663709e6db42df29cfe01e09b70e9
+SHA512 (pythoncapi-compat-2682b1e65b1a8c105e22791a5f60cf462872b10f.tar.gz) = eff038097c27a81adf3eb21fd7cd1fe6d5643bedd8e074ed74f646c636fd452972d18a9b269baf8d222b7bc758b9655fcfe7c4320cba34db4f0c8368efb63ff7
diff --git a/upgrade_pythoncapi.py.1 b/upgrade_pythoncapi.py.1
deleted file mode 100644
index 7e63454..0000000
--- a/upgrade_pythoncapi.py.1
+++ /dev/null
@@ -1,53 +0,0 @@
-.TH UPGRADE_PYTHONCAPI.PY "1" "January 2022" "" "User Commands"
-.SH NAME
-upgrade_pythoncapi.py
-\(en
-upgrade C extension modules to newer Python C API
-.SH SYNOPSIS
-.B upgrade_pythoncapi.py
-.RB [ \-h ]
-.RB [ \-o\ \fIOPERATIONS ]
-.RB [ \-q ]
-.RB [ \-c ]
-.RB [ \-B ]
-.RB [ \-C ]
-.RB [ \-d\ \fIPATH ]
-.RI [ file_or_directory \ ...]
-.SH OPTIONS
-.SS "POSITIONAL ARGUMENTS"
-.TP
-.I file_or_directory
-.SS "OPTIONAL ARGUMENTS"
-.TP
-.B \-h\fR, \fB\-\-help
-Show a help message and exit
-.TP
-.B \-o\ \fIOPERATIONS\fR, \fB\-\-legacy\ \fIOPERATIONS
-Space separated list of operation names to apply
-.TP
-.B \-q\fR, \fB\-\-quiet
-Quiet mode
-.TP
-.B \-c\fR, \fB\-\-to\-stdout
-Write output into
-.I stdout
-instead of modifying files in-place (imply quiet mode)
-.TP
-.B \-B\fR, \fB\-\-no\-backup
-Don\(cqt create
-.B .old
-backup files
-.TP
-.B \-C\fR, \fB\-\-no\-compat
-Don\(cqt add:
-.in +7n
-.EX
-.B #include\ "pythoncapi_compat.h"
-.EE
-.in
-.TP
-.B \-d\ \fIPATH\fR, \fB\-\-download\ \fIPATH
-Download latest
-.B pythoncapi_compat.h
-file to designated
-.I PATH
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-11 8:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-11 8:33 [rpms/pythoncapi-compat] rawhide: Update to commit 2682b1e Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox