|
| 1 | +%bcond_without tests |
| 2 | + |
1 | 3 | Vendor: Microsoft Corporation |
2 | 4 | Distribution: Azure Linux |
3 | 5 | Name: jimtcl |
4 | | -Version: 0.78 |
5 | | -Release: 5%{?dist} |
| 6 | +Version: 0.83 |
| 7 | +Release: 3%{?dist} |
6 | 8 | Summary: A small embeddable Tcl interpreter |
7 | 9 |
|
8 | | -License: BSD |
| 10 | +License: BSD-2-Clause-Views |
9 | 11 | URL: http://jim.tcl.tk |
10 | | -Source0: https://github.com/msteveb/%{name}/archive/%{version}/%{name}-%{version}.tar.gz |
11 | | -Patch0: jimtcl-fix_doc_paths.patch |
| 12 | +Source: https://github.com/msteveb/%{name}/archive/%{version}/%{name}-%{version}.tar.gz |
| 13 | +# readline expects applications to include stdio.h, jimtcl was not |
| 14 | +Patch: https://github.com/msteveb/jimtcl/commit/35e0e1f9b1f018666e5170a35366c5fc3b97309c.patch#/jimtcl-stdio-for-readline.diff |
12 | 15 |
|
13 | | -BuildRequires: gcc |
| 16 | +BuildRequires: gcc-c++ |
14 | 17 | BuildRequires: asciidoc |
15 | | - |
16 | | -%description |
17 | | -Jim is an opensource small-footprint implementation of the Tcl programming |
| 18 | +BuildRequires: make |
| 19 | +# Extension dependencies |
| 20 | +BuildRequires: pkgconfig(openssl) |
| 21 | +BuildRequires: pkgconfig(zlib) |
| 22 | +%if %{with tests} |
| 23 | +BuildRequires: hostname |
| 24 | +%endif |
| 25 | + |
| 26 | +%global _description %{expand: |
| 27 | +Jim is an opensource small-footprint implementation of the Tcl programming |
18 | 28 | language. It implements a large subset of Tcl and adds new features like |
19 | 29 | references with garbage collection, closures, built-in Object Oriented |
20 | 30 | Programming system, Functional Programming commands, first-class arrays and |
21 | | -UTF-8 support. |
| 31 | +UTF-8 support.} |
| 32 | + |
| 33 | +%description %{_description} |
| 34 | + |
22 | 35 |
|
23 | 36 | %package devel |
24 | 37 | Summary: Development files for %{name} |
25 | 38 | Requires: %{name}%{?_isa} = %{version}-%{release} |
26 | 39 |
|
27 | | -%description devel |
| 40 | +%description devel %{_description} |
| 41 | + |
28 | 42 | The %{name}-devel package contains libraries and header files for |
29 | 43 | developing applications that use %{name}. |
30 | 44 |
|
31 | | -%prep |
32 | | -%setup -q |
33 | | -%patch 0 |
34 | 45 |
|
| 46 | +%prep |
| 47 | +%autosetup |
35 | 48 | rm -rf sqlite3 |
36 | 49 |
|
37 | 50 | %build |
38 | 51 | #configure is not able to locate the needed binaries, so specify it manualy |
39 | | -export CC=gcc |
40 | | -export LD=ld |
| 52 | +# export CC=gcc |
| 53 | +# export LD=ld |
41 | 54 | export AR=ar |
42 | 55 | export RANLIB=ranlib |
43 | 56 | export STRIP=strip |
44 | 57 |
|
45 | | -%configure --full --shared --disable-option-checking |
46 | | -make %{?_smp_mflags} |
| 58 | +# compile extensions that are disabled by default |
| 59 | +# as modules |
| 60 | +# see ./configure --extinfo for list |
| 61 | +%configure --shared --disable-option-checking \ |
| 62 | + --allextmod \ |
| 63 | +%ifarch s390x # zlib test fails on s390x |
| 64 | + --without-ext=zlib \ |
| 65 | +%endif |
| 66 | + --docdir=%{_datadir}/doc/%{name} |
| 67 | +%make_build |
47 | 68 |
|
48 | | -%check |
49 | | -make test |
50 | 69 |
|
51 | 70 | %install |
52 | | -%make_install |
53 | | -rm -rf %{buildroot}/%{_datadir}/doc/%{name} |
54 | | -rm -rf %{buildroot}/%{_libdir}/jim/tcltest.tcl |
55 | | -pushd %{buildroot}/%{_libdir}/ |
56 | | -ln -s libjim.so.* libjim.so |
57 | | -popd |
| 71 | +%make_install INSTALL_DOCS=nodocs |
| 72 | +rm %{buildroot}/%{_libdir}/jim/README.extensions |
| 73 | + |
| 74 | + |
| 75 | +%if %{with tests} |
| 76 | +%check |
| 77 | +# remove tests that require network access |
| 78 | +rm tests/ssl.test |
| 79 | +make test |
| 80 | +%endif |
58 | 81 |
|
59 | | -%ldconfig_scriptlets |
60 | 82 |
|
61 | 83 | %files |
62 | | -%doc LICENSE AUTHORS README Tcl.html |
| 84 | +%license LICENSE |
| 85 | +%doc AUTHORS README README.* |
| 86 | +%doc EastAsianWidth.txt |
| 87 | +%doc %{_datadir}/doc/%{name}/Tcl.html |
| 88 | +%{_bindir}/jimdb |
63 | 89 | %{_bindir}/jimsh |
| 90 | +%dir %{_libdir}/jim |
| 91 | +%{_libdir}/jim/*.tcl |
| 92 | +%{_libdir}/jim/*.so |
64 | 93 | %{_libdir}/libjim.so.* |
65 | 94 |
|
| 95 | + |
66 | 96 | %files devel |
67 | | -%doc DEVELOPING README.extensions README.metakit README.namespaces README.oo README.utf-8 STYLE |
| 97 | +%doc CONTRIBUTING.md STYLE |
68 | 98 | %{_includedir}/* |
69 | 99 | %{_bindir}/build-jim-ext |
70 | 100 | %{_libdir}/libjim.so |
71 | 101 | %{_libdir}/pkgconfig/jimtcl.pc |
72 | 102 |
|
73 | 103 | %changelog |
74 | | -* Fri Oct 15 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.78-5 |
75 | | -- Initial CBL-Mariner import from Fedora 32 (license: MIT). |
| 104 | +* Mon May 12 2025 Archana Shettigar <v-shettigara@microsoft.com> - 0.83-3 |
| 105 | +- Initial Azure Linux import from Fedora 42 (license: MIT). |
| 106 | +- License verified |
| 107 | + |
| 108 | +* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.83-2 |
| 109 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild |
| 110 | + |
| 111 | +* Fri Sep 20 2024 Michel Lind <salimma@fedoraproject.org> - 0.83-1 |
| 112 | +- Update to version 0.83; Fixes: RHBZ#2309077 |
| 113 | + |
| 114 | +* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.82-6 |
| 115 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild |
| 116 | + |
| 117 | +* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.82-5 |
| 118 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 119 | + |
| 120 | +* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.82-4 |
| 121 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 122 | + |
| 123 | +* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.82-3 |
| 124 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
| 125 | + |
| 126 | +* Tue Feb 28 2023 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.82-2 |
| 127 | +- Properly disable zlib extension on s390x |
| 128 | +- move README files meant for programming with jimtcl to main package |
| 129 | + |
| 130 | +* Tue Feb 28 2023 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.82-1 |
| 131 | +- Update to 0.82 |
| 132 | +- enable more extensions |
| 133 | +- update license to use SPDX |
| 134 | + |
| 135 | +* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-5 |
| 136 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild |
| 137 | + |
| 138 | +* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-4 |
| 139 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
| 140 | + |
| 141 | +* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.81-3 |
| 142 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
| 143 | + |
| 144 | +* Fri Jan 07 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.81-2 |
| 145 | +- Disable zlib module on s390x (tests fail) |
| 146 | + |
| 147 | +* Fri Jan 07 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.81-1 |
| 148 | +- Update to 0.81 |
| 149 | +- Ship extensions that are disabled by default as modules |
| 150 | +- Opt in to rpmautospec |
| 151 | + |
| 152 | +* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.78-9 |
| 153 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
| 154 | + |
| 155 | +* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.78-8 |
| 156 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
| 157 | + |
| 158 | +* Thu Aug 06 2020 Jeff Law <law@redhat.com> - 0.78-6 |
| 159 | +- Depend on g++ |
| 160 | + |
| 161 | +* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.78-6 |
| 162 | +- Second attempt - Rebuilt for |
| 163 | + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
| 164 | + |
| 165 | +* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.78-5 |
| 166 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
76 | 167 |
|
77 | 168 | * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.78-4 |
78 | 169 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
|
153 | 244 |
|
154 | 245 | * Sun May 05 2013 Markus Mayer <lotharlutz@gmx.de> - 0.73-1 |
155 | 246 | - inital prm release |
156 | | - |
|
0 commit comments