subpackage split more visible, minor spec file clean (forwarded request 75248 from k0da) OBS-URL: https://build.opensuse.org/request/show/75258 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dtc?expand=0&rev=13
92 lines
2.5 KiB
RPMSpec
92 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package dtc (Version 1.1.0)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
|
#
|
|
|
|
|
|
|
|
Name: dtc
|
|
Url: http://git.jdl.com/gitweb/?p=dtc.git;a=summary
|
|
Version: 1.3.0
|
|
Release: 1
|
|
BuildRequires: bison flex
|
|
Summary: Device-tree compiler
|
|
License: GPLv2+
|
|
Group: Development/Tools/Building
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Source: dtc-%{version}.tar.bz2
|
|
Patch1: dtc-check.patch
|
|
Patch2: dtc-flattree.patch
|
|
Patch3: dtc-license.patch
|
|
|
|
%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 libfdt1
|
|
Summary: Device tree library
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n libfdt1
|
|
libfdt is a library to process Open Firmware style device trees on various
|
|
architectures.
|
|
|
|
%package -n libfdt1-devel
|
|
Summary: Development headers for device tree library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libfdt1 = %{version}
|
|
|
|
%description -n libfdt1-devel
|
|
This package provides development files for libfdt
|
|
|
|
%prep
|
|
%setup -q -n dtc
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
|
|
%build
|
|
make
|
|
|
|
%install
|
|
%make_install PREFIX=/usr LIBDIR=%{_libdir}
|
|
rm -f %{buildroot}/%{_libdir}/*.a
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.license Documentation/manual.txt
|
|
%{_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}/*
|
|
|
|
%changelog
|