diff --git a/dtc.spec b/dtc.spec index 28f7ef949be63df89e39fac6dc949612a4e2be82..c622d6e5b0ac583db7aa71ac1379642251fb7ba3 100644 --- a/dtc.spec +++ b/dtc.spec @@ -1,14 +1,13 @@ -%define _wrong_version_format_terminate_build 0 - Name: dtc Version: 1.7.0 -Release: 4 +Release: 5 Summary: Device tree compiler License: GPLv2+ URL: https://devicetree.org/ Source0: https://www.kernel.org/pub/software/utils/%{name}/%{name}-%{version}.tar.xz BuildRequires: gcc make flex bison swig +BuildRequires: meson BuildRequires: python3-devel python3-setuptools python3-setuptools_scm python3-pip python3-wheel Provides: libfdt Obsoletes: libfdt @@ -55,28 +54,17 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %if "%toolchain" == "clang" CFLAGS="$CFLAGS -Wno-error=cast-qual -Wno-error=missing-prototypes -Wno-error=unused-command-line-argument" %endif -%make_build +%meson -Dvalgrind=disabled -Dyaml=disabled +%meson_build %install export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} -%if "%toolchain" == "clang" - CFLAGS="$CFLAGS -Wno-error=cast-qual -Wno-error=missing-prototypes -Wno-error=unused-command-line-argument" -%endif -make install DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr \ - LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir} V=1 +%meson_install %check export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} -%make_build check - -%pre - -%preun - -%post - -%postun +%meson_test %files %license GPL README.license @@ -88,6 +76,7 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %{_libdir}/libfdt.so %{_includedir}/* %{_libdir}/libfdt.a +%{_libdir}/pkgconfig/*.pc %files -n python3-libfdt %{python3_sitearch}/* @@ -96,6 +85,9 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %doc Documentation/manual.txt %changelog +* Thu Aug 28 2025 Funda Wang - 1.7.0-5 +- build with meson + * Mon Aug 25 2025 wangjiang - 1.7.0-4 - fix changelog