summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog23
-rw-r--r--debian/control50
-rw-r--r--debian/copyright28
-rw-r--r--debian/gbp.conf2
-rw-r--r--debian/libopentracing-c-wrapper-dev.install4
-rw-r--r--debian/libopentracing-c-wrapper0.install1
-rw-r--r--debian/libopentracing-c-wrapper0.symbols15
-rw-r--r--debian/patches/fix-ac-packagename.patch18
-rw-r--r--debian/patches/remove-rpath-from-pc.patch15
-rw-r--r--debian/patches/series2
-rwxr-xr-xdebian/rules11
-rw-r--r--debian/source/format1
-rw-r--r--debian/upstream/metadata6
-rw-r--r--debian/watch5
14 files changed, 181 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..6e6b8fb
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,23 @@
+opentracing-c-wrapper (1.1.3-3) unstable; urgency=medium
+
+ * Add a patch to remove a redundant rpath from the pkgconfig file.
+
+ -- Stephen Gelman <ssgelm@debian.org> Thu, 11 Nov 2021 10:57:26 -0600
+
+opentracing-c-wrapper (1.1.3-2) unstable; urgency=medium
+
+ * Upload to unstable
+
+ -- Stephen Gelman <ssgelm@debian.org> Sun, 07 Nov 2021 00:52:43 -0500
+
+opentracing-c-wrapper (1.1.3-1) experimental; urgency=medium
+
+ * New upstream release
+
+ -- Stephen Gelman <ssgelm@debian.org> Sun, 07 Nov 2021 00:49:02 -0500
+
+opentracing-c-wrapper (1.1.0-1) experimental; urgency=medium
+
+ * Initial release (Closes: #991194)
+
+ -- Stephen Gelman <ssgelm@debian.org> Thu, 15 Jul 2021 21:44:14 -0500
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..415b5f0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,50 @@
+Source: opentracing-c-wrapper
+Priority: optional
+Maintainer: Stephen Gelman <ssgelm@debian.org>
+Build-Depends: debhelper-compat (= 13),
+ pkg-config,
+ libopentracing-dev,
+Standards-Version: 4.5.1
+Section: libs
+Homepage: https://github.com/haproxytech/opentracing-c-wrapper/
+Vcs-Browser: https://salsa.debian.org/ssgelm/opentracing-c-wrapper
+Vcs-Git: https://salsa.debian.org/ssgelm/opentracing-c-wrapper.git
+Rules-Requires-Root: no
+
+Package: libopentracing-c-wrapper-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends: libopentracing-c-wrapper0 (= ${binary:Version}), ${misc:Depends},
+ libopentracing-dev,
+Description: C wrapper for the C++ impl of the OpenTracing API dev libs
+ OpenTracing C Wrapper library was created due to the need to use distributed
+ tracing within C programs.
+ .
+ The OpenTracing project (https://opentracing.io/) has published a
+ C-language implementation on https://github.com/opentracing/opentracing-c
+ but that implementation is incomplete, with the last update on Jun
+ 27th 2018
+ .
+ This library takes inspiration from the header files in that project but
+ implements the proposed functionality fully by wrapping the functional
+ C++ library.
+ .
+ This package contains the development headers for libopentracing-c-wrapper
+
+Package: libopentracing-c-wrapper0
+Architecture: any
+Multi-Arch: same
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: C wrapper for the C++ impl of the OpenTracing API
+ OpenTracing C Wrapper library was created due to the need to use distributed
+ tracing within C programs.
+ .
+ The OpenTracing project (https://opentracing.io/) has published a
+ C-language implementation on https://github.com/opentracing/opentracing-c
+ but that implementation is incomplete, with the last update on Jun
+ 27th 2018
+ .
+ This library takes inspiration from the header files in that project but
+ implements the proposed functionality fully by wrapping the functional
+ C++ library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5c1e5b0
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: opentracing-c-wrapper
+Upstream-Contact: HAProxy Technologies <contact@haproxy.com>
+Source: https://github.com/haproxytech/opentracing-c-wrapper/
+
+Files: *
+Copyright: 2020-2021 HAProxy Technologies
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2021 Stephen Gelman <ssgelm@debian.org>
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/libopentracing-c-wrapper-dev.install b/debian/libopentracing-c-wrapper-dev.install
new file mode 100644
index 0000000..b973af4
--- /dev/null
+++ b/debian/libopentracing-c-wrapper-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/lib*.so
+usr/lib/*/lib*.a
+usr/lib/*/pkgconfig/*
diff --git a/debian/libopentracing-c-wrapper0.install b/debian/libopentracing-c-wrapper0.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libopentracing-c-wrapper0.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/libopentracing-c-wrapper0.symbols b/debian/libopentracing-c-wrapper0.symbols
new file mode 100644
index 0000000..454f4ac
--- /dev/null
+++ b/debian/libopentracing-c-wrapper0.symbols
@@ -0,0 +1,15 @@
+libopentracing-c-wrapper.so.0 libopentracing-c-wrapper0 #MINVER#
+* Build-Depends-Package: libopentracing-c-wrapper-dev
+ otc_binary_data_destroy@Base 1.1.0
+ otc_binary_data_new@Base 1.1.0
+ otc_ext_init@Base 1.1.0
+ otc_file_read@Base 1.1.0
+ otc_statistics@Base 1.1.0
+ otc_text_map_add@Base 1.1.0
+ otc_text_map_destroy@Base 1.1.0
+ otc_text_map_new@Base 1.1.0
+ otc_tracer_global@Base 1.1.0
+ otc_tracer_init@Base 1.1.0
+ otc_tracer_init_global@Base 1.1.0
+ otc_tracer_load@Base 1.1.0
+ otc_tracer_start@Base 1.1.0
diff --git a/debian/patches/fix-ac-packagename.patch b/debian/patches/fix-ac-packagename.patch
new file mode 100644
index 0000000..50f3fce
--- /dev/null
+++ b/debian/patches/fix-ac-packagename.patch
@@ -0,0 +1,18 @@
+Description: Hard-code the autoconf package name. Debian includes the version
+ number in the directory name so it gets set to the wrong name and thereby
+ generates the wrong .pc file
+Forwarded: not-needed
+Author: Stephen Gelman <ssgelm@debian.org>
+Last-Update: 2021-07-29
+---
+--- a/configure.ac
++++ b/configure.ac
+@@ -4,7 +4,7 @@
+
+ AC_PREREQ([2.69])
+ AC_COPYRIGHT([Copyright (C) 2020 HAProxy Technologies])
+-AC_INIT(m4_esyscmd_s([basename ${PWD}]), m4_esyscmd_s([awk '/Package/ { print $3 }' VERSION]), [mzagorac@haproxy.com])
++AC_INIT([opentracing-c-wrapper], m4_esyscmd_s([awk '/Package/ { print $3 }' VERSION]), [mzagorac@haproxy.com])
+ AC_CONFIG_MACRO_DIR([m4])
+ AX_VARIABLE_SET([LIB_VERSION], m4_esyscmd_s([awk '/Library/ { print $3 }' VERSION]))
+
diff --git a/debian/patches/remove-rpath-from-pc.patch b/debian/patches/remove-rpath-from-pc.patch
new file mode 100644
index 0000000..fbd53fa
--- /dev/null
+++ b/debian/patches/remove-rpath-from-pc.patch
@@ -0,0 +1,15 @@
+Description: Remove rpath from the PC file. Since debian is installing to the
+ /usr prefix, it's unnecessary and generates a lintian warning.
+Forwarded: not-needed
+Author: Stephen Gelman <ssgelm@debian.org>
+Last-Update: 2021-11-11
+---
+--- a/opentracing-c-wrapper.pc.in
++++ b/opentracing-c-wrapper.pc.in
+@@ -8,5 +8,5 @@
+ Version: @VERSION@
+
+ Requires:
+-Libs: -L${libdir} -Wl,--rpath,${libdir} -lopentracing-c-wrapper
++Libs: -L${libdir} -lopentracing-c-wrapper
+ Cflags: -I${includedir}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c3bb613
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+fix-ac-packagename.patch
+remove-rpath-from-pc.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2f9a748
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+ dh $@
+
+override_dh_auto_install:
+ dh_auto_install
+ rm debian/tmp/usr/lib/*/*.la
+ rm debian/tmp/usr/bin/ot-c-wrapper-test
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)
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..5dce778
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+Bug-Database: https://github.com/haproxytech/opentracing-c-wrapper/issues
+Bug-Submit: https://github.com/haproxytech/opentracing-c-wrapper/issues/new
+Changelog: https://github.com/haproxytech/opentracing-c-wrapper/blob/master/ChangeLog
+Documentation: https://github.com/haproxytech/opentracing-c-wrapper/blob/master/README
+Repository: https://github.com/haproxytech/opentracing-c-wrapper/
+Repository-Browse: https://github.com/haproxytech/opentracing-c-wrapper/
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..18ec8f9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=4
+
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%opentracing-c-wrapper-$1.tar.gz%" \
+ https://github.com/haproxytech/opentracing-c-wrapper/tags \
+ (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate