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
|
|
|
#
|
2011-07-04 13:55:11 +02:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2009-06-18 17:17:02 +02:00
|
|
|
|
2007-04-02 04:28:12 +02:00
|
|
|
Name: dtc
|
2011-07-04 13:55:11 +02:00
|
|
|
Url: http://git.jdl.com/gitweb/?p=dtc.git;a=summary
|
2011-07-04 13:54:28 +02:00
|
|
|
Version: 1.3.0
|
|
|
|
Release: 1
|
2008-01-24 21:22:04 +01:00
|
|
|
BuildRequires: bison flex
|
2011-07-04 13:54:28 +02:00
|
|
|
Summary: Device-tree compiler
|
2010-02-11 21:05:35 +01:00
|
|
|
License: GPLv2+
|
2007-04-02 04:28:12 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-08-12 11:47:53 +02:00
|
|
|
Source: dtc-%{version}.tar.bz2
|
2011-07-04 13:55:11 +02:00
|
|
|
Patch1: dtc-check.patch
|
|
|
|
Patch2: dtc-flattree.patch
|
|
|
|
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
|
2007-08-12 11:47:53 +02:00
|
|
|
%setup -q -n dtc
|
2011-07-04 13:54:28 +02:00
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%build
|
2011-07-04 13:54:28 +02:00
|
|
|
make
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%install
|
2011-07-04 13:54:28 +02:00
|
|
|
%make_install PREFIX=/usr LIBDIR=%{_libdir}
|
|
|
|
rm -f %{buildroot}/%{_libdir}/*.a
|
2007-04-02 04:28:12 +02:00
|
|
|
|
|
|
|
%clean
|
2011-07-04 13:54:28 +02:00
|
|
|
rm -rf %{buildroot}
|
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
|
2011-07-04 13:54:28 +02:00
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%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
|