dtc/dtc.spec

101 lines
2.4 KiB
RPMSpec
Raw Normal View History

2020-05-11 14:48:36 +08:00
%define _wrong_version_format_terminate_build 0
2019-09-30 10:37:37 -04:00
Name: dtc
2020-05-11 14:48:36 +08:00
Version: 1.6.0
2020-09-09 14:16:06 +08:00
Release: 2
2019-09-30 10:37:37 -04:00
Summary: Device tree compiler
License: GPLv2+
URL: https://devicetree.org/
2020-09-09 14:16:06 +08:00
Source0: https://www.kernel.org/pub/software/utils/%{name}/%{name}-%{version}.tar.xz
2019-09-30 10:37:37 -04:00
BuildRequires: gcc make git flex bison swig
2020-05-11 14:48:36 +08:00
BuildRequires: python3-devel python3-setuptools
2019-09-30 10:37:37 -04:00
Provides: libfdt
Obsoletes: libfdt
%description
The devicetree is a data structure for describing hardware. Rather than hard coding
every detail of a device into an operating system, many aspects of the hardware can
be described in a data structure that is passed to the operating system at boot time.
The devicetree is used by OpenFirmware, OpenPOWER Abstraction Layer (OPAL), Power
Architecture Platform Requirements (PAPR) and in the standalone Flattened Device
Tree (FDT) form.
%package devel
Summary: Development headers for device tree library
Requires: libfdt = %{version}-%{release}
Provides: libfdt-static libfdt-devel
Obsoletes: libfdt-static libfdt-devel
%description devel
This package provides development files for dtc.
2020-05-11 14:48:36 +08:00
%package -n python3-libfdt
Summary: Python 3 bindings for device tree library
%{?python_provide:%python_provide python3-libfdt}
2019-09-30 10:37:37 -04:00
Requires: %{name} = %{version}-%{release}
2020-05-11 14:48:36 +08:00
%description -n python3-libfdt
This package provides python3 bindings for libfdt
2019-09-30 10:37:37 -04:00
%package_help
%prep
%autosetup -n %{name}-%{version} -p1 -Sgit
%build
%make_build
%install
2020-05-11 14:48:36 +08:00
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr \
LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir} V=1
2019-09-30 10:37:37 -04:00
%pre
%preun
%post
%postun
%files
%doc README
%license GPL README.license
%{_bindir}/*
%{_libdir}/libfdt-%{version}.so
%{_libdir}/libfdt.so.*
%files devel
%{_libdir}/libfdt.so
%{_includedir}/*
%{_libdir}/libfdt.a
2020-05-11 14:48:36 +08:00
%files -n python3-libfdt
%{python3_sitearch}/*
2019-09-30 10:37:37 -04:00
%files help
%doc Documentation/manual.txt
%changelog
2020-09-09 14:16:06 +08:00
* Wed Sep 9 2020 wangchen<wangchen137@huawei.com> - 1.6.0-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Modify the URL of Source0
2020-05-11 14:48:36 +08:00
* Thu Apr 23 2020 chengquan3<chengquan3@huawei.com> - 1.4.7-3.h1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Update software to v1.6.0
* Tue Jan 7 2020 JeanLeo<liujianliu.liu@huawei.com> - 1.4.7-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:update software package
2019-09-30 10:37:37 -04:00
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.4.7-2
- Package init