Fix rpm manifest 33/186133/3
authorSangyoon Jang <jeremy.jang@samsung.com>
Tue, 7 Aug 2018 10:47:23 +0000 (19:47 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Tue, 14 Aug 2018 02:04:09 +0000 (02:04 +0000)
Fix wrong usage of rpm manifest file.

Change-Id: I1dbbd870b758693069ed2f1c87cf60e72e0f19da
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
CMakeLists.txt
packaging/app2sd-plugin.manifest [moved from app2sd.manifest.in with 57% similarity]
packaging/app2sd-test.manifest [new file with mode: 0644]
packaging/app2sd.manifest [new file with mode: 0644]
packaging/app2sd.spec

index 799d4fa..48417f0 100644 (file)
@@ -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)
similarity index 57%
rename from app2sd.manifest.in
rename to packaging/app2sd-plugin.manifest
index 36ba1cf..e5b4de8 100644 (file)
@@ -3,6 +3,6 @@
                <domain name="_"/>
        </request>
        <assign>
-               <filesystem path="/usr/bin/app2sd-server" exec_label="none"/>
+               <filesystem path="/usr/bin/app2sd-server" label="System"/>
        </assign>
 </manifest>
diff --git a/packaging/app2sd-test.manifest b/packaging/app2sd-test.manifest
new file mode 100644 (file)
index 0000000..97e8c31
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_"/>
+       </request>
+</manifest>
diff --git a/packaging/app2sd.manifest b/packaging/app2sd.manifest
new file mode 100644 (file)
index 0000000..97e8c31
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+       <request>
+               <domain name="_"/>
+       </request>
+</manifest>
index 0c59ba5..6624de0 100644 (file)
@@ -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