SHA256
1
0
forked from pool/dtc
dtc/dtc.spec
Dirk Mueller 33a3223398 Accepting request 478805 from home:pluskalm:branches:Base:System
- Update to version 1.4.4:
  * fdtput: Remove star from value_len documentation
  * fdtget: Use @return to document the return value
  * tests: Make realloc_fdt() really allocate *fdt
  * libfdt: overlay: Check the value of the right variable
  * dtc: Simplify asm_emit_string() implementation
  * libfdt: Change names of sparse helper macros
  * Fix assorted sparse warnings
  * Clean up gcc attributes
  * dtc: Don't abuse struct fdt_reserve_entry
- Refresh patches
- Make building more verbose
- Run tests

OBS-URL: https://build.opensuse.org/request/show/478805
OBS-URL: https://build.opensuse.org/package/show/Base:System/dtc?expand=0&rev=30
2017-03-16 08:38:03 +00:00

103 lines
3.0 KiB
RPMSpec

#
# spec file for package dtc
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define sover 1
Name: dtc
Version: 1.4.4
Release: 0
Summary: Device-tree compiler
License: GPL-2.0+
Group: Development/Tools/Building
Url: https://github.com/dgibson/dtc
Source0: https://github.com/dgibson/dtc/archive/v%{version}.tar.gz#/dtc-%{version}.tar.gz
Source1: baselibs.conf
Patch3: dtc-license.patch
Patch4: use-tx-as-the-type-specifier-instead-of-zx.patch
BuildRequires: bison
BuildRequires: flex
%description
PowerPC kernels are moving towards requiring a small Open
Firmware-style device tree as the only means of passing information
from bootloaders/firmware to the kernel. This does not require a full
Open Firmware implementation. DTC (Device Tree Compiler) is a tool to
create a static device tree, which is adequate for most embedded
systems (since their topology will not vary across reboots). DTC is
available via a git tree: git://ozlabs.org/srv/projects/dtc/dtc.git
%package -n libfdt%{sover}
Summary: Device tree library
Group: Development/Libraries/C and C++
%description -n libfdt%{sover}
libfdt is a library to process Open Firmware style device trees on various
architectures.
%package -n libfdt-devel
Summary: Development headers for device tree library
Group: Development/Libraries/C and C++
Requires: libfdt%{sover} = %{version}-%{release}
# Provide previously used incorrectly named devel package
Provides: libfdt1-devel = %{version}-%{release}
Obsoletes: libfdt1-devel < %{version}-%{release}
%description -n libfdt-devel
This package provides development files for libfdt
%prep
%setup -q
%patch3
%patch4
%build
make %{?_smp_mflags} V=1
%install
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
install -p -m 644 libfdt/libfdt_env.h %{buildroot}/%{_includedir}
rm -f %{buildroot}/%{_libdir}/*.a
%check
make %{?_smp_mflags} check
%files
%defattr(-,root,root)
%doc README.license Documentation/manual.txt
%{_bindir}/convert-dtsv0
%{_bindir}/dtc
%{_bindir}/dtdiff
%{_bindir}/fdtdump
%{_bindir}/fdtget
%{_bindir}/fdtput
%post -n libfdt%{sover} -p /sbin/ldconfig
%postun -n libfdt%{sover} -p /sbin/ldconfig
%files -n libfdt%{sover}
%defattr(-,root,root,-)
%doc GPL
%{_libdir}/libfdt-%{version}.so
%{_libdir}/libfdt.so.*
%files -n libfdt-devel
%defattr(-,root,root,-)
%{_libdir}/libfdt.so
%{_includedir}/*
%changelog