[benchmark] 01/05: Initial debian-folder
Anton Gladky
gladk at moszumanska.debian.org
Sat Nov 11 14:53:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
gladk pushed a commit to branch master
in repository benchmark.
commit 5b35e82c9c0c5825ca59fe606efc5c3dd13446f8
Author: Anton Gladky <gladk at debian.org>
Date: Sat Nov 11 09:49:45 2017 +0100
Initial debian-folder
---
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 44 ++++++++++++++++++++++++++
debian/copyright | 12 ++++++++
debian/libbenchmark-dev.install | 3 ++
debian/libbenchmark-tools.docs | 1 +
debian/libbenchmark-tools.install | 1 +
debian/libbenchmark1.install | 1 +
debian/patches/0001-Create-shared-lib.patch | 48 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 12 ++++++++
debian/source/format | 1 +
debian/watch | 3 ++
13 files changed, 133 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..2d2f7fe
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+benchmark (1.3.0-1) unstable; urgency=medium
+
+ * Initial upload. (Closes: #881378)
+
+ -- Anton Gladky <gladk at debian.org> Fri, 14 Jul 2017 22:26:42 +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..744093f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,44 @@
+Source: benchmark
+Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Anton Gladky <gladk at debian.org>
+Section: libs
+Priority: optional
+Build-Depends: cmake,
+ debhelper (>= 10)
+Standards-Version: 4.1.1
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/benchmark.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/benchmark.git
+Homepage: https://github.com/google/benchmark
+
+Package: libbenchmark-dev
+Architecture: any
+Section: libdevel
+Depends: libbenchmark1 (= ${binary:Version}),
+ ${misc:Depends}
+Description: Microbenchmark support library, development files
+ Library to support the benchmarking of functions, similar to unit-tests.
+ .
+ This package contains the development files.
+
+Package: libbenchmark1
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends},
+ ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Description: Microbenchmark support library, shared library
+ Library to support the benchmarking of functions, similar to unit-tests.
+ .
+ This package contains the shared library.
+
+Package: libbenchmark-tools
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+ ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Suggests: python (>> 3)
+Description: Microbenchmark support library, tools and documentation
+ Library to support the benchmarking of functions, similar to unit-tests.
+ .
+ This package contains tools and documentation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0c73c0c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,12 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: benchmark
+Source: https://github.com/google/benchmark
+License: Apache-2.0
+
+Files: *
+Copyright: 2015-2017 Google Inc.
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/Apache-2.0"
diff --git a/debian/libbenchmark-dev.install b/debian/libbenchmark-dev.install
new file mode 100644
index 0000000..8217f12
--- /dev/null
+++ b/debian/libbenchmark-dev.install
@@ -0,0 +1,3 @@
+usr/include
+usr/lib/*/libbenchmark.so
+usr/lib/cmake/
diff --git a/debian/libbenchmark-tools.docs b/debian/libbenchmark-tools.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/libbenchmark-tools.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/libbenchmark-tools.install b/debian/libbenchmark-tools.install
new file mode 100644
index 0000000..a330ec7
--- /dev/null
+++ b/debian/libbenchmark-tools.install
@@ -0,0 +1 @@
+tools/* usr/share/benchmark
diff --git a/debian/libbenchmark1.install b/debian/libbenchmark1.install
new file mode 100644
index 0000000..ef55700
--- /dev/null
+++ b/debian/libbenchmark1.install
@@ -0,0 +1 @@
+usr/lib/*/libbenchmark*.so.*
diff --git a/debian/patches/0001-Create-shared-lib.patch b/debian/patches/0001-Create-shared-lib.patch
new file mode 100644
index 0000000..3c5c2b2
--- /dev/null
+++ b/debian/patches/0001-Create-shared-lib.patch
@@ -0,0 +1,48 @@
+From 1855c5f905958cefb7900f209cfe88575abc0bab Mon Sep 17 00:00:00 2001
+From: Anton Gladky <gladk at debian.org>
+Date: Thu, 9 Nov 2017 21:01:38 +0100
+Subject: [PATCH] Create shared lib
+
+---
+ CMakeLists.txt | 2 +-
+ src/CMakeLists.txt | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+Index: benchmark-1.3.0/CMakeLists.txt
+===================================================================
+--- benchmark-1.3.0.orig/CMakeLists.txt
++++ benchmark-1.3.0/CMakeLists.txt
+@@ -23,7 +23,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_C
+
+ # Read the git tags to determine the project version
+ include(GetGitVersion)
+-get_git_version(GIT_VERSION)
++#get_git_version(GIT_VERSION)
+
+ # Tell the user what versions we are using
+ string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" VERSION ${GIT_VERSION})
+Index: benchmark-1.3.0/src/CMakeLists.txt
+===================================================================
+--- benchmark-1.3.0.orig/src/CMakeLists.txt
++++ benchmark-1.3.0/src/CMakeLists.txt
+@@ -12,7 +12,7 @@ file(GLOB
+ ${PROJECT_SOURCE_DIR}/include/benchmark/*.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
+
+-add_library(benchmark ${SOURCE_FILES})
++add_library(benchmark SHARED ${SOURCE_FILES})
+ set_target_properties(benchmark PROPERTIES
+ OUTPUT_NAME "benchmark"
+ VERSION ${GENERIC_LIB_VERSION}
+@@ -34,8 +34,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Windows
+ target_link_libraries(benchmark Shlwapi)
+ endif()
+
+-set(include_install_dir "include")
+-set(lib_install_dir "lib/")
++INCLUDE(GNUInstallDirs)
++set(include_install_dir ${CMAKE_INSTALL_INCLUDEDIR})
++set(lib_install_dir ${CMAKE_INSTALL_LIBDIR})
+ set(bin_install_dir "bin/")
+ set(config_install_dir "lib/cmake/${PROJECT_NAME}")
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..42f0f0d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Create-shared-lib.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6ab128f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+ dh $@
+
+UPSTREAM_VERSION ?= $(shell dpkg-parsechangelog \
+ | sed -rne 's/^Version: ([0-9.]+)[-+].*$$/\1/p')
+
+override_dh_auto_configure:
+ dh_auto_configure -- -DGIT_VERSION="$(UPSTREAM_VERSION)"
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/watch b/debian/watch
new file mode 100644
index 0000000..c4eab1f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)\d*)$/$1~$2/,dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \
+https://github.com/google/benchmark/tags .*/(v\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/benchmark.git
More information about the debian-science-commits
mailing list