[packages/itcl] - updated to 4.2.3, use upstream soname
qboosh
qboosh at pld-linux.org
Sun Mar 16 16:30:33 CET 2025
commit db6fd745c3a3c01b7f75f96ca6a49bcc479a84b9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 16 15:57:24 2025 +0100
- updated to 4.2.3, use upstream soname
itcl-soname.patch | 28 ++++------------------------
itcl.spec | 19 +++++++------------
2 files changed, 11 insertions(+), 36 deletions(-)
---
diff --git a/itcl.spec b/itcl.spec
index 7c4aaa1..b3ef33d 100644
--- a/itcl.spec
+++ b/itcl.spec
@@ -1,14 +1,14 @@
Summary: [incr Tcl] - object-oriented extension of the Tcl language
Summary(pl.UTF-8): [incr Tcl] - obiektowo zorientowane rozszerzenie języka Tcl
Name: itcl
-Version: 4.2.0
+Version: 4.2.3
Release: 1
License: Tcl (BSD-like)
Group: Development/Languages/Tcl
-Source0: http://downloads.sourceforge.net/incrtcl/%{name}%{version}.tar.gz
-# Source0-md5: 324e89a088549cd268b0311abba70745
+Source0: https://downloads.sourceforge.net/incrtcl/%{name}%{version}.tar.gz
+# Source0-md5: 828fdaee6d394eff6a3a69ae096e9420
Patch0: %{name}-soname.patch
-URL: http://incrtcl.sourceforge.net/itcl/
+URL: https://incrtcl.sourceforge.net/itcl/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: tcl-devel >= 8.6
@@ -72,11 +72,8 @@ install -d $RPM_BUILD_ROOT%{_libdir}
DESTDIR=$RPM_BUILD_ROOT
%{__mv} $RPM_BUILD_ROOT%{_ulibdir}/itcl%{version}/libitcl* $RPM_BUILD_ROOT%{_libdir}
-chmod 755 $RPM_BUILD_ROOT%{_libdir}/libitcl*.so.0.*
-libfile=$(basename $RPM_BUILD_ROOT%{_libdir}/libitcl%{version}.so.0.*)
-ln -sf $libfile $RPM_BUILD_ROOT%{_libdir}/libitcl%{version}.so.0
-ln -sf $libfile $RPM_BUILD_ROOT%{_libdir}/libitcl%{version}.so
-ln -sf $libfile $RPM_BUILD_ROOT%{_libdir}/libitcl.so
+chmod 755 $RPM_BUILD_ROOT%{_libdir}/libitcl*.so*
+ln -sf libitcl%{version}.so $RPM_BUILD_ROOT%{_libdir}/libitcl.so
%{__mv} $RPM_BUILD_ROOT%{_ulibdir}/itcl%{version}/itclConfig.sh $RPM_BUILD_ROOT%{_ulibdir}
%{__sed} -e 's#-L[^ ]* ##' \
@@ -101,8 +98,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc license.terms
-%attr(755,root,root) %{_libdir}/libitcl%{version}.so.*.*
-%attr(755,root,root) %ghost %{_libdir}/libitcl%{version}.so.0
+%attr(755,root,root) %{_libdir}/libitcl%{version}.so
%dir %{_ulibdir}/itcl%{version}
%{_ulibdir}/itcl%{version}/*.tcl
%{_mandir}/mann/body.n*
@@ -119,7 +115,6 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libitcl%{version}.so
%attr(755,root,root) %{_libdir}/libitcl.so
%{_libdir}/libitclstub%{version}.a
%{_ulibdir}/itclConfig.sh
diff --git a/itcl-soname.patch b/itcl-soname.patch
index 817aaa6..df6d1e6 100644
--- a/itcl-soname.patch
+++ b/itcl-soname.patch
@@ -1,32 +1,12 @@
---- itcl/Makefile.in.orig 2003-12-31 17:35:30.000000000 +0100
-+++ itcl/Makefile.in 2003-12-31 18:27:33.782467160 +0100
-@@ -55,7 +55,7 @@
- # library that we are building.
- #========================================================================
-
--PKG_LIB_FILE = @PKG_LIB_FILE@
-+PKG_LIB_FILE = @PKG_LIB_FILE at .0.0
- PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@
-
- lib_BINARIES = $(PKG_LIB_FILE) $(PKG_STUB_LIB_FILE)
-@@ -230,8 +230,8 @@
+--- itcl4.2.3/Makefile.in.orig 2022-11-04 15:02:05.000000000 +0100
++++ itcl4.2.3/Makefile.in 2024-07-05 21:31:56.048730701 +0200
+@@ -290,8 +290,7 @@ genstubs: $(srcdir)/tools/genStubs.tcl $
$(PKG_LIB_FILE): $(PKG_OBJECTS)
-rm -f $(PKG_LIB_FILE)
- ${MAKE_LIB}
- $(RANLIB) $(PKG_LIB_FILE)
-+ ${MAKE_LIB} -Wl,-soname,libitcl$(PACKAGE_VERSION).so.0
-+ -ln -sf $(PKG_LIB_FILE) libitcl$(PACKAGE_VERSION).so.0
++ ${MAKE_LIB} -Wl,-soname,$(PKG_LIB_FILE)
$(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS)
-rm -f $(PKG_STUB_LIB_FILE)
---- itcl4.0.4/pkgIndex.tcl.in.orig 2016-03-10 16:27:34.895380356 +0100
-+++ itcl4.0.4/pkgIndex.tcl.in 2016-03-10 16:28:42.282044195 +0100
-@@ -2,5 +2,5 @@
-
- if {![package vsatisfies [package provide Tcl] 8.6]} {return}
-
--package ifneeded itcl @PACKAGE_VERSION@ [list load [file join $dir "@PKG_LIB_FILE@"] itcl]
--package ifneeded Itcl @PACKAGE_VERSION@ [list load [file join $dir "@PKG_LIB_FILE@"] itcl]
-+package ifneeded itcl @PACKAGE_VERSION@ [list load "@libdir@/@PKG_LIB_FILE at .0" itcl]
-+package ifneeded Itcl @PACKAGE_VERSION@ [list load "@libdir@/@PKG_LIB_FILE at .0" itcl]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/itcl.git/commitdiff/db6fd745c3a3c01b7f75f96ca6a49bcc479a84b9
More information about the pld-cvs-commit
mailing list