public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-dtoc] rawhide: drop manual deps handled by python macros
@ 2026-11-13 16:37 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-13 16:37 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-dtoc
Branch : rawhide
Commit : 0edf1898385eb4dd10b6c91d2310d4a5549d94a5
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-11-13T13:37:03-03:00
Stats : +5/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-dtoc/c/0edf1898385eb4dd10b6c91d2310d4a5549d94a5?branch=rawhide
Log:
drop manual deps handled by python macros
---
diff --git a/python-dtoc.spec b/python-dtoc.spec
index 336107a..84034fc 100644
--- a/python-dtoc.spec
+++ b/python-dtoc.spec
@@ -9,8 +9,6 @@ Source: %{pypi_source dtoc}
BuildArch: noarch
BuildRequires: python3-devel
-BuildRequires: python3-libfdt
-BuildRequires: python3-u-boot-pylib
BuildRequires: sed
%global _description %{expand:
@@ -23,16 +21,17 @@ modification of the devicetree files.}
%package -n python3-dtoc
Summary: %{summary}
-Requires: python3-libfdt
-Requires: python3-u-boot-pylib
%description -n python3-dtoc %_description
%prep
%autosetup -p1 -n dtoc-%{version}
-# Remove dependencies handled by BuildRequires/Requires
-sed -i -e '/"pylibfdt/d' -e '/"u-boot-pylib/d' pyproject.toml
+# Rename PEP 508 dep name to match the Fedora-provided virtual name
+sed -i 's/"pylibfdt >= 1.7"/"libfdt >= 1.7"/' pyproject.toml
+
+# Drop test assets not needed at runtime
+rm -rf dtoc/test
# Remove unnecessary shebangs
sed -i dtoc/*.py \
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 16:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 16:37 [rpms/python-dtoc] rawhide: drop manual deps handled by python macros Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox