- Version 8.6.15rc1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/tcl?expand=0&rev=161
This commit is contained in:
commit
d1d92ae336
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
baselibs.conf
Normal file
3
baselibs.conf
Normal file
@ -0,0 +1,3 @@
|
||||
tcl
|
||||
+/usr/lib(64)?/tcl/.*
|
||||
requires -tcl-<targettype>
|
14
macros.tcl
Normal file
14
macros.tcl
Normal file
@ -0,0 +1,14 @@
|
||||
# RPM macros for Tcl
|
||||
|
||||
# The minor version of Tcl
|
||||
%tcl_version %(echo 'puts [info tclversion]'|tclsh)
|
||||
|
||||
# compiled packges should go here
|
||||
%tcl_archdir %(echo 'puts [lindex $tcl_pkgPath 0]'|tclsh)
|
||||
|
||||
# script-only packages should go here
|
||||
%tcl_noarchdir %(echo 'puts [lindex $tcl_pkgPath 1]'|tclsh)
|
||||
|
||||
# tclscriptdir is deprecated, please use tcl_archdir or
|
||||
# tcl_noarchdir instead, depending on the type of your package
|
||||
%tclscriptdir %tcl_noarchdir
|
3
tcl-rpmlintrc
Normal file
3
tcl-rpmlintrc
Normal file
@ -0,0 +1,3 @@
|
||||
addFilter("no-soname")
|
||||
addFilter("files-duplicate")
|
||||
addFilter("bin-sh-syntax-error")
|
1643
tcl.changes
Normal file
1643
tcl.changes
Normal file
File diff suppressed because it is too large
Load Diff
212
tcl.spec
Normal file
212
tcl.spec
Normal file
@ -0,0 +1,212 @@
|
||||
#
|
||||
# spec file for package tcl
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%if 0%{!?_rpmmacrodir:1}
|
||||
%define _rpmmacrodir %{_rpmconfigdir}/macros.d
|
||||
%endif
|
||||
|
||||
Name: tcl
|
||||
URL: http://www.tcl.tk
|
||||
Version: 8.6.15
|
||||
Release: 0
|
||||
%define rrc %{nil}rc1
|
||||
%define TCL_MINOR %(echo %version | cut -c1-3)
|
||||
%define itclver 4.3.0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Summary: The Tcl Programming Language
|
||||
License: TCL
|
||||
Group: Development/Languages/Tcl
|
||||
Provides: itcl = %itclver
|
||||
Provides: tclsh
|
||||
Provides: tclsh%{TCL_MINOR}
|
||||
Obsoletes: itcl < %itclver
|
||||
# Require the extension from the SQLite package instead of shipping
|
||||
# the embedded copy, which might be outdated.
|
||||
Requires: sqlite3-tcl
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
Obsoletes: tcl-64bit
|
||||
%endif
|
||||
#
|
||||
PreReq: /bin/rm
|
||||
Source0: http://prdownloads.sourceforge.net/tcl/%{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 < %itclver
|
||||
Provides: itcl-devel = %itclver
|
||||
#
|
||||
|
||||
%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
|
||||
if ! test -d pkgs/itcl%itclver; then
|
||||
: New itcl version: pkgs/itcl* . Please update the %%itclver macro acordingly.
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# The SQLite extension is provided by the sqlite3 package,
|
||||
# so don't build it here.
|
||||
rm -r pkgs/sqlite3.*
|
||||
|
||||
%build
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
%define scriptdir %_libdir/tcl
|
||||
export TCL_PACKAGE_PATH="%scriptdir %_datadir/tcl"
|
||||
export TCL_LIBRARY="%scriptdir/tcl%TCL_MINOR"
|
||||
cd unix
|
||||
autoconf
|
||||
%configure \
|
||||
--enable-man-symlinks \
|
||||
--enable-man-compression=gzip \
|
||||
--without-tzdata
|
||||
make %{?_smp_mflags} \
|
||||
PACKAGE_DIR="%scriptdir"
|
||||
|
||||
%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
|
||||
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
|
||||
http-3.25
|
||||
interp-34.9
|
||||
interp-34.13
|
||||
interp-36.7
|
||||
io-53.9
|
||||
msgcat-14.2
|
||||
socket_inet6-2.13
|
||||
timer-1.1
|
||||
timer-2.1
|
||||
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
|
||||
thread-20.9
|
||||
thread-21.16
|
||||
%ifarch riscv64
|
||||
binary-40.3
|
||||
%endif
|
||||
%if 0%{?qemu_user_space_build}
|
||||
socket-14.15
|
||||
thread-16.2
|
||||
%endif
|
||||
EOF
|
||||
%ifnarch s390 s390x
|
||||
make test 2>&1 | tee testresults
|
||||
grep FAILED testresults | grep -Fvwf known-failures && exit 1
|
||||
%endif
|
||||
exit 0
|
||||
|
||||
%install
|
||||
make -C unix install install-private-headers \
|
||||
INSTALL_ROOT=%buildroot
|
||||
rm -f %buildroot%scriptdir/tcl%TCL_MINOR/ldAix
|
||||
ln -sf tclsh%TCL_MINOR %buildroot%_prefix/bin/tclsh
|
||||
ln -sf tclsh.1.gz %buildroot%_mandir/man1/tclsh%TCL_MINOR.1.gz
|
||||
mkdir -p %buildroot%_datadir/tcl
|
||||
install -D %{S:3} -m 644 %buildroot%_rpmmacrodir/macros.tcl
|
||||
|
||||
# The information in TCL_LIBS is not needed for shared libraries
|
||||
# and we don't support static linking.
|
||||
sed -i "/^TCL_LIBS=/s/'.*'$//" %buildroot%_libdir/tclConfig.sh
|
||||
sed -i "/^Libs.private: /s/ .*$//" %buildroot%_libdir/pkgconfig/tcl.pc
|
||||
|
||||
%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.md 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
|
||||
%_rpmmacrodir/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
|
3
tcl8.6.14-src.tar.gz
Normal file
3
tcl8.6.14-src.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5880225babf7954c58d4fb0f5cf6279104ce1cd6aa9b71e9a6322540e1c4de66
|
||||
size 11627322
|
3
tcl8.6.15rc1-src.tar.gz
Normal file
3
tcl8.6.15rc1-src.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:80700715368d0e5cd1e54169135916b049472dadabe66ee94dcfdebb68a2e68c
|
||||
size 11766055
|
Loading…
Reference in New Issue
Block a user