[packages/libtomcrypt] - include libtommath dependency in .pc file, drop .la file; release 3
qboosh
qboosh at pld-linux.org
Fri May 31 07:03:21 CEST 2024
commit 0bd91a7d1740c0f415157675384281d30503ad68
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri May 31 05:35:16 2024 +0200
- include libtommath dependency in .pc file, drop .la file; release 3
libtomcrypt-pc.patch | 8 ++++++++
libtomcrypt.spec | 6 ++++--
2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/libtomcrypt.spec b/libtomcrypt.spec
index d556331..a77c71d 100644
--- a/libtomcrypt.spec
+++ b/libtomcrypt.spec
@@ -6,7 +6,7 @@ Summary: LibTomCrypt - fairly comprehensive, modular and portable cryptographic
Summary(pl.UTF-8): LibTomCrypt - dość obszerna, modularna i przenośna biblioteka kryptograficzna
Name: libtomcrypt
Version: 1.18.2
-Release: 2
+Release: 3
License: Public Domain or WTFPL v2
Group: Libraries
#Source0Download: https://github.com/libtom/libtomcrypt/releases
@@ -81,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
PREFIX=%{_prefix} \
LIBPATH=%{_libdir}
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtomcrypt.la
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -97,7 +100,6 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc doc/crypt.pdf notes/*.txt
%attr(755,root,root) %{_libdir}/libtomcrypt.so
-%{_libdir}/libtomcrypt.la
%{_includedir}/tomcrypt*.h
%{_pkgconfigdir}/libtomcrypt.pc
diff --git a/libtomcrypt-pc.patch b/libtomcrypt-pc.patch
index 0f102e7..b11fd9c 100644
--- a/libtomcrypt-pc.patch
+++ b/libtomcrypt-pc.patch
@@ -9,3 +9,11 @@
install -p -d $(DESTDIR)$(LIBPATH)/pkgconfig
install -p -m 644 libtomcrypt.pc $(DESTDIR)$(LIBPATH)/pkgconfig/
+--- libtomcrypt-1.18.2/libtomcrypt.pc.in.orig 2018-07-01 22:49:01.000000000 +0200
++++ libtomcrypt-1.18.2/libtomcrypt.pc.in 2024-05-30 22:33:10.156938298 +0200
+@@ -7,4 +7,5 @@ Name: LibTomCrypt
+ Description: public domain open source cryptographic toolkit
+ Version: @to-be-replaced@
+ Libs: -L${libdir} -ltomcrypt
++Requires.private: libtommath
+ Cflags: -I${includedir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libtomcrypt.git/commitdiff/0bd91a7d1740c0f415157675384281d30503ad68
More information about the pld-cvs-commit
mailing list