mirror of
https://abf.rosa.ru/djam/dtc.git
synced 2025-02-23 03:42:48 +00:00
1.7.0
This commit is contained in:
parent
a01fdf01e4
commit
e5759d5123
2 changed files with 15 additions and 8 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
||||||
sources:
|
sources:
|
||||||
dtc-1.6.1.tar.xz: 6273fa9cdd51e7fd83d0467e21c788e3a5d3cd5d
|
dtc-1.7.0.tar.xz: 19a95204dd787b4809886db15655082cb28718e9
|
||||||
|
|
21
dtc.spec
21
dtc.spec
|
@ -5,8 +5,8 @@
|
||||||
%define devnamestatic %mklibname -d fdt_static %{api}
|
%define devnamestatic %mklibname -d fdt_static %{api}
|
||||||
|
|
||||||
Name: dtc
|
Name: dtc
|
||||||
Version: 1.6.1
|
Version: 1.7.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Device Tree Compiler
|
Summary: Device Tree Compiler
|
||||||
Group: Development/Other
|
Group: Development/Other
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
|
@ -60,7 +60,8 @@ This package provides python3 bindings for %{name}.
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
sed -i 's/python2/python3/' pylibfdt/setup.py
|
|
||||||
|
sed -i 's@--prefix=$(PREFIX)@--prefix=$(PREFIX) --root=/@' pylibfdt/Makefile.pylibfdt
|
||||||
|
|
||||||
%ifarch %{e2k}
|
%ifarch %{e2k}
|
||||||
# -MG is an unrecognized option for lcc
|
# -MG is an unrecognized option for lcc
|
||||||
|
@ -69,7 +70,8 @@ echo '#define DTC_VERSION "DTC %{version}"' > version_gen.h
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%setup_compile_flags
|
%set_build_flags
|
||||||
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e '/^CFLAGS =/s:=:+= %{optflags}:' \
|
-e '/^CFLAGS =/s:=:+= %{optflags}:' \
|
||||||
|
@ -81,11 +83,16 @@ 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
|
||||||
%make CC=%{__cc} LDFLAGS="%{optflags}" WARNINGS+=-Wno-macro-redefined
|
%make_build CC=%{__cc} LDFLAGS="%{optflags}" WARNINGS+=-Wno-macro-redefined
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr \
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||||
LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir} V=1
|
%{make_install} DESTDIR=%{buildroot} PREFIX=%{buildroot}/%{_prefix} \
|
||||||
|
LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir}
|
||||||
|
|
||||||
|
|
||||||
|
# we don't want ftdump and it conflicts with freetype-demos, so drop it (rhbz 797805)
|
||||||
|
rm -f %{buildroot}/%{_bindir}/ftdump
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue