[med-svn] [Git][med-team/libthread-pool][master] Initial packaging

Andreas Tille gitlab at salsa.debian.org
Sun Jun 10 08:31:30 BST 2018


Andreas Tille pushed to branch master at Debian Med / libthread-pool


Commits:
4f130c64 by Andreas Tille at 2018-06-10T09:16:19+02:00
Initial packaging

- - - - -


10 changed files:

- CMakeLists.txt
- + debian/changelog
- + debian/compat
- + debian/control
- + debian/copyright
- + debian/patches/series
- + debian/patches/shared_and_static.patch
- + debian/rules
- + debian/source/format
- + debian/watch


Changes:

=====================================
CMakeLists.txt
=====================================
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,14 +11,22 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
 
 option(thread_pool_build_tests "Build thread_pool unit tests" OFF)
 
-add_library(thread_pool STATIC
+add_library(thread_pool SHARED
+    src/thread_pool.cpp)
+
+add_library(thread_pool_static STATIC
     src/thread_pool.cpp)
 
 target_include_directories(thread_pool PUBLIC
     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
     $<INSTALL_INTERFACE:include>)
 
+target_include_directories(thread_pool_static PUBLIC
+    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+    $<INSTALL_INTERFACE:include>)
+
 install(TARGETS thread_pool DESTINATION lib)
+install(TARGETS thread_pool_static DESTINATION lib)
 install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/thread_pool DESTINATION include)
 
 if (thread_pool_build_tests)


=====================================
debian/changelog
=====================================
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libthread-pool (1.0.0-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #???)
+
+ -- Andreas Tille <tille at debian.org>  Sat, 09 Jun 2018 23:05:58 +0200


=====================================
debian/compat
=====================================
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+11


=====================================
debian/control
=====================================
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,44 @@
+Source: libthread-pool
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: science
+Priority: optional
+Build-Depends: debhelper (>= 11~),
+               cmake,
+               d-shlibs,
+               rename,
+               libgtest-dev
+Standards-Version: 4.1.4
+Vcs-Browser: https://salsa.debian.org/med-team/libthread-pool
+Vcs-Git: https://salsa.debian.org/med-team/libthread-pool.git
+Homepage: https://github.com/rvaser/libthread-pool
+
+Package: liblibthread-pool1
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: C++ thread pool library
+ A thread pool is a software design pattern for achieving concurrency of
+ execution in a computer program. Often also called a replicated workers
+ or worker-crew model,[1] a thread pool maintains multiple threads
+ waiting for tasks to be allocated for concurrent execution by the
+ supervising program.
+ .
+ This package contains a shared library with a thread pool
+ implementation.
+
+Package: liblibthread-pool-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         liblibthread-pool1.1.3 (= ${binary:Version})
+Description: C++ thread pool library (devel)
+ A thread pool is a software design pattern for achieving concurrency of
+ execution in a computer program. Often also called a replicated workers
+ or worker-crew model,[1] a thread pool maintains multiple threads
+ waiting for tasks to be allocated for concurrent execution by the
+ supervising program.
+ .
+ This package contains the static library and the header files.


=====================================
debian/copyright
=====================================
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: thread_pool
+Upstream-Contact: 
+Source: https://github.com/rvaser/thread_pool/releases
+
+Files: *
+Copyright: 2017-2018 Robert Vaser
+License: MIT
+
+Files: debian/*
+Copyright: 2018 Andreas Tille <tille at debian.org>
+License: MIT
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.


=====================================
debian/patches/series
=====================================
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+shared_and_static.patch


=====================================
debian/patches/shared_and_static.patch
=====================================
--- /dev/null
+++ b/debian/patches/shared_and_static.patch
@@ -0,0 +1,30 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update:  Fri, 08 Jun 2018 13:20:51 +0200
+Description: Build shared and static lib
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -11,14 +11,22 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ 
+ option(thread_pool_build_tests "Build thread_pool unit tests" OFF)
+ 
+-add_library(thread_pool STATIC
++add_library(thread_pool SHARED
++    src/thread_pool.cpp)
++
++add_library(thread_pool_static STATIC
+     src/thread_pool.cpp)
+ 
+ target_include_directories(thread_pool PUBLIC
+     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+     $<INSTALL_INTERFACE:include>)
+ 
++target_include_directories(thread_pool_static PUBLIC
++    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
++    $<INSTALL_INTERFACE:include>)
++
+ install(TARGETS thread_pool DESTINATION lib)
++install(TARGETS thread_pool_static DESTINATION lib)
+ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/thread_pool DESTINATION include)
+ 
+ if (thread_pool_build_tests)


=====================================
debian/rules
=====================================
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+
+%:
+	dh $@
+
+override_dh_install:
+	dh_install
+	file-rename 's/_static\.a/.a/' `find debian -name "lib*_static.a"`
+	d-shlibmove --commit \
+		    --multiarch \
+		    --devunversioned \
+		    --exclude-la \
+		    --movedev debian/tmp/usr/include/* usr/include \
+		    debian/tmp/usr/lib/*/*.so


=====================================
debian/source/format
=====================================
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)


=====================================
debian/watch
=====================================
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+
+https://github.com/rvaser/thread_pool/releases .*/archive/@ANY_VERSION@@ARCHIVE_EXT@



View it on GitLab: https://salsa.debian.org/med-team/libthread-pool/commit/4f130c64ae1ed3412fa4a53fe8c673295d9f97e4

-- 
View it on GitLab: https://salsa.debian.org/med-team/libthread-pool/commit/4f130c64ae1ed3412fa4a53fe8c673295d9f97e4
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20180610/796ddf1f/attachment-0001.html>


More information about the debian-med-commit mailing list