diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..79e0cd5 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +fairlogger (1.5.0-1) bionic; urgency=medium + + * Initial release + + -- Dennis Klein Fri, 09 Aug 2019 19:43:33 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e120b9a --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: fairlogger +Priority: optional +Maintainer: Dennis Klein +Build-Depends: debhelper (>= 10), cmake (>= 3.9.4), libboost1.65-dev +Standards-Version: 4.1.2 +Section: libs +Homepage: https://github.com/FairRootGroup/FairLogger +Vcs-Git: https://github.com/FairRootGroup/FairLogger +Vcs-Browser: https://github.com/FairRootGroup/FairLogger + +Package: fairlogger +Architecture: amd64 +Multi-Arch: same +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Lightweight and fast C++ Logging Library + Logging to stdout, file, and/or custom sinks. Configurable verbosity + and severity levels. Thread-safe ostream logging via LOG(severity) macro. + +Package: fairlogger-dev +Architecture: amd64 +Multi-Arch: same +Section: libdevel +Depends: libboost1.65-dev, ${shlibs:Depends}, ${misc:Depends} +Description: Lightweight and fast C++ Logging Library + Logging to stdout, file, and/or custom sinks. Configurable verbosity + and severity levels. Thread-safe ostream logging via LOG(severity) macro. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f0a777d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,30 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: FairLogger +Source: https://github.com/FairRootGroup/FairLogger + +Files: * +Copyright: 2014-2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH + 2014-2019 Alexey Rybalchenko + 2014-2019 Dennis Klein +License: LGPL-3.0+ + +Files: debian/* +Copyright: 2019 Dennis Klein +License: LGPL-3.0+ + +License: LGPL-3.0+ + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + . + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU Lesser General + Public License can be found in "/usr/share/common-licenses/LGPL-3". diff --git a/debian/fairlogger-dev.install b/debian/fairlogger-dev.install new file mode 100644 index 0000000..0ce0ef3 --- /dev/null +++ b/debian/fairlogger-dev.install @@ -0,0 +1,2 @@ +usr/include/*/* +usr/lib/*/cmake/* diff --git a/debian/fairlogger.install b/debian/fairlogger.install new file mode 100644 index 0000000..3666236 --- /dev/null +++ b/debian/fairlogger.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so diff --git a/debian/patches/0001-CMake-Do-not-bake-git-version-into-installed-files.patch b/debian/patches/0001-CMake-Do-not-bake-git-version-into-installed-files.patch new file mode 100644 index 0000000..fba94a8 --- /dev/null +++ b/debian/patches/0001-CMake-Do-not-bake-git-version-into-installed-files.patch @@ -0,0 +1,35 @@ +From: Dennis Klein +Date: Fri, 9 Aug 2019 22:16:06 +0200 +Subject: CMake: Do not bake git version into installed files + +--- + CMakeLists.txt | 2 +- + cmake/FairLoggerLib.cmake | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 673e2ac..159cda3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -62,7 +62,7 @@ target_include_directories(FairLogger + $ + ) + set_target_properties(FairLogger PROPERTIES +- VERSION ${PROJECT_GIT_VERSION} ++ VERSION ${PROJECT_VERSION} + SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}" + ) + +diff --git a/cmake/FairLoggerLib.cmake b/cmake/FairLoggerLib.cmake +index b038058..ca4f52f 100644 +--- a/cmake/FairLoggerLib.cmake ++++ b/cmake/FairLoggerLib.cmake +@@ -215,7 +215,7 @@ endfunction() + macro(install_cmake_package) + include(CMakePackageConfigHelpers) + set(PACKAGE_INSTALL_DESTINATION +- ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}-${PROJECT_GIT_VERSION} ++ ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}-${PROJECT_VERSION} + ) + install(EXPORT ${PROJECT_EXPORT_SET} + NAMESPACE ${PROJECT_NAME}:: diff --git a/debian/patches/0002-CMake-Disable-relative-install-RPATH.patch b/debian/patches/0002-CMake-Disable-relative-install-RPATH.patch new file mode 100644 index 0000000..01894c1 --- /dev/null +++ b/debian/patches/0002-CMake-Disable-relative-install-RPATH.patch @@ -0,0 +1,26 @@ +From: Dennis Klein +Date: Fri, 9 Aug 2019 22:18:31 +0200 +Subject: CMake: Disable relative install RPATH + +--- + cmake/FairLoggerLib.cmake | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/cmake/FairLoggerLib.cmake b/cmake/FairLoggerLib.cmake +index ca4f52f..d15d163 100644 +--- a/cmake/FairLoggerLib.cmake ++++ b/cmake/FairLoggerLib.cmake +@@ -131,11 +131,9 @@ macro(set_fairlogger_defaults) + if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} "-Wl,--enable-new-dtags") + set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-Wl,--enable-new-dtags") +- set(CMAKE_INSTALL_RPATH "$ORIGIN/../${PROJECT_INSTALL_LIBDIR}") ++ # set(CMAKE_INSTALL_RPATH "$ORIGIN/../${PROJECT_INSTALL_LIBDIR}") + elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") +- set(CMAKE_INSTALL_RPATH "@loader_path/../${PROJECT_INSTALL_LIBDIR}") +- else() +- set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${PROJECT_INSTALL_LIBDIR}") ++ # set(CMAKE_INSTALL_RPATH "@loader_path/../${PROJECT_INSTALL_LIBDIR}") + endif() + endif() + diff --git a/debian/patches/0003-CMake-Workaround-broken-pristine-tar.patch b/debian/patches/0003-CMake-Workaround-broken-pristine-tar.patch new file mode 100644 index 0000000..6e29598 --- /dev/null +++ b/debian/patches/0003-CMake-Workaround-broken-pristine-tar.patch @@ -0,0 +1,21 @@ +From: Dennis Klein +Date: Fri, 9 Aug 2019 22:24:46 +0200 +Subject: CMake: Workaround broken pristine tar + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 159cda3..7a457cb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -13,7 +13,7 @@ cmake_policy(VERSION 3.9...3.14) + set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) + include(FairLoggerLib) + +-get_git_version() ++get_git_version(DEFAULT_VERSION 1.5.0) + + project(FairLogger VERSION ${PROJECT_VERSION} LANGUAGES C CXX) + message(STATUS "${BWhite}${PROJECT_NAME}${CR} ${PROJECT_GIT_VERSION} from ${PROJECT_DATE}") diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..8072cc5 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +0001-CMake-Do-not-bake-git-version-into-installed-files.patch +0002-CMake-Disable-relative-install-RPATH.patch +0003-CMake-Workaround-broken-pristine-tar.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cb86994 --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f +# output every command that modifies files on the build system. +export DH_VERBOSE = 1 + +%: + dh $@ --builddirectory=build + +override_dh_auto_configure: + mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DUSE_BOOST_PRETTY_FUNCTION=ON -DCMAKE_BUILD_TYPE=Release .. + +override_dh_auto_build: + cd build && make + +override_dh_auto_install: + cd build && make install DESTDIR=../debian/tmp diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)