SHA256
1
0
forked from pool/tcl

Accepting request 129224 from home:jengelh:branches:devel:languages:tcl

- 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)

OBS-URL: https://build.opensuse.org/request/show/129224
OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/tcl?expand=0&rev=55
This commit is contained in:
Ismail Dönmez 2012-08-07 19:33:05 +00:00 committed by Git OBS Bridge
parent 9247fb5600
commit 72998eecab
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
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

View File

@ -83,7 +83,7 @@ autoconf
--enable-man-symlinks \
--enable-man-compression=gzip
%define scriptdir %_libdir/tcl
MAKE='make %{?jobs:-j%jobs}
MAKE='make %{?_smp_mflags}
TCL_LIBRARY="%scriptdir/tcl%TCL_MINOR"
TCL_PACKAGE_PATH="%_libdir/tcl %_datadir/tcl"
%ifnarch hppa
@ -93,8 +93,10 @@ MAKE='make %{?jobs:-j%jobs}
%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
@ -126,10 +128,7 @@ 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