[packages/libtommath] - updated to 1.3.0, drop .la file

qboosh qboosh at pld-linux.org
Fri May 31 07:06:40 CEST 2024


commit bde2fdeb2e8c20e62e28ca8eeb99d03962fcb4f5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri May 31 05:39:03 2024 +0200

    - updated to 1.3.0, drop .la file

 libtommath-pc.patch | 11 +++++------
 libtommath.spec     | 10 ++++++----
 2 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/libtommath.spec b/libtommath.spec
index f1ae0ce..d41d0e4 100644
--- a/libtommath.spec
+++ b/libtommath.spec
@@ -1,13 +1,13 @@
 Summary:	LibTomMath - routines for integer based number theoretic applications
 Summary(pl.UTF-8):	LibTomMath - procedury do zastosowań teorii liczb z zakresu liczb całkowitych
 Name:		libtommath
-Version:	1.2.0
-Release:	3
+Version:	1.3.0
+Release:	1
 License:	Public Domain or WTFPL v2
 Group:		Libraries
 #Source0Download: https://github.com/libtom/libtommath/releases
 Source0:	https://github.com/libtom/libtommath/releases/download/v%{version}/ltm-%{version}.tar.xz
-# Source0-md5:	159523e41d528ce72a0ce4ac3eabe274
+# Source0-md5:	59d7440e1f60719a1d3cc8c4f1df2d6b
 Patch0:		%{name}-pc.patch
 URL:		http://www.libtom.net/LibTomMath/
 BuildRequires:	libtool >= 2:1.5
@@ -74,6 +74,9 @@ rm -rf $RPM_BUILD_ROOT
 	PREFIX=%{_prefix} \
 	LIBPATH=%{_libdir}
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtommath.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -90,7 +93,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc doc/bn.pdf
 %attr(755,root,root) %{_libdir}/libtommath.so
-%{_libdir}/libtommath.la
 %{_includedir}/tommath*.h
 %{_pkgconfigdir}/libtommath.pc
 
diff --git a/libtommath-pc.patch b/libtommath-pc.patch
index f849d47..43d0e1a 100644
--- a/libtommath-pc.patch
+++ b/libtommath-pc.patch
@@ -1,12 +1,11 @@
-diff -urNp -x '*.orig' libtommath-1.2.0.org/makefile.shared libtommath-1.2.0/makefile.shared
---- libtommath-1.2.0.org/makefile.shared	2019-10-22 09:44:44.000000000 +0000
-+++ libtommath-1.2.0/makefile.shared	2022-04-04 17:54:55.505014848 +0000
+--- libtommath-1.3.0/makefile.shared.orig	2024-05-30 22:06:46.315518704 +0200
++++ libtommath-1.3.0/makefile.shared	2024-05-30 22:11:31.050642828 +0200
 @@ -70,7 +70,7 @@ install: $(LIBNAME)
  	install -d $(DESTDIR)$(INCPATH)
  	$(LIBTOOL) --mode=install install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
  	install -m 644 $(HEADERS_PUB) $(DESTDIR)$(INCPATH)
--	sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION_PC),' libtommath.pc.in > libtommath.pc
-+	sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^libdir=.*,libdir=$(LIBPATH),' -e 's,^Version:.*,Version: $(VERSION_PC),' libtommath.pc.in > libtommath.pc
+-	sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION_PC),' -e 's, at CMAKE_INSTALL_LIBDIR@,lib,' \
++	sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION_PC),' -e 's,\$${prefix}/@CMAKE_INSTALL_LIBDIR@,$(LIBPATH),' \
+ 		-e 's, at CMAKE_INSTALL_INCLUDEDIR@,include,' libtommath.pc.in > libtommath.pc
  	install -d $(DESTDIR)$(LIBPATH)/pkgconfig
  	install -m 644 libtommath.pc $(DESTDIR)$(LIBPATH)/pkgconfig/
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libtommath.git/commitdiff/bde2fdeb2e8c20e62e28ca8eeb99d03962fcb4f5



More information about the pld-cvs-commit mailing list