From 52ba3dfbb813fda88c9f86f607adfb43cce20ca5 Mon Sep 17 00:00:00 2001 From: Filipe Rosset Date: Sat, 30 May 2026 19:40:58 -0300 Subject: [PATCH 1/3] spec modernization fixes rhbz#2378510 --- ydiff.spec | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ydiff.spec b/ydiff.spec index e3e11df..424121f 100644 --- a/ydiff.spec +++ b/ydiff.spec @@ -5,8 +5,8 @@ Summary: View colored, incremental diff URL: https://github.com/ymattw/ydiff License: BSD-3-Clause Source0: https://github.com/ymattw/ydiff/archive/%{version}/%{name}-%{version}.tar.gz +BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel -BuildRequires: python3-setuptools BuildRequires: less BuildArch: noarch @@ -19,34 +19,35 @@ a version-controlled workspace or from stdin, in side-by-side (similar to %package -n python3-%{name} Summary: %{summary} -%{?python_provide:%python_provide python3-%{name}} %description -n python3-%{name} Python library that implements API used by ydiff tool. %prep %autosetup -n %{name}-%{version} /usr/bin/sed -i '/#!\/usr\/bin\/env python/d' ydiff.py +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %check tests/regression.sh +%pyproject_check_import + # upstream pipeline uses `make test` which also has coverage # and linters but we don't do those here %install -%py3_install +%pyproject_install +%pyproject_save_files %{name} %files %doc README.rst %license LICENSE %{_bindir}/ydiff -%files -n python3-%{name} -%{python3_sitelib}/__pycache__/* -%{python3_sitelib}/%{name}.py -%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info +%files -n python3-%{name} -f %{pyproject_files} %changelog %autochangelog From 60d61e1f6f0246c7b27b7889eddf8b1085628c21 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 3 Jun 2026 17:49:24 +0200 Subject: [PATCH 2/3] Rebuilt for Python 3.15 From 70d9b26d78042f33371b88ec587cb4d884ec916e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 09:33:59 +0000 Subject: [PATCH 3/3] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild