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
|
|
|
#
|
2013-05-24 15:32:51 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dtc
|
2011-07-04 13:55:11 +02:00
|
|
|
Url: http://git.jdl.com/gitweb/?p=dtc.git;a=summary
|
2013-07-09 11:30:00 +02:00
|
|
|
Version: 1.4.0
|
2013-05-24 15:32:51 +02:00
|
|
|
Release: 0
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
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
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-07-09 11:30:00 +02:00
|
|
|
Source: dtc-%{version}.tar.gz
|
2011-09-20 09:50:44 +02:00
|
|
|
Source2: baselibs.conf
|
2011-07-04 13:55:11 +02:00
|
|
|
Patch3: dtc-license.patch
|
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
|
|
|
|
|
2011-07-04 13:54:28 +02:00
|
|
|
%package -n libfdt1
|
2011-07-04 13:55:11 +02:00
|
|
|
|
|
|
|
Summary: Device tree library
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-04-02 04:28:12 +02:00
|
|
|
|
2011-07-04 13:54:28 +02:00
|
|
|
%description -n libfdt1
|
|
|
|
libfdt is a library to process Open Firmware style device trees on various
|
|
|
|
architectures.
|
2007-04-02 04:28:12 +02:00
|
|
|
|
2011-07-04 13:54:28 +02:00
|
|
|
%package -n libfdt1-devel
|
2011-07-04 13:55:11 +02:00
|
|
|
|
|
|
|
Summary: Development headers for device tree library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libfdt1 = %{version}
|
2011-07-04 13:54:28 +02:00
|
|
|
|
|
|
|
%description -n libfdt1-devel
|
|
|
|
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
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%build
|
2011-09-20 09:50:44 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%install
|
2013-05-24 15:32:51 +02:00
|
|
|
%makeinstall PREFIX=/usr LIBDIR=%{_libdir}
|
2013-06-18 10:58:51 +02:00
|
|
|
install -m 644 libfdt/libfdt_env.h $RPM_BUILD_ROOT/%{_includedir}
|
2011-07-04 13:54:28 +02:00
|
|
|
rm -f %{buildroot}/%{_libdir}/*.a
|
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
|
2011-07-04 13:54:28 +02:00
|
|
|
|
|
|
|
%files -n libfdt1
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc GPL
|
|
|
|
%{_libdir}/libfdt-%{version}.so
|
|
|
|
%{_libdir}/libfdt.so.*
|
|
|
|
|
|
|
|
%files -n libfdt1-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libfdt.so
|
|
|
|
%{_includedir}/*
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%changelog
|