From 5f806f0e4479e59f9aa8566dd9dce0afce3ecb1a Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Mar 05 2015 13:17:04 +0000 Subject: import dtc-1.4.0-2.el7 --- diff --git a/.dtc.metadata b/.dtc.metadata new file mode 100644 index 0000000..215d034 --- /dev/null +++ b/.dtc.metadata @@ -0,0 +1 @@ +118591570c7a35ad2623b5bbeeb4da9cfdda0273 SOURCES/dtc-v1.4.0.tgz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e114d60 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/dtc-v1.4.0.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/dtc.spec b/SPECS/dtc.spec new file mode 100644 index 0000000..eef3942 --- /dev/null +++ b/SPECS/dtc.spec @@ -0,0 +1,79 @@ +Name: dtc +Version: 1.4.0 +Release: 2%{?dist} +Summary: Device Tree Compiler +Group: Development/Tools +License: GPLv2+ +URL: http://git.jdl.com/gitweb/?p=dtc.git;a=summary +Source: http://www.jdl.com/software/dtc-v%{version}.tgz + + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: flex, bison +ExclusiveArch: %{power64} aarch64 + +%description +The Device Tree Compiler generates flattened Open Firmware style device trees +for use with PowerPC machines that lack an Open Firmware implementation + +%package -n libfdt +Summary: Device tree library +Group: Development/Libraries + +%description -n libfdt +libfdt is a library to process Open Firmware style device trees on various +architectures. + +%package -n libfdt-devel +Summary: Development headers for device tree library +Group: Development/Libraries +Requires: libfdt = %{version}-%{release} + +%description -n libfdt-devel +This package provides development files for libfdt + +%prep +%setup -q -n dtc-v%{version} + + +%build +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr LIBDIR=%{_libdir} +rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.a + +# we don't want or need ftdump, so drop +rm -f $RPM_BUILD_ROOT/%{_bindir}/ftdump + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc GPL +%{_bindir}/* + +%files -n libfdt +%defattr(-,root,root,-) +%doc GPL +%{_libdir}/libfdt-%{version}.so +%{_libdir}/libfdt.so.* + +%files -n libfdt-devel +%defattr(-,root,root,-) +%{_libdir}/libfdt.so +%{_includedir}/* + +%post -n libfdt -p /sbin/ldconfig + +%postun -n libfdt -p /sbin/ldconfig + +%changelog +* Tue Aug 19 2014 Miroslav Rezanina - 1.4.0-2 +- Update power macro for ppc64le + +* Fri Jul 25 2014 Miroslav Rezanina - 1.4.0-1 +- Initial version