From f47ff0323da78f8d7696079bc9cbed77af14c62c Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 25 Aug 2013 10:51:47 +0200 Subject: [PATCH] - added libdir patch (use LIB_SUFFIX) --- tpm_emulator-libdir.patch | 13 +++++++++++++ tpm_emulator.spec | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 tpm_emulator-libdir.patch 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}) 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 -- 2.43.0