From febcfbbbdf90a8ea5c8a0c25cb6e92b908e52d20bd3fa553601cfc8283bbc7bf Mon Sep 17 00:00:00 2001
From: Reinhard Max <max@suse.com>
Date: Thu, 9 Aug 2012 10:43:25 +0000
Subject: [PATCH] Removing the last checkin, because I hadn't authorized it and
 the author didn't asnwer my question regarding the PPC obsoletes removal.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/tcl?expand=0&rev=57
---
 tcl.changes | 8 --------
 tcl.spec    | 7 ++++---
 2 files changed, 4 insertions(+), 11 deletions(-)

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