diff -r d5a681e1cbad -r fa4856f209c2 stlport/stlport.spec --- a/stlport/stlport.spec Thu Jan 08 01:12:39 2009 +0100 +++ b/stlport/stlport.spec Thu Jan 08 01:13:59 2009 +0100 @@ -31,14 +31,15 @@ Class: EVAL Group: Language License: STLport -Version: 5.0.2 -Release: 20080101 +Version: 5.2.1 +Release: 20090106 # package options %option with_debug yes # list of sources Source0: http://switch.dl.sourceforge.net/stlport/STLport-%{version}.tar.gz +Patch0: stlport.patch # build information Prefix: %{l_prefix} @@ -66,12 +67,19 @@ } %prep - %setup -q -n STLport + %setup -q -n STLport-%{version} + %patch -p0 %{l_shtool} subst \ - -e 's;\(define _STLP_NATIVE_INCLUDE_PATH\).*;\1 %{l_prefix}/include/g++;' \ - stlport/config/stl_gcc.h + -e 's;^\(# if defined (__QNXNTO__) || ( defined(__GNUC__)\) && defined(__APPLE__) );\1;' \ + src/num_put_float.cpp %{l_shtool} subst \ - -e 's;^\(# if defined (__QNXNTO__) || ( defined(__GNUC__)\) && defined(__APPLE__);\1;' \ + -e 's/__f->_file;/fileno((FILE *)__f);/g' \ + src/_stdio_file.h + %{l_shtool} subst \ + -e 's;\(_STLP_STATIC_ASSERT( sizeof(long double).*\);//\1;' \ + src/num_get_float.cpp + %{l_shtool} subst \ + -e 's;( \(defined(__GNUC__)\);\1;' \ src/num_put_float.cpp %build @@ -79,7 +87,7 @@ %if "%{with_debug}" == "yes" buildtargets="$buildtargets dbg-static stldbg-static" %endif - cd build/lib && %{l_make} %{l_mflags} -f gcc.mak $buildtargets + cd build/lib && %{l_make} %{l_mflags -O} -f gcc.mak $buildtargets %install rm -rf $RPM_BUILD_ROOT