[packages/tpm_emulator] - added libdir patch (use LIB_SUFFIX)

qboosh qboosh at pld-linux.org
Sun Aug 25 10:52:25 CEST 2013


commit f47ff0323da78f8d7696079bc9cbed77af14c62c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Aug 25 10:51:47 2013 +0200

    - added libdir patch (use LIB_SUFFIX)

 tpm_emulator-libdir.patch | 13 +++++++++++++
 tpm_emulator.spec         |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/tpm_emulator.spec b/tpm_emulator.spec
index efe40b9..9adb239 100644
--- a/tpm_emulator.spec
+++ b/tpm_emulator.spec
@@ -22,6 +22,7 @@ License:	GPL v2+
 Group:		Applications/System
 Source0:	http://downloads.sourceforge.net/tpm-emulator.berlios/%{pname}-%{version}.tar.gz
 # Source0-md5:	e26becb8a6a2b6695f6b3e8097593db8
+Patch0:		%{pname}-libdir.patch
 URL:		http://tpm-emulator.berlios.de/
 BuildRequires:	cmake >= 2.4
 BuildRequires:	gmp-devel
@@ -91,6 +92,7 @@ przekazujący odebrane polecenia do tpmd.
 
 %prep
 %setup -q -n %{pname}-%{version}
+%patch0 -p1
 
 # separate kernel module from userspace build
 echo > tpmd_dev/CMakeLists.txt
diff --git a/tpm_emulator-libdir.patch b/tpm_emulator-libdir.patch
new file mode 100644
index 0000000..4af0924
--- /dev/null
+++ b/tpm_emulator-libdir.patch
@@ -0,0 +1,13 @@
+--- tpm_emulator-0.7.4/tddl/CMakeLists.txt.orig	2011-12-20 19:30:06.000000000 +0100
++++ tpm_emulator-0.7.4/tddl/CMakeLists.txt	2013-08-25 10:29:26.037614531 +0200
+@@ -15,8 +15,8 @@
+   set_target_properties(tddl PROPERTIES PREFIX "")
+ endif()
+ 
+-install(TARGETS tddl DESTINATION lib)
+-install(TARGETS tddl_static DESTINATION lib)
++install(TARGETS tddl DESTINATION lib${LIB_SUFFIX})
++install(TARGETS tddl_static DESTINATION lib${LIB_SUFFIX})
+ install(FILES "tddl.h" DESTINATION include)
+ 
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tpm_emulator.git/commitdiff/f47ff0323da78f8d7696079bc9cbed77af14c62c



More information about the pld-cvs-commit mailing list