2006-12-19 00:17:57 +01:00
|
|
|
#
|
2011-05-04 13:43:00 +02:00
|
|
|
# spec file for package tcl
|
2006-12-19 00:17:57 +01:00
|
|
|
#
|
2017-03-02 09:45:26 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:57 +01:00
|
|
|
#
|
2008-09-13 12:21:34 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:17:57 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-21 14:31:14 +01:00
|
|
|
|
2006-12-19 00:17:57 +01:00
|
|
|
Name: tcl
|
2008-04-06 04:00:20 +02:00
|
|
|
Url: http://www.tcl.tk
|
2017-08-11 17:35:11 +02:00
|
|
|
Version: 8.6.7
|
2011-12-21 12:20:09 +01:00
|
|
|
Release: 0
|
2016-08-02 19:10:37 +02:00
|
|
|
%define rrc %{nil}
|
2008-04-06 04:00:20 +02:00
|
|
|
%define TCL_MINOR %(echo %version | cut -c1-3)
|
2006-12-19 00:17:57 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Summary: The Tcl Programming Language
|
2014-09-06 12:11:32 +02:00
|
|
|
License: TCL
|
2006-12-19 00:17:57 +01:00
|
|
|
Group: Development/Languages/Tcl
|
2017-09-13 13:10:57 +02:00
|
|
|
Provides: itcl = 4.0.5
|
|
|
|
Provides: tclsh
|
|
|
|
Provides: tclsh%{TCL_MINOR}
|
|
|
|
Obsoletes: itcl < 4.0.5
|
|
|
|
# bug437293
|
2009-01-09 02:04:18 +01:00
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: tcl-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2008-04-06 04:00:20 +02:00
|
|
|
PreReq: /bin/rm
|
2017-09-13 18:51:06 +02:00
|
|
|
Source0: ftp://ftp.tcl.tk/pub/tcl/tcl8_6/%{name}%{version}%{rrc}-src.tar.gz
|
2008-04-06 04:00:20 +02:00
|
|
|
Source1: tcl-rpmlintrc
|
|
|
|
Source2: baselibs.conf
|
2008-04-09 00:53:39 +02:00
|
|
|
Source3: macros.tcl
|
2011-12-21 12:20:09 +01:00
|
|
|
BuildRequires: autoconf
|
2013-06-20 14:20:40 +02:00
|
|
|
BuildRequires: pkg-config
|
2017-08-11 10:06:48 +02:00
|
|
|
BuildRequires: zlib-devel
|
2012-11-26 10:38:42 +01:00
|
|
|
# Required for test suite:
|
|
|
|
BuildRequires: timezone
|
2006-12-19 00:17:57 +01:00
|
|
|
|
|
|
|
%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
|
2011-12-21 12:20:09 +01:00
|
|
|
Group: Development/Libraries/Tcl
|
2006-12-19 00:17:57 +01:00
|
|
|
Requires: tcl = %version
|
2009-01-09 02:04:18 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: tcl-devel-64bit
|
|
|
|
%endif
|
2014-11-12 16:59:29 +01:00
|
|
|
Obsoletes: itcl-devel < 4.0.2
|
|
|
|
Provides: itcl-devel = 4.0.2
|
2009-01-09 02:04:18 +01:00
|
|
|
#
|
2006-12-19 00:17:57 +01:00
|
|
|
|
|
|
|
%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
|
2008-04-06 04:00:20 +02:00
|
|
|
cd unix
|
2011-06-30 18:48:52 +02:00
|
|
|
autoconf
|
2008-04-06 04:00:20 +02:00
|
|
|
%configure \
|
2006-12-19 00:17:57 +01:00
|
|
|
--enable-man-symlinks \
|
2013-06-20 14:20:40 +02:00
|
|
|
--enable-man-compression=gzip \
|
|
|
|
--without-tzdata
|
2008-04-06 04:00:20 +02:00
|
|
|
%define scriptdir %_libdir/tcl
|
2013-06-20 14:20:40 +02:00
|
|
|
make %{?_smp_mflags} \
|
|
|
|
PACKAGE_DIR=%_libdir/tcl \
|
|
|
|
TCL_LIBRARY="%scriptdir/tcl%TCL_MINOR" \
|
2008-04-06 04:00:20 +02:00
|
|
|
TCL_PACKAGE_PATH="%_libdir/tcl %_datadir/tcl"
|
2013-06-20 14:20:40 +02:00
|
|
|
|
|
|
|
%check
|
2016-07-26 18:52:12 +02:00
|
|
|
cd unix
|
2008-04-06 04:00:20 +02:00
|
|
|
# Some of the regressioin tests write to $HOME, so better redirect them
|
|
|
|
mkdir home
|
|
|
|
export HOME=$PWD/home
|
2008-04-14 05:10:51 +02:00
|
|
|
# Run the testsuite to gather some data for the profile-based
|
|
|
|
# optimisation and let rpmbuild fail on unexpected test failures.
|
|
|
|
cat > known-failures <<EOF
|
2017-09-25 18:07:28 +02:00
|
|
|
async-4.2
|
|
|
|
async-4.3
|
|
|
|
chan-17.4
|
|
|
|
chan-io-53.9
|
|
|
|
clock-33.5a
|
|
|
|
clock-33.8
|
|
|
|
clock-33.8a
|
|
|
|
event-7.5
|
|
|
|
event-11.4
|
|
|
|
event-12.4
|
|
|
|
exec-19.1
|
2017-12-14 09:49:05 +01:00
|
|
|
http-3.25
|
|
|
|
interp-34.9
|
|
|
|
interp-34.13
|
2017-09-25 18:07:28 +02:00
|
|
|
interp-36.7
|
|
|
|
io-53.9
|
|
|
|
msgcat-14.2
|
|
|
|
socket_inet6-2.13
|
|
|
|
timer-1.1
|
2017-12-14 09:49:05 +01:00
|
|
|
timer-2.1
|
2017-09-25 18:07:28 +02:00
|
|
|
timer-3.2
|
|
|
|
timer-6.4
|
|
|
|
timer-6.5
|
|
|
|
thread-7.24
|
|
|
|
thread-7.25
|
|
|
|
thread-7.28
|
|
|
|
thread-7.29
|
|
|
|
thread-7.30
|
|
|
|
thread-7.31
|
2017-12-14 09:49:05 +01:00
|
|
|
thread-20.9
|
2017-09-25 18:07:28 +02:00
|
|
|
thread-21.16
|
2008-04-14 05:10:51 +02:00
|
|
|
EOF
|
2017-03-02 09:45:26 +01:00
|
|
|
%ifnarch s390x
|
2013-06-20 14:20:40 +02:00
|
|
|
make test 2>&1 | tee testresults
|
2017-09-25 18:07:28 +02:00
|
|
|
grep FAILED testresults | grep -Fvwf known-failures && exit 1
|
2009-08-06 17:01:21 +02:00
|
|
|
%endif
|
2006-12-19 00:17:57 +01:00
|
|
|
|
|
|
|
%install
|
2009-06-19 02:52:13 +02:00
|
|
|
make -C unix install install-private-headers \
|
2008-04-06 04:00:20 +02:00
|
|
|
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
|
2008-09-13 12:21:34 +02:00
|
|
|
install -D %{S:3} -m 644 %buildroot/etc/rpm/macros.tcl
|
2006-12-19 00:17:57 +01:00
|
|
|
|
|
|
|
%if %_lib == lib64
|
|
|
|
%post
|
2008-04-06 04:00:20 +02:00
|
|
|
test -L /usr/lib/tcl%TCL_MINOR && /bin/rm -f /usr/lib/tcl%TCL_MINOR
|
2006-12-19 00:17:57 +01:00
|
|
|
exit 0
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,755)
|
2008-04-06 04:00:20 +02:00
|
|
|
%doc README changes license.terms ChangeLog*
|
2006-12-19 00:17:57 +01:00
|
|
|
%docdir %_mandir/mann
|
|
|
|
%doc %_mandir/man1/*
|
|
|
|
%doc %_mandir/mann/*
|
|
|
|
%_prefix/bin/*
|
2008-04-06 04:00:20 +02:00
|
|
|
%_libdir/lib*.so
|
|
|
|
%_datadir/tcl
|
|
|
|
%scriptdir
|
2013-06-20 14:20:40 +02:00
|
|
|
%exclude %scriptdir/*/*.a
|
|
|
|
%exclude %scriptdir/*/*Config.sh
|
2008-04-06 04:00:20 +02:00
|
|
|
%exclude %scriptdir/*/tclAppInit.c
|
2008-10-22 18:52:29 +02:00
|
|
|
%config /etc/rpm/macros.tcl
|
2006-12-19 00:17:57 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %_mandir/man3/*
|
|
|
|
%_includedir/*
|
2008-04-06 04:00:20 +02:00
|
|
|
%scriptdir/*/tclAppInit.c
|
2013-06-20 14:20:40 +02:00
|
|
|
%attr(0644,root,root) %_libdir/*.a
|
|
|
|
%attr(0644,root,root) %scriptdir/*/*.a
|
|
|
|
%scriptdir/*/*Config.sh
|
|
|
|
%_libdir/*Config.sh
|
|
|
|
%_libdir/pkgconfig/*
|
2006-12-19 00:17:57 +01:00
|
|
|
|
2007-06-07 13:16:22 +02:00
|
|
|
%changelog
|