diff --git a/base/libfdt/.gitignore b/base/libfdt/.gitignore new file mode 100644 index 000000000..14c495658 --- /dev/null +++ b/base/libfdt/.gitignore @@ -0,0 +1,6 @@ +!.distro +.distro/centos7/rpmbuild/RPMS +.distro/centos7/rpmbuild/SRPMS +.distro/centos7/rpmbuild/BUILD +.distro/centos7/rpmbuild/BUILDROOT +.distro/centos7/rpmbuild/SOURCES/dtc*tar.gz diff --git a/base/libfdt/PKG-INFO b/base/libfdt/PKG-INFO new file mode 100644 index 000000000..197bd3961 --- /dev/null +++ b/base/libfdt/PKG-INFO @@ -0,0 +1,13 @@ +Metadata-Version: 1.1 +Name: libfdt +Version: 1.4.4 +Summary: Device Tree Compiler +Home-page: +Author: David Gibson +Author-email: david@gibson.dropbear.id.au +License: GPLv2 + +Description: Device Tree Compiler + + +Platform: UNKNOWN diff --git a/base/libfdt/README b/base/libfdt/README new file mode 100644 index 000000000..3da3e225b --- /dev/null +++ b/base/libfdt/README @@ -0,0 +1,6 @@ +Only needed for building qemu on Centos. + +I have found traces of this package for earlier epel release (5 and 6). Not +sure why it's not provided anymore. + +Source: https://github.com/qemu/dtc diff --git a/base/libfdt/centos/build_srpm.data b/base/libfdt/centos/build_srpm.data new file mode 100644 index 000000000..80f0c0a58 --- /dev/null +++ b/base/libfdt/centos/build_srpm.data @@ -0,0 +1,2 @@ +COPY_LIST="$CGCS_BASE/downloads/dtc-1.4.4.tar.gz" +TIS_PATCH_VER=1 diff --git a/base/libfdt/centos/libfdt.spec b/base/libfdt/centos/libfdt.spec new file mode 100644 index 000000000..a50449027 --- /dev/null +++ b/base/libfdt/centos/libfdt.spec @@ -0,0 +1,51 @@ +Summary: libfdt +Name: libfdt +Version: 1.4.4 +Release: 0%{?_tis_dist}.%{tis_patch_ver} +License: GPLv2 +Group: base +Packager: Wind River +URL: unknown +Source0: dtc-1.4.4.tar.gz + +BuildRequires: gcc +BuildRequires: bison +BuildRequires: flex + +%define debug_package %{nil} + +%description +Device Tree Compiler + +%package -n libfdt-devel +Summary: libfdt devel + +%description -n libfdt-devel +libfdt devel + +%define prefix /usr/ + +%prep +%setup -n dtc-1.4.4 + +%build +make + +%install +make install PREFIX=%{buildroot}%{prefix} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%license GPL README.license +%defattr(-,root,root,-) + +# TODO: Devel shouldn't contain bin +%files -n libfdt-devel +%license GPL README.license +%defattr(-,root,root,-) +%{prefix}/bin/* +%dir %{prefix}/include +%{prefix}/include/* +%{prefix}/lib/* diff --git a/centos_pkg_dirs b/centos_pkg_dirs index 728a2faef..d42928e02 100644 --- a/centos_pkg_dirs +++ b/centos_pkg_dirs @@ -129,3 +129,4 @@ base/rpm base/dpkg base/cgcs-users base/cluster-resource-agents +base/libfdt