CBL-Mariner/SPECS/tcl/tcl.spec

137 строки
4.2 KiB
Plaintext

%define majorver %(echo %{version} | cut -d. -f1-2)
Summary: Tool Command Language - the language and library.
Name: tcl
Version: 8.6.13
Release: 3%{?dist}
License: TCL
Vendor: Microsoft Corporation
Distribution: Mariner
Group: System Environment/Libraries
URL: https://tcl.sourceforge.net/
Source0: https://downloads.sourceforge.net/sourceforge/tcl/tcl-core%{version}-src.tar.gz
Patch0: CVE-2023-36328.patch
Patch1: CVE-2023-45853.patch
BuildRequires: cmake
Provides: tcl(abi) = %{majorver}
Provides: tcl-tcldict = %{version}
%description
Tcl provides a powerful platform for creating integration applications that
tie together diverse applications, protocols, devices, and frameworks.
When paired with the Tk toolkit, Tcl provides the fastest and most powerful
way to create GUI applications that run on PCs, Unix, and Mac OS X.
Tcl can also be used for a variety of web-related tasks and for creating
powerful command languages for applications.
%package devel
Summary: Headers and development libraries for tcl
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Headers and development libraries for tcl
%prep
%autosetup -n %{name}%{version} -p1
%build
cd unix
autoconf
%configure \
--enable-threads \
--enable-shared \
--disable-static \
--enable-symbols
%make_build
%install
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
make DESTDIR=%{buildroot} install -C unix
ln -s tclsh%{majorver} %{buildroot}%{_bindir}/tclsh
# for linking with -lib%%{name}
ln -s lib%{name}%{majorver}.so %{buildroot}%{_libdir}/lib%{name}.so
mkdir -p %{buildroot}/%{_libdir}/%{name}%{majorver}
# postgresql and maybe other packages too need tclConfig.sh
# paths don't look at /usr/lib for efficiency, so we symlink into tcl8.6 for now
ln -s %{_libdir}/%{name}Config.sh %{buildroot}/%{_libdir}/%{name}%{majorver}/%{name}Config.sh
mkdir -p %{buildroot}/%{_includedir}/%{name}-private/{generic,unix}
find generic unix -name "*.h" -exec cp -p '{}' %{buildroot}/%{_includedir}/%{name}-private/'{}' ';'
( cd %{buildroot}/%{_includedir}
for i in *.h ; do
[ -f %{buildroot}/%{_includedir}/%{name}-private/generic/$i ] && ln -sf ../../$i %{buildroot}/%{_includedir}/%{name}-private/generic ;
done
)
# remove buildroot traces
sed -i -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" %{buildroot}/%{_libdir}/%{name}Config.sh
rm -rf %{buildroot}/%{_datadir}/%{name}%{majorver}/ldAix
%check
cd unix
make test
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license license.terms
%{_bindir}/*
%{_libdir}/libtcl8.6.so
%{_libdir}/libtcl.so
%{_libdir}/tcl8.6/*
%{_libdir}/tcl8/*
%{_libdir}/tclConfig.sh
%{_libdir}/tclooConfig.sh
%{_mandir}/man1/*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/pkgconfig/tcl.pc
/%{_libdir}/libtclstub8.6.a
%{_mandir}/mann/*
%{_mandir}/man3/*
%changelog
* Wed Oct 25 2023 Rohit Rawat <rohitrawat@microsoft.com> - 8.6.13-3
- Patch CVE-2023-45853 in zlib
* Thu Sep 07 2023 Brian Fjeldstad <bfjelds@microsoft.com> - 8.6.13-2
- Fix CVE-2023-36328
* Tue Apr 18 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 8.6.13-1
- Auto-upgrade to 8.6.13 - Fix CVE-2018-25032
* Wed Sep 07 2022 Mateusz Malisz <mamalisz@microsoft.com> - 8.6.12-2
- Add provides for tcl(abi)
- Add provides for tcl-tcldict
- Replace ./configure and make invocations with macros.
* Wed Nov 10 2021 Chris Co <chrco@microsoft.com> - 8.6.12-1
- Update to 8.6.12
- Fix lint
- License verified
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 8.6.8-3
- Added %%license line automatically
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> - 8.6.8-2
- Initial CBL-Mariner import from Photon (license: Apache2).
* Fri Sep 07 2018 Michelle Wang <michellew@vmware.com> - 8.6.8-1
- Update version to 8.6.8.
* Thu Jul 13 2017 Alexey Makhalov <amakhalov@vmware.com> - 8.6.6-2
- Package more files (private headers, etc). Took install section fromFedora: http://pkgs.fedoraproject.org/cgit/rpms/tcl.git/tree/tcl.spec
- Move init.tcl and other *.tck files to the main package
* Wed Apr 12 2017 Xiaolin Li <xiaolinl@vmware.com> - 8.6.6-1
- Initial build. First version