diff --git a/dtc.spec b/dtc.spec index ab9fdc9ecfdfa71aa57e33f062f6e1f69bdbc699..ee5debe55795dbc6adce3ba62f190779d44264ee 100644 --- a/dtc.spec +++ b/dtc.spec @@ -1,12 +1,13 @@ Name: dtc Version: 1.7.2 -Release: 2 +Release: 3 Summary: Device tree compiler License: GPL-2.0-or-later URL: https://devicetree.org/ Source0: https://www.kernel.org/pub/software/utils/%{name}/%{name}-%{version}.tar.xz Patch6001: backport-pylibfdt-libfdt.i-fix-backwards-compatibility-of-return-values.patch BuildRequires: gcc make flex bison swig +BuildRequires: meson >= 0.57.0 BuildRequires: pkgconfig(yaml-0.1) >= 0.2.3 BuildRequires: python3-devel python3-setuptools python3-setuptools_scm python3-pip python3-wheel Provides: libfdt = %{version}-%{release} @@ -46,19 +47,16 @@ This package provides python3 bindings for libfdt %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} - -%make_build +%meson -Dvalgrind=disabled +%meson_build %install -make install DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr \ - LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir} V=1 - -# we don't want ftdump and it conflicts with freetype-demos, so drop it (rhbz 797805) -rm -f %{buildroot}%{_bindir}/ftdump +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%meson_install %check export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} -%make_build +%meson_test %files %license GPL README.license @@ -69,6 +67,7 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %{_libdir}/libfdt.so %{_includedir}/* %{_libdir}/libfdt.a +%{_libdir}/pkgconfig/*.pc %files -n python3-libfdt %{python3_sitearch}/* @@ -77,6 +76,9 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %doc Documentation/manual.txt %changelog +* Thu Aug 28 2025 Funda Wang - 1.7.2-3 +- build with meson + * Mon Aug 25 2025 wangjiang - 1.7.2-2 - fix changelog