mirror of
https://abf.rosa.ru/djam/dtc.git
synced 2025-02-23 09:32:50 +00:00
1.7.0
This commit is contained in:
parent
71d1c88d9b
commit
248470867e
1 changed files with 16 additions and 6 deletions
22
dtc.spec
22
dtc.spec
|
@ -9,7 +9,7 @@ Version: 1.7.0
|
||||||
Release: 1
|
Release: 1
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Development/Other
|
Group: Development/Other
|
||||||
Url: http://devicetree.org/Device_Tree_Compiler
|
URL: http://devicetree.org/Device_Tree_Compiler
|
||||||
Source0: https://www.kernel.org/pub/software/utils/dtc/%{name}-%{version}.tar.xz
|
Source0: https://www.kernel.org/pub/software/utils/dtc/%{name}-%{version}.tar.xz
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
|
@ -19,6 +19,7 @@ BuildRequires: python3-pip
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-setuptools_scm
|
BuildRequires: python3-setuptools_scm
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python38-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Device Tree Compiler generates flattened Open Firmware style device trees
|
The Device Tree Compiler generates flattened Open Firmware style device trees
|
||||||
|
@ -59,7 +60,7 @@ Obsoletes: %{_lib}fdt1-devel < 1.7.0
|
||||||
This package provides development files for libfdt
|
This package provides development files for libfdt
|
||||||
|
|
||||||
%files -n %{devname}
|
%files -n %{devname}
|
||||||
%license GPL
|
%doc GPL
|
||||||
%{_libdir}/libfdt.so
|
%{_libdir}/libfdt.so
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
|
|
||||||
|
@ -97,7 +98,7 @@ This package provides python3 bindings for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%autopatch -p1
|
#autopatch -p1
|
||||||
|
|
||||||
sed -i 's@--prefix=$(PREFIX)@--prefix=$(PREFIX) --root=/@' pylibfdt/Makefile.pylibfdt
|
sed -i 's@--prefix=$(PREFIX)@--prefix=$(PREFIX) --root=/@' pylibfdt/Makefile.pylibfdt
|
||||||
|
|
||||||
|
@ -111,8 +112,9 @@ echo '#define DTC_VERSION "DTC %{version}"' > version_gen.h
|
||||||
%set_build_flags
|
%set_build_flags
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||||
|
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e '/^CFLAGS =/s:=:+= %{optflags}:' \
|
-e '/^CFLAGS =/s:=:+= %{optflags}:' \
|
||||||
-e '/^CPPFLAGS =/s:=:+=:' \
|
-e '/^CPPFLAGS =/s:=:+=:' \
|
||||||
-e '/^WARNINGS =/s:=:+=:' \
|
-e '/^WARNINGS =/s:=:+=:' \
|
||||||
-e "/^PREFIX =/s:=.*:= %{_prefix}:" \
|
-e "/^PREFIX =/s:=.*:= %{_prefix}:" \
|
||||||
|
@ -121,10 +123,18 @@ sed -i \
|
||||||
|
|
||||||
# no-macro-redefined is a workaround for flex bug
|
# no-macro-redefined is a workaround for flex bug
|
||||||
# https://github.com/westes/flex/issues/155
|
# https://github.com/westes/flex/issues/155
|
||||||
|
|
||||||
|
export PYTHONPATH=%{python38_sitelib}
|
||||||
|
export PYTHON3=/usr/libexec/python3.8
|
||||||
|
export PYTHON=/usr/libexec/python3.8
|
||||||
|
|
||||||
|
|
||||||
%make_build \
|
%make_build \
|
||||||
CC=%{__cc} \
|
NO_PYTHON=1 \
|
||||||
|
CC=%{__cc} \
|
||||||
LDFLAGS="%{optflags}" \
|
LDFLAGS="%{optflags}" \
|
||||||
WARNINGS+=-Wno-macro-redefined
|
WARNINGS+=-Wno-macro-redefined \
|
||||||
|
PYTHON=/usr/libexec/python3.8
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||||
|
|
Loading…
Add table
Reference in a new issue