This commit is contained in:
parent
c715f4783b
commit
c1d6ec879c
5
dtc.spec
5
dtc.spec
@ -75,14 +75,15 @@ Python binding part.
|
|||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} V=1 NO_PYTHON=1
|
make %{?_smp_mflags} V=1 NO_PYTHON=1
|
||||||
cd pylibfdt
|
cd pylibfdt
|
||||||
python3 setup.py build '--executable=/usr/bin/python3 -s'
|
python3 setup.py build_ext
|
||||||
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} NO_PYTHON=1
|
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} NO_PYTHON=1
|
||||||
install -p -m 644 libfdt/libfdt_env.h %{buildroot}/%{_includedir}
|
install -p -m 644 libfdt/libfdt_env.h %{buildroot}/%{_includedir}
|
||||||
rm -f %{buildroot}/%{_libdir}/*.a
|
rm -f %{buildroot}/%{_libdir}/*.a
|
||||||
cd pylibfdt
|
cd pylibfdt
|
||||||
python3 setup.py install -O1 --force --root %{buildroot} --prefix %{_prefix}
|
%python3_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make %{?_smp_mflags} check
|
make %{?_smp_mflags} check
|
||||||
|
Loading…
Reference in New Issue
Block a user