%{?mingw_package_header} %global pkgname dtc Name: mingw-%{pkgname} Version: 1.6.1 Release: 1%{?dist} Summary: MinGW Device Tree Compiler library License: GPLv2+ URL: https://devicetree.org/ Source0: https://www.kernel.org/pub/software/utils/%{pkgname}/%{pkgname}-%{version}.tar.xz Patch0001: 0001-fdtdump-fix-Werror-int-to-pointer-cast.patch BuildArch: noarch BuildRequires: meson BuildRequires: flex bison BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc-c++ BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc-c++ %description Devicetree is a data structure for describing hardware. Rather than hard coding every detail of a device into an operating system, many aspects of the hardware can be described in a data structure that is passed to the operating system at boot time. The devicetree is used by OpenFirmware, OpenPOWER Abstraction Layer (OPAL), Power Architecture Platform Requirements (PAPR) and in the standalone Flattened Device Tree (FDT) form. %package -n mingw32-libfdt Summary: MinGW Device tree library %description -n mingw32-libfdt libfdt is a library to process Open Firmware style device trees on various architectures. %package -n mingw64-libfdt Summary: MinGW Device tree library %description -n mingw64-libfdt libfdt is a library to process Open Firmware style device trees on various architectures. %{?mingw_debug_package} %prep %autosetup -p1 -n %{pkgname}-%{version} %build %mingw_meson -Dtools=false %mingw_ninja %install %mingw_ninja_install %files -n mingw32-libfdt %license GPL %{mingw32_bindir}/libfdt-1.dll %{mingw32_includedir}/*fdt*.h %{mingw32_libdir}/libfdt.dll.a %{mingw32_libdir}/pkgconfig/libfdt.pc %files -n mingw64-libfdt %license GPL %{mingw64_bindir}/libfdt-1.dll %{mingw64_includedir}/*fdt*.h %{mingw64_libdir}/libfdt.dll.a %{mingw64_libdir}/pkgconfig/libfdt.pc %changelog * Wed Aug 25 2021 Marc-André Lureau - 1.6.1-1 - Initial package. rhbz#1997511