[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/libxml2/devel libxml2.spec,1.24,1.25



Author: veillard

Update of /cvs/dist/rpms/libxml2/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv1975

Modified Files:
	libxml2.spec 
Log Message:
Removed -fprofile-generate/-fprofile-use optimization it breaks,
Removed static lib from python, Daniel



Index: libxml2.spec
===================================================================
RCS file: /cvs/dist/rpms/libxml2/devel/libxml2.spec,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- libxml2.spec	10 Jul 2005 23:09:25 -0000	1.24
+++ libxml2.spec	10 Jul 2005 23:36:49 -0000	1.25
@@ -64,31 +64,34 @@
 # try to use compiler profiling, based on Arjan van de Ven <arjanv redhat com>
 # 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 @@
 %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}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]