public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ydiff] rawhide: spec modernization fixes rhbz#2378510
@ 2026-05-30 22:41 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-05-30 22:41 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-30 22:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-30 22:41 [rpms/ydiff] rawhide: spec modernization fixes rhbz#2378510 Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox