From 35471b453fa6f1c46c6b3d835546a1e094cf6aa7 Mon Sep 17 00:00:00 2001 From: 19909236985 Date: Sat, 18 Jun 2022 09:53:30 +0800 Subject: [PATCH] 1 --- tk.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tk.spec b/tk.spec index 7bbbe72..0b77c2c 100644 --- a/tk.spec +++ b/tk.spec @@ -3,7 +3,7 @@ Name: tk Version: 8.6.12 -Release: 1 +Release: 3 Summary: The graphical toolkit for the Tcl scripting language Epoch: 1 License: TCL @@ -12,7 +12,7 @@ Source0: http://download.sourceforge.net/sourceforge/tcl/%{name}%{version} Requires: tcl = %{epoch}:%{version} glibc BuildRequires: gcc -BuildRequires: tcl-devel = %{epoch}:%{version} autoconf libX11-devel libXft-devel +BuildRequires: tcl-devel = %{epoch}:%{version} autoconf libX11-devel libXft-devel chrpath Conflicts: itcl <= 3.2 Obsoletes: tile <= 0.8.2 @@ -66,6 +66,14 @@ find generic unix -name "*.h" -exec cp -p '{}' %{buildroot}/%{_includedir}/%{nam sed -i -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" %{buildroot}/%{_libdir}/%{name}Config.sh +chmod 755 %{buildroot}%{_libdir}/libtk8.6.so +# remove rpath +chrpath -d %{buildroot}%{_bindir}/wish8.6 +chrpath -d %{buildroot}%{_libdir}/libtk8.6.so + +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "/usr/lib64" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + %pre [ ! -h %{_prefix}/%{_lib}/%{name}%{majorver} ] || rm %{_prefix}/%{_lib}/%{name}%{majorver} @@ -80,6 +88,7 @@ sed -i -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" %{bu %exclude %{_datadir}/%{name}%{majorver}/tkAppInit.c %{_libdir}/%{name}%{majorver} %{_libdir}/lib%{name}%{majorver}.so +%config(noreplace) /etc/ld.so.conf.d/* %files devel %defattr(-,root,root) @@ -96,6 +105,9 @@ sed -i -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" %{bu %{_mandir}/mann/* %changelog +* Sat Jun 18 2022 wuchaochao - 1:8.6.12-3 +- remove rpath and runpath of exec files and libraries + * Tue Apr 19 2022 wangkerong - 1:8.6.12-1 - Upgrade to 1:8.6.12-1 -- Gitee