public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ydiff] rawhide: spec modernization fixes rhbz#2378510
Date: Sat, 30 May 2026 22:41:17 GMT	[thread overview]
Message-ID: <178018087794.1.12983409818619913433.rpms-ydiff-52ba3dfbb813@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/ydiff
Branch : rawhide
Commit : 52ba3dfbb813fda88c9f86f607adfb43cce20ca5
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-05-30T19:40:58-03:00
Stats  : +9/-8 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/ydiff/c/52ba3dfbb813fda88c9f86f607adfb43cce20ca5?branch=rawhide

Log:
spec modernization fixes rhbz#2378510

---
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

                 reply	other threads:[~2026-05-30 22:41 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=178018087794.1.12983409818619913433.rpms-ydiff-52ba3dfbb813@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --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