%global srcname ezpi Name: python-%{srcname} Version: 0.8.0 Release: 3%{?dist} Summary: Simple library to read and write public-inbox repos License: MIT-0 URL: https://git.kernel.org/pub/scm/utils/ezpi/ezpi.git Source0: https://www.kernel.org/pub/software/devel/%{srcname}/%{srcname}-%{version}.tar.xz Source1: https://www.kernel.org/pub/software/devel/%{srcname}/%{srcname}-%{version}.tar.sign # Minimal export of Konstantin's key; releases are signed by its ed25519 # subkey 76BE5DB25271E1481E678C35B6C41CE35664996C Source2: gpgkey-DE0E66E32F1FDD0902666B96E63EDCA9329DD07E.asc BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: gnupg2 BuildRequires: xz # For %check: the tests drive real git repos through the subprocess backend BuildRequires: git-core BuildRequires: python3-pytest %generate_buildrequires %pyproject_buildrequires %global _description %{expand: This is a small library for reading and writing public-inbox v2 repositories. Note, that this is not a suitable replacement for public-inbox in itself -- the goal is merely to provide a way to produce and consume public-inbox repositories that can be cloned, indexed and served from an actual public-inbox server running elsewhere.} %description %_description %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel, python3-setuptools # Without pygit2, all repository access goes through the git binary Requires: git-core %description -n python3-%{srcname} %_description %prep # kernel.org signs the uncompressed tarball, so verify that, not the .xz xz -dc %{SOURCE0} > %{_builddir}/%{srcname}-%{version}.tar %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{_builddir}/%{srcname}-%{version}.tar' rm -f %{_builddir}/%{srcname}-%{version}.tar %autosetup -n %{srcname}-%{version} sed -i -e 's/"MIT-0"/{ text = "MIT-0" }/g' pyproject.toml %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %pytest %files -n python3-%{srcname} -f %{pyproject_files} %license COPYING %doc README %{_bindir}/* %changelog * Fri Nov 06 2026 Konstantin Ryabitsev - 0.8.0-3 - Verify the release tarball signature in %%prep * Fri Nov 06 2026 Konstantin Ryabitsev - 0.8.0-2 - Use the official kernel.org release tarball and project URL * Fri Nov 06 2026 Konstantin Ryabitsev - 0.8.0-1 - Update to 0.8.0 - Require git-core, which ezpi needs at runtime - Run the upstream test suite in %%check * Fri May 15 2026 Konstantin Ryabitsev - 0.6-1 - Update to 0.6 * Mon Dec 22 2025 Konstantin Ryabitsev - 0.5.1-1 - Update to 0.5.1 * Wed Jul 24 2024 Konstantin Ryabitsev - 0.4.0-1 - Update to 0.4.0 * Mon Oct 26 2020 Konstantin Ryabitsev - 0.3.0-1 - Update to 0.3.0 * Thu Oct 22 2020 Konstantin Ryabitsev - 0.2.2-1 - Initial RPM packaging.