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
|
|
|
#
|
2016-03-03 11:27:28 +01:00
|
|
|
# Copyright (c) 2016 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
|
2016-03-03 11:27:28 +01:00
|
|
|
Version: 8.6.5
|
2011-12-21 12:20:09 +01:00
|
|
|
Release: 0
|
2014-09-06 13:47:30 +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
|
2009-01-09 02:04:18 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: tcl-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2012-07-24 12:24:48 +02:00
|
|
|
Provides: tclsh
|
|
|
|
Provides: tclsh%{TCL_MINOR}
|
2014-11-12 16:59:29 +01:00
|
|
|
Obsoletes: itcl < 4.0.2
|
|
|
|
Provides: itcl = 4.0.2
|
2008-04-06 04:00:20 +02:00
|
|
|
PreReq: /bin/rm
|
2014-09-06 12:23:51 +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
|
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
|
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
|
|
|
|
httpold-4.12
|
|
|
|
mathop-25.14
|
|
|
|
EOF
|
2009-08-06 17:01:21 +02:00
|
|
|
%ifnarch %arm
|
2013-06-20 14:20:40 +02:00
|
|
|
make test 2>&1 | tee testresults
|
2008-10-22 18:52:29 +02:00
|
|
|
grep FAILED testresults | grep -Fqvwf 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
|