SHA256
3
0
forked from pool/tcl
tcl/tcl.spec
Reinhard Max d07c36a660 - New version 8.6.6:
* (bug)[803042] mem leak due to reference cycle.
  * (bug)[bbc304] reflected watch race condition.
  * (bug)[fadc99] compile-5.3.
  * (enhancement)[1a25fd] compile [variable ${ns}::v]
  * (bug)[1af8de] crash in compiled [string replace]
  * (bug)[d30718] segv in notifier finalize
  * (enhancement)[7d0db7] parallel make
  * [f12535] enable test bindings customization
  * (bug)[47ac84] compiled [lreplace] fixes
        *** POTENTIAL INCOMPATIBILITY ***
  * (bug)[866368] RE \w includes 'Punctuation Connector'
  * [07d13d] Restore TclBlend support lost in 8.6.1
  * (bug)[3154ea] Mem corruption in assembler exceptions
  * (bug) registry package support any Unicode env
    => registry 1.3.2
  * (bug)[f7d4e] [namespace delete] performance
  * (TIP 447) execution time verbosity option
    => tcltest 2.4.0
  * (bug)[16828b] crash due to [vwait] trace undo fail
  * (enhancement)[4b61af] good [info frame] from more cases.
  * (bug)[c383eb] crash in [glob -path a]
  * (update) Update Unicode data to 9.0 (nijtmans)
        *** POTENTIAL INCOMPATIBILITY ***
  * (bug)[16896d] Tcl_DString tolerate append to self.
  * (bug)[d55322] crash in [dict update].
  * (bug)[dd260a] crash in [chan configure -dictionary].
  * (bug)[f961d7] usage message with parameters with spaces.
        *** POTENTIAL INCOMPATIBILITY ***
  * (enhancement)[09fabc] Sort order of -relateddir.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/tcl?expand=0&rev=91
2016-07-26 16:52:12 +00:00

152 lines
4.2 KiB
RPMSpec

#
# spec file for package tcl
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: tcl
Url: http://www.tcl.tk
Version: 8.6.6
Release: 0
%define rrc rc2
#%{nil}
%define TCL_MINOR %(echo %version | cut -c1-3)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: The Tcl Programming Language
License: TCL
Group: Development/Languages/Tcl
# bug437293
%ifarch ppc64
Obsoletes: tcl-64bit
%endif
#
Provides: tclsh
Provides: tclsh%{TCL_MINOR}
Obsoletes: itcl < 4.0.2
Provides: itcl = 4.0.2
PreReq: /bin/rm
Source0: ftp://ftp.tcl.tk/pub/tcl/tcl8_6/%{name}%{version}%{rrc}-src.tar.gz
Source1: tcl-rpmlintrc
Source2: baselibs.conf
Source3: macros.tcl
BuildRequires: autoconf
BuildRequires: pkg-config
# Required for test suite:
BuildRequires: timezone
%description
Tcl (Tool Command Language) is a very powerful but easy to learn
dynamic programming language, suitable for a very wide range of uses,
including web and desktop applications, networking, administration,
testing and many more. Open source and business-friendly, Tcl is a
mature yet evolving language that is truly cross platform, easily
deployed and highly extensible.
For more information on Tcl see http://www.tcl.tk and
http://wiki.tcl.tk .
%package devel
Summary: Header Files and C API Documentation for Tcl
Group: Development/Libraries/Tcl
Requires: tcl = %version
# bug437293
%ifarch ppc64
Obsoletes: tcl-devel-64bit
%endif
Obsoletes: itcl-devel < 4.0.2
Provides: itcl-devel = 4.0.2
#
%description devel
This package contains header files and documentation needed for writing
Tcl extensions in compiled languages like C, C++, etc., or for
embedding the Tcl interpreter in programs written in such languages.
This package is not needed for writing extensions or applications in
the Tcl language itself.
%prep
%setup -q -n %name%version
%build
cd unix
autoconf
%configure \
--enable-man-symlinks \
--enable-man-compression=gzip \
--without-tzdata
%define scriptdir %_libdir/tcl
make %{?_smp_mflags} \
PACKAGE_DIR=%_libdir/tcl \
TCL_LIBRARY="%scriptdir/tcl%TCL_MINOR" \
TCL_PACKAGE_PATH="%_libdir/tcl %_datadir/tcl"
%check
cd unix
# Some of the regressioin tests write to $HOME, so better redirect them
mkdir home
export HOME=$PWD/home
# Run the testsuite to gather some data for the profile-based
# optimisation and let rpmbuild fail on unexpected test failures.
cat > known-failures <<EOF
EOF
%ifnarch %arm
make test 2>&1 | tee testresults
grep FAILED testresults | grep -Fqvwf known-failures && exit 1
%endif
%install
make -C unix install install-private-headers \
INSTALL_ROOT=%buildroot \
TCL_LIBRARY="%scriptdir/tcl%TCL_MINOR"
rm -f %buildroot%scriptdir/tcl%TCL_MINOR/ldAix
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
%if %_lib == lib64
%post
test -L /usr/lib/tcl%TCL_MINOR && /bin/rm -f /usr/lib/tcl%TCL_MINOR
exit 0
%endif
%files
%defattr(-,root,root,755)
%doc README changes license.terms ChangeLog*
%docdir %_mandir/mann
%doc %_mandir/man1/*
%doc %_mandir/mann/*
%_prefix/bin/*
%_libdir/lib*.so
%_datadir/tcl
%scriptdir
%exclude %scriptdir/*/*.a
%exclude %scriptdir/*/*Config.sh
%exclude %scriptdir/*/tclAppInit.c
%config /etc/rpm/macros.tcl
%files devel
%defattr(-,root,root)
%doc %_mandir/man3/*
%_includedir/*
%scriptdir/*/tclAppInit.c
%attr(0644,root,root) %_libdir/*.a
%attr(0644,root,root) %scriptdir/*/*.a
%scriptdir/*/*Config.sh
%_libdir/*Config.sh
%_libdir/pkgconfig/*
%changelog