SHA256
1
0
forked from pool/tcl
tcl/tcl.spec
Reinhard Max b71fe4fd24 - New version: 8.6.7:
* (bug)[c09edf] Bad caching with  custom resolver
  * (bug)[4dbdd9] Memleak in test var-8.3
  * (bug)[2bf561] Allow empty command as alias target
        *** POTENTIAL INCOMPATIBILITY ***
  * (bug)[4d5ae7] Crash in async connects host no address
  * (bug)[838e99] treat application/xml as text => http 2.8.10
  * (bug)[3cc1d9] Thread finalization crash in zippy
  * (bug)[be003d] Fix [scan 0x1 %b], [scan 0x1 %o]
  * (bug)[eb6b68] Fix stringComp-14.5
  * (bug)[b26e38] Fix zlib-7.8
  * (bug)[1ae129] Fix memleak in [history] destruction
  * (feature) Provisional Tcl 9 support in msgcat and tcltest
    => msgcat 1.6.1 => tcltest 2.4.1
  * (bug)[824752] Crash in Tcl_ListObjReplace()
  * (bug)[79614f] invalidate VFS mounts on sytem encoding change
  * (bug) TclOO fix stops crash mixing Itcl and snit
  * (update) Reconcile libtommath updates; purge unused files
        *** POTENTIAL INCOMPATIBILITY ***
  * (bug)[b87ad7] Repair drifts in timer clock
  * (bug)[39f630] Revise Tcl_LinkVar to tolerate some prefixes
        *** POTENTIAL INCOMPATIBILITY ***
  * (bug)[d0f7ba] Improper NAN optimization. expr-22.1[01]
  * (bug)[25842c] zlib stream finalization
  * (enhancement) [clock] and [encoding] are now ensembles
  * (enhancement) several [clock] subcommands bytecoded
  * (bug)[900cb0] Fix OO unexport introspection
  * (bug)[42202b] Nesting imbalance in coro injection
  * (bug)[bc4322] http package support for safe interps
  * (bug)[f34cf8] [file join a //b] => /b

OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/tcl?expand=0&rev=98
2017-08-11 15:35:11 +00:00

152 lines
4.2 KiB
RPMSpec

#
# spec file for package tcl
#
# Copyright (c) 2017 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.7
Release: 0
%define rrc %{nil}
%define TCL_MINOR %(echo %version | cut -c1-3)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: The Tcl Programming Language
# bug437293
License: TCL
Group: Development/Languages/Tcl
%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
BuildRequires: zlib-devel
# 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 s390x
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