Blame SPECS/dtc.spec

dac778
Name:           dtc
dac778
Version:        1.4.6
dac778
Release:        1%{?dist}
dac778
Summary:        Device Tree Compiler
dac778
Group:          Development/Tools
dac778
License:        GPLv2+
dac778
URL:            https://devicetree.org/
dac778
Source:         https://github.com/dgibson/dtc/archive/v%{version}.tar.gz
dac778
dac778
dac778
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
dac778
dac778
BuildRequires: gcc make
dac778
BuildRequires: flex, bison
dac778
dac778
%description
dac778
Devicetree is a data structure for describing hardware. Rather than hard coding
dac778
every detail of a device into an operating system, many aspects of the hardware
dac778
can be described in a data structure that is passed to the operating system at
dac778
boot time. The devicetree is used by OpenFirmware, OpenPOWER Abstraction Layer
dac778
(OPAL), Power Architecture Platform Requirements (PAPR) and in the standalone
dac778
Flattened Device Tree (FDT) form.
dac778
dac778
%package -n libfdt
dac778
Summary: Device tree library
dac778
Group: Development/Libraries
dac778
dac778
%description -n libfdt
dac778
libfdt is a library to process Open Firmware style device trees on various
dac778
architectures.
dac778
dac778
%package -n libfdt-devel
dac778
Summary: Development headers for device tree library
dac778
Group: Development/Libraries
dac778
Requires: libfdt = %{version}-%{release}
dac778
dac778
%description -n libfdt-devel
dac778
This package provides development files for libfdt
dac778
dac778
%prep
dac778
%setup -q -n dtc-%{version}
dac778
dac778
dac778
%build
dac778
make %{?_smp_mflags} V=1 CC="gcc $RPM_OPT_FLAGS $RPM_LD_FLAGS" NO_PYTHON=1
dac778
dac778
%install
dac778
make install DESTDIR=$RPM_BUILD_ROOT SETUP_PREFIX=$RPM_BUILD_ROOT/usr PREFIX=/usr LIBDIR=%{_libdir} NO_PYTHON=1
dac778
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.a
dac778
dac778
# we don't want or need ftdump, so drop
dac778
rm -f $RPM_BUILD_ROOT/%{_bindir}/ftdump
dac778
dac778
%post -n libfdt -p /sbin/ldconfig
dac778
dac778
%postun -n libfdt -p /sbin/ldconfig
dac778
dac778
%clean
dac778
rm -rf $RPM_BUILD_ROOT
dac778
dac778
%files
dac778
%defattr(-,root,root,-)
dac778
%license GPL
dac778
%doc Documentation/manual.txt
dac778
%{_bindir}/*
dac778
dac778
%files -n libfdt
dac778
%defattr(-,root,root,-)
dac778
%license GPL
dac778
%{_libdir}/libfdt-%{version}.so
dac778
%{_libdir}/libfdt.so.*
dac778
dac778
%files -n libfdt-devel
dac778
%defattr(-,root,root,-)
dac778
%{_libdir}/libfdt.so
dac778
%{_includedir}/*
dac778
dac778
%changelog
dac778
* Thu Aug 09 2018 Miroslav Rezanina <mrezanin@redhat.com> - 1.4.6-1
dac778
- Updated for RHEL 8 [bz#1518440]
dac778
- Resolves: bz#1518440
dac778
  (Prepare dtc for RHEL-8.0 )
dac778
dac778
* Mon Mar 06 2017 Miroslav Rezanina <mrezanin@redhat.com> - 1.4.3-1
dac778
- Rebase to 1.4.3 [bz#1427157]
dac778
- Resolves: bz#1427157
dac778
  (package libfdt 1.4.3, when available)
dac778
dac778
* Tue Aug 19 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.4.0-2
dac778
- Update power macro for ppc64le
dac778
dac778
* Fri Jul 25 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.4.0-1
dac778
- Initial version