diff --git a/libxml2.spec b/libxml2.spec index a6d422d..5d4d89f 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -64,31 +64,34 @@ at parse time or later once the document has been modified. # try to use compiler profiling, based on Arjan van de Ven # initial test spec. This really doesn't work okay for most tests done. # -GCC_VERSION=`gcc --version | grep "^gcc" | awk '{ print $3 }' | sed 's+\([0-9]\)\.\([0-9]\)\..*+\1\2+'` -if [ $GCC_VERSION -ge 34 ] -then - PROF_GEN='-fprofile-generate' - PROF_USE='-fprofile-use' -fi - -if [ "$PROF_GEN" != "" ] -then - # First generate a profiling version - CFLAGS="${RPM_OPT_FLAGS} ${PROF_GEN}" %configure - make - # Run a few sampling - make dba100000.xml - ./xmllint --noout dba100000.xml - ./xmllint --stream dba100000.xml - ./xmllint --noout --valid test/valid/REC-xml-19980210.xml - ./xmllint --stream --valid test/valid/REC-xml-19980210.xml - # Then generate code based on profile - CFLAGS="${RPM_OPT_FLAGS} ${PROF_USE}" %configure - make -else - %configure - make -fi +# Well except it's just broken most of the time. +#GCC_VERSION=`gcc --version | grep "^gcc" | awk '{ print $3 }' | sed 's+\([0-9]\)\.\([0-9]\)\..*+\1\2+'` +#if [ $GCC_VERSION -ge 34 ] +#then +# PROF_GEN='-fprofile-generate' +# PROF_USE='-fprofile-use' +#fi +# +#if [ "$PROF_GEN" != "" ] +#then +# # First generate a profiling version +# CFLAGS="${RPM_OPT_FLAGS} ${PROF_GEN}" %configure +# make +# # Run a few sampling +# make dba100000.xml +# ./xmllint --noout dba100000.xml +# ./xmllint --stream dba100000.xml +# ./xmllint --noout --valid test/valid/REC-xml-19980210.xml +# ./xmllint --stream --valid test/valid/REC-xml-19980210.xml +# # Then generate code based on profile +# CFLAGS="${RPM_OPT_FLAGS} ${PROF_USE}" %configure +# make +#else +# %configure +# make +#fi +%configure +make gzip -9 ChangeLog %install @@ -97,7 +100,8 @@ rm -fr %{buildroot} %makeinstall (cd doc/examples ; make clean ; rm -rf .deps) gzip -9 doc/libxml2-api.xml -rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la \ + $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/libxml2mod*a %clean rm -fr %{buildroot}