do not let rpmbuild to set compiler flags automagically
and modernize the spec file a bit
This commit is contained in:
parent
e10403d723
commit
ae73cb77e1
7
dtc.spec
7
dtc.spec
@ -1,3 +1,5 @@
|
|||||||
|
%undefine _auto_set_build_flags
|
||||||
|
|
||||||
Name: dtc
|
Name: dtc
|
||||||
Version: 1.6.1
|
Version: 1.6.1
|
||||||
Release: 4%{?dist}
|
Release: 4%{?dist}
|
||||||
@ -50,13 +52,12 @@ This package provides python2 bindings for libfdt
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
sed -i 's/python2/python3/' pylibfdt/setup.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{make_build} EXTRA_CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
|
%{make_build} EXTRA_CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{make_install} DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/%{_prefix} \
|
%{make_install} DESTDIR=%{buildroot} PREFIX=%{buildroot}/%{_prefix} \
|
||||||
LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir}
|
LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir}
|
||||||
|
|
||||||
# we don't want ftdump and it conflicts with freetype-demos, so drop it (rhbz 797805)
|
# we don't want ftdump and it conflicts with freetype-demos, so drop it (rhbz 797805)
|
||||||
|
Loading…
Reference in New Issue
Block a user