From ad5417a597e2c855dba137822ac403fad25d280d Mon Sep 17 00:00:00 2001 From: Scott Little Date: Wed, 1 Aug 2018 14:21:03 -0400 Subject: [PATCH] Relocate libfdt to stx-integ/base/libfdt Move content from stx-gplv2 into stx-integ Packages will be relocated to stx-integ: base/ bash cgcs-users cluster-resource-agents dpkg haproxy libfdt netpbm rpm database/ mariadb filesystem/ iscsi-initiator-utils filesystem/drbd/ drbd-tools kernel/kernel-modules/ drbd integrity intel-e1000e intel-i40e intel-i40evf intel-ixgbe intel-ixgbevf qat17 tpmdd ldap/ ldapscripts networking/ iptables net-tools Change-Id: I3424c7efb86dca5609cd167898d546a24da83944 Story: 2002801 Task: 22687 Signed-off-by: Scott Little --- base/libfdt/.gitignore | 6 ++++ base/libfdt/PKG-INFO | 13 ++++++++ base/libfdt/README | 6 ++++ base/libfdt/centos/build_srpm.data | 2 ++ base/libfdt/centos/libfdt.spec | 51 ++++++++++++++++++++++++++++++ centos_pkg_dirs | 1 + 6 files changed, 79 insertions(+) create mode 100644 base/libfdt/.gitignore create mode 100644 base/libfdt/PKG-INFO create mode 100644 base/libfdt/README create mode 100644 base/libfdt/centos/build_srpm.data create mode 100644 base/libfdt/centos/libfdt.spec 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