From 104693dbe787248da356dbbed48d283381f36932 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Tue, 7 Aug 2018 19:47:23 +0900 Subject: [PATCH] Fix rpm manifest Fix wrong usage of rpm manifest file. Change-Id: I1dbbd870b758693069ed2f1c87cf60e72e0f19da Signed-off-by: Sangyoon Jang --- CMakeLists.txt | 1 - app2sd.manifest.in => packaging/app2sd-plugin.manifest | 2 +- packaging/app2sd-test.manifest | 5 +++++ packaging/app2sd.manifest | 5 +++++ packaging/app2sd.spec | 9 +++++++++ 5 files changed, 20 insertions(+), 2 deletions(-) rename app2sd.manifest.in => packaging/app2sd-plugin.manifest (57%) create mode 100644 packaging/app2sd-test.manifest create mode 100644 packaging/app2sd.manifest diff --git a/CMakeLists.txt b/CMakeLists.txt index 799d4fa..48417f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,6 @@ SET_TARGET_PROPERTIES(${APP2EXT} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIC -fsta SET_TARGET_PROPERTIES(${APP2EXT} PROPERTIES LINK_FLAGS "-Wl,--as-needed,-z,relro") TARGET_LINK_LIBRARIES(${APP2EXT} ${app2ext_libpkgs_LDFLAGS}) -CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/app2sd.manifest.in ${CMAKE_BINARY_DIR}/app2sd.manifest @ONLY) CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/app2sd.pc.in ${CMAKE_BINARY_DIR}/app2sd.pc @ONLY) INSTALL(TARGETS ${APP2EXT} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries) diff --git a/app2sd.manifest.in b/packaging/app2sd-plugin.manifest similarity index 57% rename from app2sd.manifest.in rename to packaging/app2sd-plugin.manifest index 36ba1cf..e5b4de8 100644 --- a/app2sd.manifest.in +++ b/packaging/app2sd-plugin.manifest @@ -3,6 +3,6 @@ - + diff --git a/packaging/app2sd-test.manifest b/packaging/app2sd-test.manifest new file mode 100644 index 0000000..97e8c31 --- /dev/null +++ b/packaging/app2sd-test.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/app2sd.manifest b/packaging/app2sd.manifest new file mode 100644 index 0000000..97e8c31 --- /dev/null +++ b/packaging/app2sd.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/app2sd.spec b/packaging/app2sd.spec index 0c59ba5..6624de0 100644 --- a/packaging/app2sd.spec +++ b/packaging/app2sd.spec @@ -5,6 +5,9 @@ Release: 1 Group: Application Framework/Package Management License: Apache-2.0 Source0: %{name}-%{version}.tar.gz +Source1: %{name}.manifest +Source2: %{name}-test.manifest +Source3: %{name}-plugin.manifest BuildRequires: pkgconfig(db-util) BuildRequires: pkgconfig(minizip) @@ -48,6 +51,10 @@ app2sd server and plugin library %prep %setup -q +cp %{SOURCE1} . +cp %{SOURCE2} . +cp %{SOURCE3} . + %build MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'` %cmake . -DUNITDIR=%{_unitdir} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} @@ -75,10 +82,12 @@ rm -rf %{buildroot} %{_libdir}/libapp2ext.so %files test +%manifest %{name}-test.manifest %defattr(-,root,root,-) %{_bindir}/test_app2ext %files plugin +%manifest %{name}-plugin.manifest %{_libdir}/libapp2sd.so* %{_bindir}/app2sd-server %{_unitdir}/app2sd-server.service -- 2.7.4