2013-07-15 09:11:36 +02:00
|
|
|
#
|
2014-03-20 09:04:55 +01:00
|
|
|
# spec file for package jimtcl
|
|
|
|
#
|
2023-06-03 17:01:51 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2014-03-20 09:04:55 +01: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.
|
|
|
|
|
2022-09-10 09:56:07 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-15 09:11:36 +02:00
|
|
|
#
|
|
|
|
|
2022-09-10 09:56:07 +02:00
|
|
|
|
2023-06-03 17:01:51 +02:00
|
|
|
%define libjim_name libjim0_82
|
2013-07-15 09:11:36 +02:00
|
|
|
Name: jimtcl
|
2023-06-03 17:01:51 +02:00
|
|
|
Version: 0.82
|
2013-07-15 09:11:36 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A small embeddable Tcl interpreter
|
2014-03-20 09:04:55 +01:00
|
|
|
License: BSD-2-Clause
|
2013-07-15 09:11:36 +02:00
|
|
|
Group: Development/Languages/Tcl
|
2022-09-10 09:56:07 +02:00
|
|
|
URL: http://jim.tcl.tk
|
|
|
|
Source: https://github.com/msteveb/jimtcl/archive/%{version}/%{name}-%{version}.tar.gz
|
2023-06-03 17:01:51 +02:00
|
|
|
Patch0: exclude_mtime_aiostat_test_on_32bit.patch
|
2013-07-15 09:11:36 +02:00
|
|
|
BuildRequires: asciidoc
|
2022-09-10 09:56:07 +02:00
|
|
|
BuildRequires: hostname
|
2023-06-03 17:01:51 +02:00
|
|
|
BuildRequires: libopenssl-devel
|
2013-07-15 09:11:36 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Jim is an opensource small-footprint implementation of the Tcl programming
|
|
|
|
language. It implements a large subset of Tcl and adds new features like
|
|
|
|
references with garbage collection, closures, built-in Object Oriented
|
|
|
|
Programming system, Functional Programming commands, first-class arrays and
|
|
|
|
UTF-8 support.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/Tcl
|
2014-03-30 12:33:34 +02:00
|
|
|
Requires: %{libjim_name} = %{version}
|
2022-09-10 09:56:07 +02:00
|
|
|
Requires: %{name} = %{version}
|
2013-07-15 09:11:36 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2014-03-30 12:33:34 +02:00
|
|
|
%package -n %{libjim_name}
|
|
|
|
Summary: A small embeddable Tcl interpreter
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libjim_name}
|
|
|
|
Jim is an opensource small-footprint implementation of the Tcl programming language.
|
|
|
|
|
2013-07-15 09:11:36 +02:00
|
|
|
%prep
|
2023-06-03 17:01:51 +02:00
|
|
|
%autosetup -N -n %{name}-%{version}
|
|
|
|
# exclude aio-stat-1.1 mtime test on 32bit arch
|
2023-07-16 11:41:20 +02:00
|
|
|
%ifarch i586 %arm
|
2023-06-03 17:01:51 +02:00
|
|
|
%autopatch -p1
|
|
|
|
%endif
|
|
|
|
# exclude SSL test because build env does not have internet connectivity
|
|
|
|
rm tests/ssl.test
|
2022-09-10 09:56:07 +02:00
|
|
|
|
2013-07-15 09:11:36 +02:00
|
|
|
iconv --from=ISO-8859-1 --to=UTF-8 AUTHORS > AUTHORS.new ; mv AUTHORS.new AUTHORS
|
|
|
|
iconv --from=ISO-8859-1 --to=UTF-8 LICENSE > LICENSE.new ; mv LICENSE.new LICENSE
|
|
|
|
|
|
|
|
%build
|
|
|
|
#configure is not able to locate the needed binaries, so specify it manualy
|
|
|
|
export CC=gcc
|
|
|
|
export LD=ld
|
|
|
|
export AR=ar
|
|
|
|
export RANLIB=ranlib
|
|
|
|
export STRIP=true
|
2023-06-03 17:01:51 +02:00
|
|
|
%configure --shared --disable-option-checking
|
|
|
|
|
|
|
|
%make_build
|
2013-07-15 09:11:36 +02:00
|
|
|
|
|
|
|
%check
|
2023-06-03 17:01:51 +02:00
|
|
|
%make_build test
|
2013-07-15 09:11:36 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2022-09-10 09:56:07 +02:00
|
|
|
rm -rf %{buildroot}%{_prefix}/docs
|
2013-07-15 09:11:36 +02:00
|
|
|
|
2014-03-30 12:33:34 +02:00
|
|
|
%post -n %{libjim_name} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libjim_name} -p /sbin/ldconfig
|
2013-07-15 09:11:36 +02:00
|
|
|
|
|
|
|
%files
|
2022-09-10 09:56:07 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS README
|
2013-07-15 09:11:36 +02:00
|
|
|
%{_bindir}/jimsh
|
2022-09-10 09:56:07 +02:00
|
|
|
%{_bindir}/jimdb
|
2014-03-30 12:33:34 +02:00
|
|
|
|
|
|
|
%files -n %{libjim_name}
|
2022-09-10 09:56:07 +02:00
|
|
|
%license LICENSE
|
2013-07-15 09:11:36 +02:00
|
|
|
%{_libdir}/libjim.so.*
|
|
|
|
|
|
|
|
%files devel
|
2022-09-10 09:56:07 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc DEVELOPING README.metakit README.namespaces README.oo README.utf-8 STYLE Tcl.html
|
2013-07-15 09:11:36 +02:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_bindir}/build-jim-ext
|
|
|
|
%{_libdir}/libjim.so
|
2022-09-10 09:56:07 +02:00
|
|
|
%{_libdir}/pkgconfig/jimtcl.pc
|
2023-07-16 11:41:20 +02:00
|
|
|
%dir %{_libdir}/jim
|
|
|
|
%{_libdir}/jim/README.extensions
|
|
|
|
%{_libdir}/jim/tcltest.tcl
|
2013-07-15 09:11:36 +02:00
|
|
|
|
|
|
|
%changelog
|