blob: 8f247ef63bd07085bac8c6abd92f5ebbdff1450e [file] [log] [blame]
Name: dtc
Version: %%VERSION%%
Release: %%RELEASE%%%{?dist}%%ZRELEASE%%%%LOCALVERSION%%
Summary: Device Tree Compiler
Group: Development/Tools
License: GPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: flex, bison
ExclusiveArch: %{power64} aarch64
The Device Tree Compiler generates flattened Open Firmware style device trees
for use with PowerPC machines that lack an Open Firmware implementation
%package -n libfdt
Summary: Device tree library
Group: Development/Libraries
%description -n libfdt
libfdt is a library to process Open Firmware style device trees on various
%package -n libfdt-devel
Summary: Development headers for device tree library
Group: Development/Libraries
Requires: libfdt = %{version}-%{release}
%description -n libfdt-devel
This package provides development files for libfdt
%setup -q -n dtc-%{version}
make %{?_smp_mflags}
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr LIBDIR=%{_libdir}
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.a
# we don't want or need ftdump, so drop
rm -f $RPM_BUILD_ROOT/%{_bindir}/ftdump
%doc GPL
%files -n libfdt
%doc GPL
%files -n libfdt-devel
%post -n libfdt -p /sbin/ldconfig
%postun -n libfdt -p /sbin/ldconfig
* Mon Mar 06 2017 Miroslav Rezanina <> - 1.4.3-1
- Rebase to 1.4.3 [bz#1427157]
- Resolves: bz#1427157
(package libfdt 1.4.3, when available)
* Tue Aug 19 2014 Miroslav Rezanina <> - 1.4.0-2
- Update power macro for ppc64le
* Fri Jul 25 2014 Miroslav Rezanina <> - 1.4.0-1
- Initial version