From 55e6e17b8fa5efa91166c2500248b3ac88625b50 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Wed, 9 Sep 2015 13:11:10 -0400 Subject: [PATCH] libntirpc 1.3.0 GA --- libntirpc-1.3.0-src-CMakeList.txt.patch | 71 +++++++++++++++++++++++++ libntirpc.spec | 15 +++--- sources | 2 +- 3 files changed, 80 insertions(+), 8 deletions(-) create mode 100644 libntirpc-1.3.0-src-CMakeList.txt.patch diff --git a/libntirpc-1.3.0-src-CMakeList.txt.patch b/libntirpc-1.3.0-src-CMakeList.txt.patch new file mode 100644 index 0000000..44f79b8 --- /dev/null +++ b/libntirpc-1.3.0-src-CMakeList.txt.patch @@ -0,0 +1,71 @@ +--- ntirpc-1.3.0/CMakeLists.txt.standalone.orig 2015-09-09 12:31:57.130344661 -0400 ++++ ntirpc-1.3.0/CMakeLists.txt.standalone 2015-09-09 12:42:32.016344661 -0400 +@@ -33,6 +33,8 @@ + + option (USE_GSS "enable RPCSEC_GSS support" ON) + ++option (USE_NFS_RDMA "enable NFS_RDMA support" ON) ++ + option(TIRPC_EPOLL "platform supports EPOLL or emulation" ON) + + # MSPAC support -lwbclient link flag +@@ -148,6 +150,11 @@ + "platform has EPOLL or emulation" + FORCE) + ++set(USE_NFS_RDMA ${USE_NFS_RDMA} ++ CACHE BOOL ++ "platform has RDMA" ++ FORCE) ++ + # grist files + configure_file( + "${PROJECT_SOURCE_DIR}/config-h.in.cmake" +--- ntirpc-1.3.0/src/CMakeLists.txt.orig 2015-09-08 21:28:58.178344661 -0400 ++++ ntirpc-1.3.0/src/CMakeLists.txt 2015-09-09 12:35:52.867344661 -0400 +@@ -6,10 +6,11 @@ + ) + + # ok on Linux and FreeBSD w/GCC and clang compilers +-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") ++# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") ++set(CMAKE_C_FLAGS "-fPIC -isystem ${PROJECT_SOURCE_DIR}/ntirpc ${CMAKE_C_FLAGS}") + + include_directories( +- ${PROJECT_SOURCE_DIR}/tirpc ++ ${PROJECT_SOURCE_DIR}/ntirpc + ) + + ########### next target ############### +@@ -110,8 +111,13 @@ + svc_rdma.c + xdr_rdma.c + ) ++ add_definitions(-DUSE_RPC_RDMA) + endif(USE_NFS_RDMA) + ++if(TIRPC_EPOLL) ++ add_definitions(-DTIRPC_EPOLL) ++endif(TIRPC_EPOLL) ++ + # declares the library + add_library(ntirpc SHARED + ${ntirpc_common_SRCS} +@@ -126,11 +132,16 @@ + + # set library version and symbol namespace(s) from gen'd map file + set_target_properties(ntirpc PROPERTIES LINK_FLAGS +- "-Wl,--version-script=${LIBNTIRPC_MAP}" ++ "-Wl,--version-script=${PROJECT_SOURCE_DIR}/src/libntirpc.map" + VERSION ${NTIRPC_VERSION} + SOVERSION "${NTIRPC_MAJOR_VERSION}.${NTIRPC_MINOR_VERSION}" + ) + ++configure_file( ++ "${PROJECT_SOURCE_DIR}/src/libntirpc.map.in.cmake" ++ "${PROJECT_SOURCE_DIR}/src/libntirpc.map" ++) ++ + install(TARGETS ntirpc DESTINATION ${LIB_INSTALL_DIR}) + + ########### install files ############### diff --git a/libntirpc.spec b/libntirpc.spec index e8d252b..1baf30b 100644 --- a/libntirpc.spec +++ b/libntirpc.spec @@ -2,19 +2,15 @@ %global _hardened_build 1 Name: libntirpc -Version: 1.2.1 -Release: 3%{?dev_version:%{dev_version}}%{?dist} +Version: 1.3.0 +Release: 1%{?dev_version:%{dev_version}}%{?dist} Summary: New Transport Independent RPC Library Group: System Environment/Libraries License: BSD Url: https://github.com/nfs-ganesha/ntirpc Source0: https://github.com/nfs-ganesha/ntirpc/archive/v%{version}/ntirpc-%{version}.tar.gz -Patch1: libntirpc-1.2.1-src-CMakeList.txt.patch - -# Bundling exception through Fedora 23 -# https://fedorahosted.org/fpc/ticket/363 -# Provides: bundled(libntirpc) +Patch1: libntirpc-1.3.0-src-CMakeList.txt.patch BuildRequires: cmake BuildRequires: jemalloc-devel @@ -59,6 +55,7 @@ ln -s %{name}.so.%{version} %{buildroot}%{_libdir}/%{name}.so.1 ln -s %{name}.so.%{version} %{buildroot}%{_libdir}/%{name}.so mkdir -p %{buildroot}%{_includedir}/ntirpc cp -a ntirpc %{buildroot}%{_includedir}/ +install -p -m 644 libntirpc.pc %{buildroot}%{_libdir}/pkgconfig/ %post -p /sbin/ldconfig @@ -73,8 +70,12 @@ cp -a ntirpc %{buildroot}%{_includedir}/ %files devel %{_libdir}/libntirpc.so %{_includedir}/ntirpc/ +%{_libdir}/pkgconfig/libntirpc.pc %changelog +* Wed Sep 9 2015 Kaleb S. KEITHLEY 1.3.0-1 +- libntirpc 1.3.0 GA + * Thu Jul 16 2015 Kaleb S. KEITHLEY 1.2.1-3 - RHEL 6 finally has new enough cmake - use -isystem ... to ensure correct are used diff --git a/sources b/sources index 3063bc7..1e4634b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e46e22bf9b312a7e92684a177f1f46d7 ntirpc-1.2.1.tar.gz +9f4e3589f7e500444e02cc7722f9e613 ntirpc-1.3.0.tar.gz