SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(EXEC_PREFIX "\${prefix}")
SET(PROJECT_NAME "${PROJECT_NAME}")
-SET(LIBDIR "\${exec_prefix}/lib")
+SET(LIBDIR ${LIB_INSTALL_DIR})
SET(INCLUDEDIR "\${prefix}/include/${PROJECT_NAME}")
SET(VERSION_MAJOR 0)
SET(VERSION "${VERSION_MAJOR}.0.1")
CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${PROJECT_NAME}.pc")
-INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION lib/pkgconfig)
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR})
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/include/secure_socket.h DESTINATION include/${PROJECT_NAME})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/include/com-core.h DESTINATION include/${PROJECT_NAME})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/include/com-core_packet.h DESTINATION include/${PROJECT_NAME})
prefix=@PREFIX@
exec_prefix=@EXEC_PREFIX@
-libdir=@LIBDIR@
+libdir=@LIB_INSTALL_DIR@
includedir=@INCLUDEDIR@
Name: com-core
--- /dev/null
+* Thu Sep 05 2013 Rusty Lynch <rusty.lynch@intel.com> accepted/tizen/20130710.221527@99bbffd
+- Add systemd socket activation support for secure sockets
+
+* Thu Sep 05 2013 Rusty Lynch <rusty.lynch@intel.com> accepted/tizen/20130710.221527@99bbffd
+- Add systemd socket activation support for secure sockets
+
+* Wed May 29 2013 Xavier Roche <xavrock.os@gmail.com> accepted/tizen/20130520.100914@a1a091c
+- Fix x86_64 build-install compliance
+
Summary: Library for the light-weight IPC
Version: 0.5.3
Release: 1
-Group: HomeTF/Framework
-License: Apache License
+Group: Base/IPC
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
+Source1001: libcom-core.manifest
BuildRequires: cmake, gettext-tools, coreutils
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(glib-2.0)
%description
-Light-weight IPC supporting library
+Light-weight IPC supporting library for Tizen
%package devel
-Summary: Files for using API for light-weight IPC.
+Summary: Files for using API for light-weight IPC
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-Light-weight IPC supporting library (dev)
+Light-weight IPC supporting library for Tizen (dev)
%prep
%setup -q
+cp %{SOURCE1001} .
%build
%if 0%{?tizen_build_binary_release_type_eng}
export FFLAGS="${FFLAGS} -DTIZEN_ENGINEER_MODE"
%endif
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+%cmake .
make %{?jobs:-j%jobs}
%install
%make_install
mkdir -p %{buildroot}/%{_datarootdir}/license
-%post
+%post -n libcom-core -p /sbin/ldconfig
+
+%postun -n libcom-core -p /sbin/ldconfig
%files -n libcom-core
-%manifest libcom-core.manifest
+%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/*.so*
%{_datarootdir}/license/*
%files devel
+%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_includedir}/com-core/com-core.h
%{_includedir}/com-core/packet.h
packet_destroy(packet);
}
- return (void *)ret;
+ return (void *)(unsigned long)ret;
}
/*!
ctx.pid = (pid_t)-1;
ret = router_common_main(router, client->handle, &ctx);
- return (void *)ret;
+ return (void *)(unsigned long)ret;
}
/*!
ctx.pid = (pid_t)-1;
ret = router_common_main(router, router->handle, &ctx);
- return (void *)ret;
+ return (void *)(unsigned long)ret;
}
/*!
status = pthread_join(tcb->thid, &res);
if (status != 0) {
ErrPrint("Join: %s\n", strerror(status));
- }
- else
+ } else {
ErrPrint("Thread returns: %d\n", (int)res);
+ }
dlist_foreach_safe(tcb->chunk_list, l, n, chunk) {
/*!
ErrPrint("write: %s\n", strerror(errno));
}
- return (void *)ret;
+ return (void *)(unsigned long)ret;
}
/*!