public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dtc] f45: Restore Python packaging metadata for python3-libfdt
@ 2026-09-08 10:42
0 siblings, 0 replies; only message in thread
From: @ 2026-09-08 10:42 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-08 10:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-08 10:42 [rpms/dtc] f45: Restore Python packaging metadata for python3-libfdt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox