c0cd83
Name:          dtc
cbaa4c
Version:       1.5.0
cbaa4c
Release:       1%{?dist}
c0cd83
Summary:       Device Tree Compiler
c0cd83
License:       GPLv2+
c0cd83
URL:           https://devicetree.org/
c0cd83
cbaa4c
Source0:       https://www.kernel.org/pub/software/utils/%{name}/%{name}-%{version}.tar.xz
cbaa4c
#Patch1:       use-tx-as-the-type-specifier-instead-of-zx.patch
c0cd83
f20e53
BuildRequires: gcc make
c0cd83
BuildRequires: flex bison swig
cbaa4c
#BuildRequires: python2-devel python2-setuptools
cbaa4c
BuildRequires: python3-devel python3-setuptools
1338fb
1338fb
%description
c0cd83
Devicetree is a data structure for describing hardware. Rather than hard coding
c0cd83
every detail of a device into an operating system, many aspects of the hardware
c0cd83
can be described in a data structure that is passed to the operating system at
c0cd83
boot time. The devicetree is used by OpenFirmware, OpenPOWER Abstraction Layer
c0cd83
(OPAL), Power Architecture Platform Requirements (PAPR) and in the standalone
c0cd83
Flattened Device Tree (FDT) form.
1338fb
dd8478
%package -n libfdt
dd8478
Summary: Device tree library
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
Requires: libfdt = %{version}-%{release}
dd8478
dd8478
%description -n libfdt-devel
dd8478
This package provides development files for libfdt
dd8478
8b14c1
%package -n libfdt-static
8b14c1
Summary: Static version of device tree library
8b14c1
Requires: libfdt-devel = %{version}-%{release}
8b14c1
8b14c1
%description -n libfdt-static
8b14c1
This package provides the static library of libfdt
8b14c1
cbaa4c
%package -n python3-libfdt
cbaa4c
Summary: Python 3 bindings for device tree library
c0cd83
%{?python_provide:%python_provide python2-libfdt}
c0cd83
Requires: %{name}%{?_isa} = %{version}-%{release}
c0cd83
cbaa4c
%description -n python3-libfdt
c0cd83
This package provides python2 bindings for libfdt
c0cd83
1338fb
%prep
975efc
%autosetup -p1
cbaa4c
sed -i 's/python2/python3/' pylibfdt/setup.py
cbaa4c
#sed -i 's/PREFIX/SETUP_PREFIX/' pylibfdt/Makefile.pylibfdt
1338fb
1338fb
%build
283736
make %{?_smp_mflags} V=1 CC="gcc $RPM_OPT_FLAGS $RPM_LD_FLAGS"
1338fb
1338fb
%install
cbaa4c
#make install DESTDIR=$RPM_BUILD_ROOT SETUP_PREFIX=$RPM_BUILD_ROOT/usr PREFIX=/usr LIBDIR=%{_libdir}
cbaa4c
PYTHON=python3 make install DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr \
cbaa4c
                            LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir} V=1
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
228e83
%ldconfig_scriptlets -n libfdt
1338fb
1338fb
%files
da47f0
%license GPL
da47f0
%doc Documentation/manual.txt
1338fb
%{_bindir}/*
1338fb
dd8478
%files -n libfdt
da47f0
%license GPL
dd8478
%{_libdir}/libfdt-%{version}.so
dd8478
%{_libdir}/libfdt.so.*
dd8478
8b14c1
%files -n libfdt-static
8b14c1
%{_libdir}/libfdt.a
8b14c1
dd8478
%files -n libfdt-devel
dd8478
%{_libdir}/libfdt.so
dd8478
%{_includedir}/*
dd8478
cbaa4c
%files -n python3-libfdt
cbaa4c
%{python3_sitearch}/*
dd8478
1338fb
%changelog
cbaa4c
* Tue Mar 12 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.5.0-1
cbaa4c
- New dtc 1.5.0 release
cbaa4c
5b4967
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.7-3
5b4967
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5b4967
975efc
* Tue Jan 15 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.7-2
975efc
- Upstream fix for crash (rhbz 1663054)
975efc
8e9090
* Sat Aug 18 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.7-1
8e9090
- New dtc 1.4.7 release
8e9090
616bd3
* Tue Jul 17 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.6-7
616bd3
- Update Python macros to new packaging standards
616bd3
  (See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package)
616bd3
232f8f
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-6
232f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
232f8f
8b14c1
* Wed Jun 06 2018 Bas Mevissen <abuse@basmevissen.nl> 1.4.6-5
8b14c1
- Add static library package, see BZ#1440975
8b14c1
f20e53
* Wed Mar  7 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.6-4
f20e53
- Add gcc BR
f20e53
63896d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-3
63896d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
63896d
283736
* Fri Jan 26 2018 Florian Weimer <fweimer@redhat.com> - 1.4.6-2
283736
- Use Fedora build flags during build
283736
a0e4d0
* Mon Jan 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.6-1
a0e4d0
- New dtc 1.4.6 release
a0e4d0
5b8f2e
* Thu Sep 28 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.5-1
5b8f2e
- New dtc 1.4.5 release
5b8f2e
8bb0d2
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-4
8bb0d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8bb0d2
8dd76d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-3
8dd76d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8dd76d
c0cd83
* Mon Jun 12 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.4-2
c0cd83
- Add upstream patches for python bindings
c0cd83
05b2b5
* Fri Mar 17 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.4-1
05b2b5
- New dtc 1.4.4 release
05b2b5
f6254d
* Tue Feb 28 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.2-3.0931cea
f6254d
- Rebase to same git snapshot that kernel is using for DT Overlays
f6254d
e48995
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-2
e48995
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e48995
d0a42e
* Sun Sep 11 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.2-1
d0a42e
- New dtc 1.4.2 release
d0a42e
27b52b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-5
27b52b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
27b52b
da47f0
* Tue Jun 16 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.1-4
da47f0
- Use %%license
da47f0
45ba7a
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.4.1-3
45ba7a
- Rebuilt for Fedora 23 Change
45ba7a
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
45ba7a
be2af4
* Mon Jan  5 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.1-2
be2af4
- Use tar file from kernel.org
be2af4
8aa347
* Mon Jan  5 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.1-1
8aa347
- New dtc 1.4.1 release
8aa347
- Update URL and Sources
8aa347
- Cleanup spec
8aa347
24d94f
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-5
24d94f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
24d94f
b415c0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
b415c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b415c0
557f4a
* Sat Dec 21 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.4.0-3
557f4a
- Avoid shell invocation and fix deps of libfdt %%post* scripts.
557f4a
ecabbe
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
ecabbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ecabbe
Josh Boyer 498afd
* Mon Jun 24 2013 Josh Boyer <jwboyer@redhat.com> - 1.4.0-1
Josh Boyer 498afd
- New dtc 1.4.0 release (rhbz 977480)
Josh Boyer 498afd
Josh Boyer f3da2d
* Thu Jun 06 2013 Josh Boyer <jwboyer@redhat.com> - 1.3.0-8
Josh Boyer f3da2d
- Fix type specifier error (from Dan Horák)
Josh Boyer f3da2d
Josh Boyer 3eadff
* Mon Jun 03 2013 Josh Boyer <jwboyer@redhat.com> - 1.3.0-7
Josh Boyer 3eadff
- Update dtc to include libfdt_env.h (rhbz 969955)
Josh Boyer 3eadff
59ddc0
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-6
59ddc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
59ddc0
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