From d4d7effa6b058b9c93169baa3bc54e7dd1435c55 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Thu, 25 Jul 2013 18:53:13 -0400 Subject: [PATCH] Reindent functions and multi-line commands. --- glibc.spec | 124 ++++++++++++++++++++++++++++------------------------- 1 file changed, 66 insertions(+), 58 deletions(-) diff --git a/glibc.spec b/glibc.spec index f231a29..3dd6f85 100644 --- a/glibc.spec +++ b/glibc.spec @@ -626,36 +626,36 @@ AddOns=,rtkaio$AddOns ############################################################################## build() { -builddir=build-%{target}${1:+-$1} -${1+shift} -rm -rf $builddir -mkdir $builddir -pushd $builddir -build_CFLAGS="$BuildFlags -g -O3 $*" -# Some configure checks can spuriously fail for some architectures if -# unwind info is present -configure_CFLAGS="$build_CFLAGS -fno-asynchronous-unwind-tables" -../configure CC="$GCC" CXX="$GXX" CFLAGS="$configure_CFLAGS" \ - --prefix=%{_prefix} \ - --enable-add-ons=ports,nptl$AddOns \ - --with-headers=%{_prefix}/include $EnableKernel --enable-bind-now \ - --build=%{target} \ + builddir=build-%{target}${1:+-$1} + ${1+shift} + rm -rf $builddir + mkdir $builddir + pushd $builddir + build_CFLAGS="$BuildFlags -g -O3 $*" + # Some configure checks can spuriously fail for some architectures if + # unwind info is present + configure_CFLAGS="$build_CFLAGS -fno-asynchronous-unwind-tables" + ../configure CC="$GCC" CXX="$GXX" CFLAGS="$configure_CFLAGS" \ + --prefix=%{_prefix} \ + --enable-add-ons=ports,nptl$AddOns \ + --with-headers=%{_prefix}/include $EnableKernel --enable-bind-now \ + --build=%{target} \ %ifarch %{multiarcharches} - --enable-multi-arch \ + --enable-multi-arch \ %endif - --enable-obsolete-rpc \ + --enable-obsolete-rpc \ %ifarch %{systemtaparches} - --enable-systemtap \ + --enable-systemtap \ %endif %ifarch ppc64p7 - --with-cpu=power7 \ + --with-cpu=power7 \ %endif - --enable-lock-elision \ - --disable-profile --enable-nss-crypt || -{ cat config.log; false; } + --enable-lock-elision \ + --disable-profile --enable-nss-crypt || + { cat config.log; false; } -make %{?_smp_mflags} -r CFLAGS="$build_CFLAGS" %{silentrules} -popd + make %{?_smp_mflags} -r CFLAGS="$build_CFLAGS" %{silentrules} + popd } ############################################################################## @@ -679,22 +679,22 @@ build nosegneg -mno-tls-direct-seg-refs ############################################################################## %if %{buildpower6} ( -platform=`LD_SHOW_AUXV=1 /bin/true | sed -n 's/^AT_PLATFORM:[[:blank:]]*//p'` -if [ "$platform" != power6 ]; then - mkdir -p power6emul/{lib,lib64} - $GCC -shared -O2 -fpic -o power6emul/%{_lib}/power6emul.so releng/power6emul.c -Wl,-z,initfirst + platform=`LD_SHOW_AUXV=1 /bin/true | sed -n 's/^AT_PLATFORM:[[:blank:]]*//p'` + if [ "$platform" != power6 ]; then + mkdir -p power6emul/{lib,lib64} + $GCC -shared -O2 -fpic -o power6emul/%{_lib}/power6emul.so releng/power6emul.c -Wl,-z,initfirst %ifarch ppc - gcc -shared -nostdlib -O2 -fpic -m64 -o power6emul/lib64/power6emul.so -xc - workaround.filelist find_debuginfo_args="$find_debuginfo_args \ - -l common.filelist -l utils.filelist -l nscd.filelist -l workaround.filelist \ - -p '.*/(sbin|libexec)/.*' \ - -o debuginfocommon.filelist \ - -l rpm.filelist -l nosegneg.filelist \ + -l common.filelist \ + -l utils.filelist \ + -l nscd.filelist \ + -l workaround.filelist \ + -p '.*/(sbin|libexec)/.*' \ + -o debuginfocommon.filelist \ + -l rpm.filelist \ + -l nosegneg.filelist \ " %endif -eval /usr/lib/rpm/find-debuginfo.sh "$find_debuginfo_args" -o debuginfo.filelist +eval /usr/lib/rpm/find-debuginfo.sh \ + "$find_debuginfo_args" \ + -o debuginfo.filelist # List all of the *.a archives in the debug directory. list_debug_archives() { - local dir=%{_prefix}/lib/debug%{_prefix}/%{_lib} - find $RPM_BUILD_ROOT$dir -name "*.a" -printf "$dir/%%P\n" + local dir=%{_prefix}/lib/debug%{_prefix}/%{_lib} + find $RPM_BUILD_ROOT$dir -name "*.a" -printf "$dir/%%P\n" } %ifarch %{debuginfocommonarches}