[packages/bv16-floatingpoint] - added libdir patch (fix libdir other than /usr/lib)

qboosh qboosh at pld-linux.org
Sat Jul 10 15:49:15 CEST 2021


commit 746b8d8cecd437c045f8903855f2ffcb6c8f6da0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jul 10 15:52:22 2021 +0200

    - added libdir patch (fix libdir other than /usr/lib)

 bv16-floatingpoint-libdir.patch | 35 +++++++++++++++++++++++++++++++++++
 bv16-floatingpoint.spec         |  2 ++
 2 files changed, 37 insertions(+)
---
diff --git a/bv16-floatingpoint.spec b/bv16-floatingpoint.spec
index 24cbbbc..979673a 100644
--- a/bv16-floatingpoint.spec
+++ b/bv16-floatingpoint.spec
@@ -14,6 +14,7 @@ Group:		Libraries
 #Source0Download: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint/-/tags
 Source0:	https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint/-/archive/%{version}/%{name}-%{version}.tar.bz2
 # Source0-md5:	359b6088c38524aae17822856b1bd219
+Patch0:		%{name}-libdir.patch
 URL:		https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint
 BuildRequires:	cmake >= 3.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -50,6 +51,7 @@ Statyczna biblioteka bv16.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
diff --git a/bv16-floatingpoint-libdir.patch b/bv16-floatingpoint-libdir.patch
new file mode 100644
index 0000000..b18d0c6
--- /dev/null
+++ b/bv16-floatingpoint-libdir.patch
@@ -0,0 +1,35 @@
+--- bv16-floatingpoint-1.2/CMakeLists.txt.orig	2016-03-02 14:14:17.000000000 +0100
++++ bv16-floatingpoint-1.2/CMakeLists.txt	2021-07-10 15:46:55.324530192 +0200
+@@ -86,8 +86,8 @@ if(ENABLE_STATIC)
+ 	target_link_libraries(bv16-static ${LIBS})
+ 	install(TARGETS bv16-static
+ 		RUNTIME DESTINATION bin
+-		LIBRARY DESTINATION lib
+-		ARCHIVE DESTINATION lib
++		LIBRARY DESTINATION lib${LIB_SUFFIX}
++		ARCHIVE DESTINATION lib${LIB_SUFFIX}
+ 		PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+ 	)
+ endif()
+@@ -96,8 +96,8 @@ if(ENABLE_SHARED)
+ 	target_link_libraries(bv16 ${LIBS})
+ 	install(TARGETS bv16
+ 		RUNTIME DESTINATION bin
+-		LIBRARY DESTINATION lib
+-		ARCHIVE DESTINATION lib
++		LIBRARY DESTINATION lib${LIB_SUFFIX}
++		ARCHIVE DESTINATION lib${LIB_SUFFIX}
+ 		PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+ 	)
+ 	if(MSVC)
+@@ -118,8 +118,8 @@ else()
+ endif()
+ install(TARGETS BroadVoice16
+   RUNTIME DESTINATION bin
+-  LIBRARY DESTINATION lib
+-  ARCHIVE DESTINATION lib
++  LIBRARY DESTINATION lib${LIB_SUFFIX}
++  ARCHIVE DESTINATION lib${LIB_SUFFIX}
+   PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+ )
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bv16-floatingpoint.git/commitdiff/746b8d8cecd437c045f8903855f2ffcb6c8f6da0



More information about the pld-cvs-commit mailing list