diff --git a/.travis.yml b/.travis.yml index 2eae315..3a7feda 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ sudo: required env: - - REPO_NAME=${TRAVIS_REPO_SLUG#*/} + - REPO_NAME=${TRAVIS_REPO_SLUG#*/} KOJI_BUILD_TAG=osg-3.5-el7-build git: depth: false @@ -17,4 +17,4 @@ before_install: - sudo docker pull opensciencegrid/osg-build script: - - docker run -v $(pwd):/$REPO_NAME -e REPO_NAME=$REPO_NAME --cap-add=SYS_ADMIN opensciencegrid/osg-build build-from-github + - docker run -v $(pwd):/$REPO_NAME -e REPO_NAME=$REPO_NAME -e KOJI_BUILD_TAG=osg-3.5-el7-build --cap-add=SYS_ADMIN opensciencegrid/osg-build build-from-github diff --git a/CMakeLists.txt b/CMakeLists.txt index 788834d..c029603 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,12 @@ find_package( Hdfs REQUIRED ) find_package( Jvm REQUIRED ) find_package( Dl REQUIRED ) +if(NOT XROOTD_PLUGIN_VERSION) + find_program(XROOTD_CONFIG_EXECUTABLE xrootd-config) + exec_program(${XROOTD_CONFIG_EXECUTABLE} ARGS "--plugin-version" OUTPUT_VARIABLE XROOTD_PLUGIN_VERSION RETURN_VALUE RETVAR) + set(XROOTD_PLUGIN_VERSION ${XROOTD_PLUGIN_VERSION} CACHE INTERNAL "") +endif() + include (FindPkgConfig) pkg_check_modules(LIBCRYPTO REQUIRED libcrypto) pkg_check_modules(ZLIB REQUIRED zlib) @@ -42,11 +48,11 @@ include_directories( "${PROJECT_SOURCE_DIR}" "${XROOTD_INCLUDES}" ) add_library(XrdHdfs MODULE src/XrdHdfsBootstrap.cc src/XrdHdfsChecksum.cc src/XrdHdfsChecksumCalc.cc) target_link_libraries(XrdHdfs ${XROOTD_UTILS} ${DL_LIB} ${LIBCRYPTO_LIBRARIES} ${ZLIB_LIBRARIES}) -set_target_properties(XrdHdfs PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/src/export-lib-symbols") +set_target_properties(XrdHdfs PROPERTIES OUTPUT_NAME "XrdHdfs-${XROOTD_PLUGIN_VERSION}" LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/src/export-lib-symbols") add_library(XrdHdfsReal MODULE src/XrdHdfs.cc src/XrdHdfsConfig.cc src/XrdHdfs.hh src/XrdHdfsChecksum.cc src/XrdHdfsChecksumCalc.cc) target_link_libraries(XrdHdfsReal ${HDFS_LIB} ${XROOTD_UTILS} ${LIBCRYPTO_LIBRARIES} ${ZLIB_LIBRARIES}) -set_target_properties(XrdHdfsReal PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/src/export-lib-symbols") +set_target_properties(XrdHdfsReal PROPERTIES OUTPUT_NAME "XrdHdfsReal-${XROOTD_PLUGIN_VERSION}" LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/src/export-lib-symbols") add_executable(xrootd_hdfs_envcheck src/XrdHdfsEnvCheck.cc) diff --git a/rpm/xrootd-hdfs.spec b/rpm/xrootd-hdfs.spec index 820d443..456680e 100644 --- a/rpm/xrootd-hdfs.spec +++ b/rpm/xrootd-hdfs.spec @@ -1,6 +1,6 @@ Name: xrootd-hdfs Version: 2.1.7 -Release: 6%{?dist} +Release: 7%{?dist} Summary: HDFS plugin for xrootd Group: System Environment/Development @@ -62,9 +62,9 @@ rm $RPM_BUILD_ROOT%{_bindir}/xrootd_hdfs_envcheck %files %defattr(-,root,root,-) -%{_libdir}/libXrdHdfs.so -%{_libdir}/libXrdHdfs.so.* -%{_libdir}/libXrdHdfsReal.so +%{_libdir}/libXrdHdfs-*.so +%{_libdir}/libXrdHdfs-*.so.* +%{_libdir}/libXrdHdfsReal-*.so %{_sysconfdir}/xrootd/xrootd.sample.hdfs.cfg %{_libexecdir}/xrootd-hdfs/xrootd_hdfs_envcheck %config(noreplace) %{_sysconfdir}/sysconfig/xrootd-hdfs @@ -74,6 +74,10 @@ rm $RPM_BUILD_ROOT%{_bindir}/xrootd_hdfs_envcheck %{_includedir}/XrdHdfs.hh %changelog +* Wed Jun 10 2020 Diego Davila - 2.1.7-7 +- Adding XrootD major version to the shared file name +- building against XrootD-4.12.2 (software-4093) + * Fri Apr 24 2020 Edgar Fajardo - 2.1.7-6 - Rebuild for xrootd 4.12 (SOFTWARE-4063)