1338fb
Name:           dtc
dd8478
Version:        1.3.0
2c0bed
Release:        5%{?dist}
1338fb
Summary:        Device Tree Compiler
1338fb
Group:          Development/Tools
0f6d2e
License:        GPLv2+
dd8478
URL:            http://git.jdl.com/gitweb/?p=dtc.git;a=summary
d8039c
Source:         http://www.jdl.com/software/dtc-v%{version}.tgz
dd8478
Patch0:         dtc-check.patch
dd8478
Patch1:         dtc-flattree.patch
1338fb
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
1338fb
1338fb
BuildRequires:  flex, bison
1338fb
1338fb
%description
1338fb
The Device Tree Compiler generates flattened Open Firmware style device trees
1338fb
for use with PowerPC machines that lack an Open Firmware implementation
1338fb
dd8478
%package -n libfdt
dd8478
Summary: Device tree library
dd8478
Group: Development/Libraries
dd8478
dd8478
%description -n libfdt
dd8478
libfdt is a library to process Open Firmware style device trees on various
dd8478
architectures.
dd8478
dd8478
%package -n libfdt-devel
dd8478
Summary: Development headers for device tree library
dd8478
Group: Development/Libraries
dd8478
Requires: libfdt = %{version}-%{release}
dd8478
dd8478
%description -n libfdt-devel
dd8478
This package provides development files for libfdt
dd8478
1338fb
%prep
d8039c
%setup -q -n dtc-v%{version}
dd8478
%patch0 -p1
dd8478
%patch1 -p1
1338fb
1338fb
%build
1338fb
make %{?_smp_mflags}
1338fb
1338fb
%install
1338fb
rm -rf $RPM_BUILD_ROOT
dd8478
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=/usr LIBDIR=%{_libdir}
dd8478
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.a
1338fb
Josh Boyer 308f95
# we don't want or need ftdump and it conflicts with freetype-demos, so drop
Josh Boyer 308f95
# it (rhbz 797805)
Josh Boyer 308f95
rm -f $RPM_BUILD_ROOT/%{_bindir}/ftdump
Josh Boyer 308f95
1338fb
%clean
1338fb
rm -rf $RPM_BUILD_ROOT
1338fb
1338fb
%files
1338fb
%defattr(-,root,root,-)
1338fb
%doc GPL
1338fb
%{_bindir}/*
1338fb
dd8478
%files -n libfdt
dd8478
%defattr(-,root,root,-)
dd8478
%doc GPL
dd8478
%{_libdir}/libfdt-%{version}.so
dd8478
%{_libdir}/libfdt.so.*
dd8478
dd8478
%files -n libfdt-devel
dd8478
%defattr(-,root,root,-)
dd8478
%{_libdir}/libfdt.so
dd8478
%{_includedir}/*
dd8478
dd8478
%post -n libfdt
dd8478
/sbin/ldconfig
dd8478
dd8478
%postun -n libfdt
dd8478
/sbin/ldconfig
dd8478
1338fb
%changelog
2c0bed
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-5
2c0bed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2c0bed
Josh Boyer 308f95
* Mon Feb 27 2012 Josh Boyer <jwboyer@redhat.com>
Josh Boyer 308f95
- Don't package ftdump (rhbz 797805)
Josh Boyer 308f95
fdb0bc
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-3
fdb0bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fdb0bc
dd8478
* Tue Jun 28 2011 Josh Boyer <jwboyer@gmail.com>
Josh Boyer 9374d4
- Fixup error during tarball upload
Josh Boyer 9374d4
Josh Boyer 9374d4
* Tue Jun 28 2011 Josh Boyer <jwboyer@gmail.com>
dd8478
- Point to git tree for URL (#717217)
dd8478
- Add libfdt subpackages based on patch from Paolo Bonzini (#443882)
dd8478
- Update to latest release
dd8478
4398f8
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-4
4398f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4398f8
0eab86
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
0eab86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0eab86
f4f7e8
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
f4f7e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f4f7e8
d8039c
* Thu Aug 28 2008 Josh Boyer <jwboyer@gmail.com>
d8039c
- Update to latest release
d8039c
a89dd3
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.0-2
a89dd3
- Autorebuild for GCC 4.3
a89dd3
874f82
* Thu Jan 24 2008 Josh Boyer <jwboyer@gmail.com>
874f82
- Update to 1.1.0
874f82
290fe3
* Tue Aug 21 2007 Josh Boyer <jwboyer@jdub.homelinux.org>
290fe3
- Bump and rebuild
290fe3
21bb05
* Thu Aug 09 2007 Josh Boyer <jwboyer@jdub.homelinux.org>
21bb05
- Update to official 1.0.0 release
21bb05
0f6d2e
* Fri Aug 03 2007 Josh Boyer <jwboyer@jdub.homelinux.org>
0f6d2e
- Update license field
0f6d2e
d4d100
* Mon Jul 09 2007 Josh Boyer <jwboyer@jdub.homelinux.org>
d4d100
- Update to new snapshot
d4d100
b0ece1
* Tue Jul 03 2007 Josh Boyer <jwboyer@jdub.homelinux.org>
b0ece1
- Update to new snapshot
b0ece1
- Drop upstreamed install patch
b0ece1
1338fb
* Fri Jun 29 2007 Josh Boyer <jwboyer@jdub.homelinux.org>
1338fb
- Fix packaging errors
1338fb
1338fb
* Thu Jun 28 2007 Josh Boyer <jwboyer@jdub.homelinux.org>
1338fb
- Initial packaging