From: sparky Date: Tue, 24 Nov 2009 19:01:57 +0000 (+0000) Subject: - perl is not a part of minimal builder instalation, BR: sed >= 4.0 instead X-Git-Tag: auto/th/acpica-20100702-1~1 X-Git-Url: https://git.pld-linux.org/?p=packages%2Facpica.git;a=commitdiff_plain;h=92c5d0eeb42c365d9ba797f25076df223b2d1de6 - perl is not a part of minimal builder instalation, BR: sed >= 4.0 instead - rpmldflags Changed files: acpica.spec -> 1.9 --- diff --git a/acpica.spec b/acpica.spec index 839b417..146eb33 100644 --- a/acpica.spec +++ b/acpica.spec @@ -10,6 +10,7 @@ Source0: http://acpica.org/download/%{name}-unix-%{version}.tar.gz URL: http://acpica.org/ BuildRequires: bison BuildRequires: flex +BuildRequires: sed >= 4.0 Provides: iasl Obsoletes: iasl BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -25,13 +26,17 @@ tablic DSDT. %prep %setup -q -n %{name}-unix-%version -find . -name Makefile |xargs perl -pi -e "s,-O2,%{rpmcflags},g" +sed 's/-O2/$(OPTCFLAGS)/g' -i tools/acpisrc/Makefile compiler/Makefile %build %{__make} -C tools/acpisrc \ - CC="%{__cc}" + CC="%{__cc}" \ + OPTCFLAGS="%{rpmcflags}" \ + LDFLAGS="%{rpmcflags} %{rpmldflags}" %{__make} -j1 -C compiler \ - CC="%{__cc}" + CC="%{__cc}" \ + OPTCFLAGS="%{rpmcflags}" \ + LDFLAGS="%{rpmcflags} %{rpmldflags}" %install rm -rf $RPM_BUILD_ROOT