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}
%{_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
@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)
--- /dev/null
+# 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}