public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/dtc] f45: Restore Python packaging metadata for python3-libfdt
Date: Tue, 08 Sep 2026 10:42:53 GMT [thread overview]
Message-ID: <178886417313.1.17162619780735950414.rpms-dtc-c748a9081b2e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/dtc
Branch : f45
Commit : c748a9081b2efcb191affd89c82a07f7be6d15e7
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-09-08T12:34:20+02:00
Stats : +14/-7 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/dtc/c/c748a9081b2efcb191affd89c82a07f7be6d15e7?branch=f45
Log:
Restore Python packaging metadata for python3-libfdt
- Related: rhbz#2503859
Also, drop outdated Python 2 references.
---
diff --git a/dtc.spec b/dtc.spec
index 54c85e7..5c70e70 100644
--- a/dtc.spec
+++ b/dtc.spec
@@ -8,7 +8,7 @@
Name: dtc
Version: 1.8.1
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Device Tree Compiler
License: GPL-2.0-or-later
URL: https://devicetree.org/
@@ -65,11 +65,10 @@ This package provides the static library of libfdt
%package -n python3-libfdt
Summary: Python 3 bindings for device tree library
-%{?python_provide:%python_provide python2-libfdt}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n python3-libfdt
-This package provides python2 bindings for libfdt
+This package provides python3 bindings for libfdt
%if %{with_mingw}
%package -n mingw32-libfdt
@@ -110,10 +109,13 @@ This package provides the static library of mingw64-libfdt
%prep
%autosetup -p1
+%generate_buildrequires
+%pyproject_buildrequires --pyproject-dependencies
%build
-%meson -Dtools=true -Dpython=enabled
+%meson -Dtools=true -Dpython=disabled
%meson_build
+%pyproject_wheel
%if %{with_mingw}
%mingw_meson -Dtools=false -Dtests=false
@@ -123,6 +125,8 @@ This package provides the static library of mingw64-libfdt
%install
%meson_install
+%pyproject_install
+%pyproject_save_files libfdt _libfdt
%if %{with_mingw}
%mingw_ninja_install
@@ -132,6 +136,7 @@ This package provides the static library of mingw64-libfdt
%check
%meson_test
+%pyproject_check_import
%ldconfig_scriptlets -n libfdt
@@ -157,9 +162,7 @@ This package provides the static library of mingw64-libfdt
%{_libdir}/pkgconfig/libfdt.pc
%{_includedir}/*fdt*
-%files -n python3-libfdt
-%{python3_sitearch}/_libfdt%{python3_ext_suffix}
-%pycached %{python3_sitearch}/libfdt.py
+%files -n python3-libfdt -f %{pyproject_files}
%if %{with_mingw}
%files -n mingw32-libfdt
@@ -184,6 +187,10 @@ This package provides the static library of mingw64-libfdt
%endif
%changelog
+* Tue Sep 08 2026 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-6
+- Restore Python packaging metadata for python3-libfdt
+- Related: rhbz#2503859
+
* Mon Jul 27 2026 Jitka Plesnikova <jplesnik@redhat.com> - 1.8.1-5
- Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
reply other threads:[~2026-09-08 10:42 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=178886417313.1.17162619780735950414.rpms-dtc-c748a9081b2e@fedoraproject.org \
--to=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