2007-04-02 04:28:12 +02:00
|
|
|
#
|
2011-07-04 13:55:11 +02:00
|
|
|
# spec file for package dtc
|
2007-04-02 04:28:12 +02:00
|
|
|
#
|
2018-12-19 14:11:21 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-04-02 04:28:12 +02:00
|
|
|
#
|
2009-06-18 17:17:02 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-04-02 04:28:12 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-12-07 08:40:45 +01:00
|
|
|
%define sover 1
|
2007-04-02 04:28:12 +02:00
|
|
|
Name: dtc
|
2018-12-19 14:11:21 +01:00
|
|
|
Version: 1.4.7
|
2013-05-24 15:32:51 +02:00
|
|
|
Release: 0
|
2011-07-04 13:54:28 +02:00
|
|
|
Summary: Device-tree compiler
|
2013-05-24 15:32:51 +02:00
|
|
|
License: GPL-2.0+
|
2007-04-02 04:28:12 +02:00
|
|
|
Group: Development/Tools/Building
|
2017-03-09 09:43:44 +01:00
|
|
|
Url: https://github.com/dgibson/dtc
|
|
|
|
Source0: https://github.com/dgibson/dtc/archive/v%{version}.tar.gz#/dtc-%{version}.tar.gz
|
|
|
|
Source1: baselibs.conf
|
2011-07-04 13:55:11 +02:00
|
|
|
Patch3: dtc-license.patch
|
2014-03-10 17:57:39 +01:00
|
|
|
Patch4: use-tx-as-the-type-specifier-instead-of-zx.patch
|
2015-12-07 08:40:45 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
2018-12-19 14:11:21 +01:00
|
|
|
BuildRequires: valgrind-devel
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2015-12-07 08:40:45 +01:00
|
|
|
%package -n libfdt%{sover}
|
2011-07-04 13:55:11 +02:00
|
|
|
Summary: Device tree library
|
2015-12-07 08:40:45 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-04-02 04:28:12 +02:00
|
|
|
|
2015-12-07 08:40:45 +01:00
|
|
|
%description -n libfdt%{sover}
|
2011-07-04 13:54:28 +02:00
|
|
|
libfdt is a library to process Open Firmware style device trees on various
|
|
|
|
architectures.
|
2007-04-02 04:28:12 +02:00
|
|
|
|
2015-12-07 08:40:45 +01:00
|
|
|
%package -n libfdt-devel
|
2011-07-04 13:55:11 +02:00
|
|
|
Summary: Development headers for device tree library
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-12-07 08:40:45 +01:00
|
|
|
Requires: libfdt%{sover} = %{version}-%{release}
|
2015-12-15 19:38:57 +01:00
|
|
|
# Provide previously used incorrectly named devel package
|
|
|
|
Provides: libfdt1-devel = %{version}-%{release}
|
|
|
|
Obsoletes: libfdt1-devel < %{version}-%{release}
|
2011-07-04 13:54:28 +02:00
|
|
|
|
2015-12-07 08:40:45 +01:00
|
|
|
%description -n libfdt-devel
|
2011-07-04 13:54:28 +02:00
|
|
|
This package provides development files for libfdt
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%prep
|
2013-07-09 11:30:00 +02:00
|
|
|
%setup -q
|
2011-07-04 13:54:28 +02:00
|
|
|
%patch3
|
2018-12-19 14:11:21 +01:00
|
|
|
%patch4 -p1
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%build
|
2017-03-16 09:38:03 +01:00
|
|
|
make %{?_smp_mflags} V=1
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%install
|
2017-03-16 09:38:03 +01:00
|
|
|
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
|
|
|
install -p -m 644 libfdt/libfdt_env.h %{buildroot}/%{_includedir}
|
2011-07-04 13:54:28 +02:00
|
|
|
rm -f %{buildroot}/%{_libdir}/*.a
|
2007-04-02 04:28:12 +02:00
|
|
|
|
2017-03-16 09:38:03 +01:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
2007-04-02 04:28:12 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-01-24 21:22:04 +01:00
|
|
|
%doc README.license Documentation/manual.txt
|
2013-06-19 08:58:39 +02:00
|
|
|
%{_bindir}/convert-dtsv0
|
|
|
|
%{_bindir}/dtc
|
|
|
|
%{_bindir}/dtdiff
|
2013-07-09 11:30:00 +02:00
|
|
|
%{_bindir}/fdtdump
|
|
|
|
%{_bindir}/fdtget
|
|
|
|
%{_bindir}/fdtput
|
2018-12-19 14:11:21 +01:00
|
|
|
%{_bindir}/fdtoverlay
|
2011-07-04 13:54:28 +02:00
|
|
|
|
2015-12-07 08:40:45 +01:00
|
|
|
%post -n libfdt%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libfdt%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libfdt%{sover}
|
2011-07-04 13:54:28 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc GPL
|
|
|
|
%{_libdir}/libfdt-%{version}.so
|
|
|
|
%{_libdir}/libfdt.so.*
|
|
|
|
|
2015-12-07 08:40:45 +01:00
|
|
|
%files -n libfdt-devel
|
2011-07-04 13:54:28 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libfdt.so
|
|
|
|
%{_includedir}/*
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%changelog
|