diff --git a/tcl.changes b/tcl.changes index 75d98ca..e201361 100644 --- a/tcl.changes +++ b/tcl.changes @@ -1,11 +1,3 @@ -------------------------------------------------------------------- -Sun Jul 29 18:02:41 UTC 2012 - jengelh@inai.de - -- Disable profiling on SPARC due to compiler bug [gcc #54121] -- Remove redundant tags/sections from specfile -- Parallel build with %_smp_mflags -- Remove outdated PPC obsoletes (there is no tcl-devel-XXbit built) - ------------------------------------------------------------------- Thu Jul 26 08:59:49 UTC 2012 - max@suse.com diff --git a/tcl.spec b/tcl.spec index d5888df..990739a 100644 --- a/tcl.spec +++ b/tcl.spec @@ -83,7 +83,7 @@ autoconf --enable-man-symlinks \ --enable-man-compression=gzip %define scriptdir %_libdir/tcl -MAKE='make %{?_smp_mflags} +MAKE='make %{?jobs:-j%jobs} TCL_LIBRARY="%scriptdir/tcl%TCL_MINOR" TCL_PACKAGE_PATH="%_libdir/tcl %_datadir/tcl" %ifnarch hppa @@ -93,10 +93,8 @@ MAKE='make %{?_smp_mflags} %endif LDFLAGS_OPTIMIZE="%optflags $PFLAGS" SHLIB_LD="%__cc -shared %optflags $PFLAGS"' -%ifnarch %sparc # Build with instrumentation for profiling PFLAGS="%{?cflags_profile_generate}" -%endif eval $MAKE # Some of the regressioin tests write to $HOME, so better redirect them mkdir home @@ -128,7 +126,10 @@ ln -sf tclsh%TCL_MINOR %buildroot%_prefix/bin/tclsh mkdir -p %buildroot%_datadir/tcl install -D %{S:3} -m 644 %buildroot/etc/rpm/macros.tcl +%clean +rm -rf %buildroot %if %_lib == lib64 + %post test -L /usr/lib/tcl%TCL_MINOR && /bin/rm -f /usr/lib/tcl%TCL_MINOR exit 0