add csr-framework-engine-devel rpm 15/68415/2
authorDongsun Lee <ds73.lee@samsung.com>
Wed, 4 May 2016 06:09:48 +0000 (15:09 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Wed, 4 May 2016 06:29:00 +0000 (15:29 +0900)
Change-Id: I8b8fcff4919a8fa3852645c513d0dd40dd24d089
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
packaging/csr-framework.spec
pkgconfig/CMakeLists.txt
pkgconfig/csr-engine.pc.in [new file with mode: 0644]
src/include/CMakeLists.txt

index c6247ee..37bbaf4 100644 (file)
@@ -65,7 +65,15 @@ BuildRequires: pkgconfig(capi-base-common)
 Requires:      %{name} = %{version}-%{release}
 
 %description devel
-csr-framework developemnt files including headers and pkgconfig file.
+csr-framework development files including headers and pkgconfig file.
+
+%package engine-devel
+Summary: Development files for %{name} engine
+LICENSE: Apache-2.0
+Group:   Security/Development
+
+%description engine-devel
+csr-framework engine development files including headers and pkgconfig file.
 
 %package test
 Summary: test program for %{name}
@@ -208,6 +216,17 @@ fi
 %{_libdir}/lib%{service_name}-client.so
 %{_libdir}/lib%{service_name}-common.so
 
+%files engine-devel
+%defattr(-,root,root,-)
+%{_includedir}/csre/content-screening-engine-info.h
+%{_includedir}/csre/content-screening.h
+%{_includedir}/csre/content-screening-types.h
+%{_includedir}/csre/error.h
+%{_includedir}/csre/web-protection-engine-info.h
+%{_includedir}/csre/web-protection.h
+%{_includedir}/csre/web-protection-types.h
+%{_libdir}/pkgconfig/%{service_name}-engine.pc
+
 %files test
 %defattr(-,root,root,-)
 %manifest %{service_name}-test.manifest
index 456eb4a..a348e4a 100644 (file)
@@ -22,4 +22,12 @@ CONFIGURE_FILE(
        @ONLY
 )
 
+CONFIGURE_FILE(
+       ${SERVICE_NAME}-engine.pc.in
+       ${SERVICE_NAME}-engine.pc
+       @ONLY
+)
+
+
 INSTALL(FILES ${SERVICE_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+INSTALL(FILES ${SERVICE_NAME}-engine.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
diff --git a/pkgconfig/csr-engine.pc.in b/pkgconfig/csr-engine.pc.in
new file mode 100644 (file)
index 0000000..f53a0df
--- /dev/null
@@ -0,0 +1,13 @@
+# Package Information for pkg-config
+
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=%{prefix}
+libdir=@LIB_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@
+
+Name: @SERVICE_NAME@-engine
+Description: @PACKAGE_DESCRIPTION@
+Version: @VERSION@
+Requires:
+Libs: -L${libdir}
+Cflags: -I${includedir}
index abd8df0..340f92a 100644 (file)
@@ -17,3 +17,4 @@
 # @brief       install headers to be built with clients
 #
 INSTALL(DIRECTORY csr DESTINATION ${INCLUDE_INSTALL_DIR})
+INSTALL(DIRECTORY csre DESTINATION ${INCLUDE_INSTALL_DIR})