[packages/libmd] - set proper soname for shared lib - rel 3

baggins baggins at pld-linux.org
Wed Oct 31 19:34:23 CET 2018


commit 66b8a959ef29a717a69bbcae99a70f2667ee3d28
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Oct 31 19:34:01 2018 +0100

    - set proper soname for shared lib
    - rel 3

 libmd.spec   |  4 +++-
 soname.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/libmd.spec b/libmd.spec
index 153e1a2..e65480b 100644
--- a/libmd.spec
+++ b/libmd.spec
@@ -2,13 +2,14 @@ Summary:	Message digest library
 Summary(pl.UTF-8):	Biblioteka skrótów wiadomości (Message Digest)
 Name:		libmd
 Version:	0.3
-Release:	2
+Release:	3
 License:	RSA non-commercial (MD2), RSA BSD-like (MD4), Public Domain (MD5)
 Group:		Libraries
 Source0:	ftp://ftp.penguin.cz/pub/users/mhi/libmd/%{name}-%{version}.tar.bz2
 # Source0-md5:	1db1795b7e87bbda542e4c33b6ce5566
 Patch0:		%{name}-install.patch
 Patch1:		%{name}-types.patch
+Patch2:		soname.patch
 URL:		http://martin.hinner.info/libmd/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -61,6 +62,7 @@ Statyczna biblioteka libmd.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 cp -f /usr/share/automake/config.* .
diff --git a/soname.patch b/soname.patch
new file mode 100644
index 0000000..77b638d
--- /dev/null
+++ b/soname.patch
@@ -0,0 +1,11 @@
+--- libmd-0.3/Makefile.in~	2018-10-31 19:29:24.000000000 +0100
++++ libmd-0.3/Makefile.in	2018-10-31 19:31:27.028214752 +0100
+@@ -94,7 +94,7 @@
+ 	cat md5.copyright >> $@
+ 
+ libmd.so.1.0:	$(OBJ)
+-	$(CC) -shared -o libmd.so.1.0 $(OBJ)
++	$(CC) -shared -Wl,-soname,libmd.so.1 -o libmd.so.1.0 $(OBJ)
+ 
+ libmd.a:	$(OBJ)
+ 	rm -f libmd.a
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libmd.git/commitdiff/66b8a959ef29a717a69bbcae99a70f2667ee3d28



More information about the pld-cvs-commit mailing list