forked from pool/fillup
Accepting request 86504 from Base:System
- cross-build workarounds: disable %build section testing, use fake gcc script to work around build system deficiencies (forwarded request 86382 from uli_suse) OBS-URL: https://build.opensuse.org/request/show/86504 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fillup?expand=0&rev=16
This commit is contained in:
commit
3175e86b46
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 30 15:00:41 UTC 2011 - uli@suse.com
|
||||||
|
|
||||||
|
- cross-build workarounds: disable %build section testing, use fake
|
||||||
|
gcc script to work around build system deficiencies
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
|
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
|
||||||
|
|
||||||
|
12
fillup.spec
12
fillup.spec
@ -15,6 +15,8 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: fillup
|
Name: fillup
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System/Base
|
Group: System/Base
|
||||||
@ -52,6 +54,8 @@ its variable name.
|
|||||||
# Be sure that the tests for fillup are run in
|
# Be sure that the tests for fillup are run in
|
||||||
# DEBUG mode for comparision with the references
|
# DEBUG mode for comparision with the references
|
||||||
#
|
#
|
||||||
|
# build time testing disabled when cross-compiling
|
||||||
|
%if !0%{?_crossbuild}
|
||||||
make %{?_smp_mflags} clean
|
make %{?_smp_mflags} clean
|
||||||
make %{?_smp_mflags} test OPTISPLUS="$RPM_OPT_FLAGS"
|
make %{?_smp_mflags} test OPTISPLUS="$RPM_OPT_FLAGS"
|
||||||
#
|
#
|
||||||
@ -59,7 +63,13 @@ make %{?_smp_mflags} test OPTISPLUS="$RPM_OPT_FLAGS"
|
|||||||
# optimzed version.
|
# optimzed version.
|
||||||
#
|
#
|
||||||
make %{?_smp_mflags} clean
|
make %{?_smp_mflags} clean
|
||||||
make %{?_smp_mflags} compile COMPILE_OPTION=OPTIMIZE OPTISPLUS="$RPM_OPT_FLAGS"
|
%else
|
||||||
|
# build system does not always honor CC; workaround:
|
||||||
|
echo -e "#!/bin/bash\nexec %__cc \"\$@\"" >gcc
|
||||||
|
chmod 755 gcc
|
||||||
|
export PATH=`pwd`:$PATH
|
||||||
|
%endif
|
||||||
|
make %{?_smp_mflags} compile COMPILE_OPTION=OPTIMIZE OPTISPLUS="$RPM_OPT_FLAGS" CC="%__cc"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
||||||
|
Loading…
Reference in New Issue
Block a user