[med-svn] [libsdsl] 02/02: Add initial packaging

Andreas Tille tille at debian.org
Fri Apr 8 15:23:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository libsdsl.

commit 41a63e8789430bf069b55481adb7d728a1409bf6
Author: Andreas Tille <tille at debian.org>
Date:   Fri Apr 8 17:09:39 2016 +0200

    Add initial packaging
---
 debian/changelog                                   |  5 +++
 debian/clean                                       |  1 +
 debian/compat                                      |  1 +
 debian/control                                     | 48 ++++++++++++++++++++++
 debian/copyright                                   | 21 ++++++++++
 debian/patches/dynamic_lib.patch                   | 24 +++++++++++
 debian/patches/series                              |  2 +
 .../use_debian_packaged_libdivsufsort.patch        | 22 ++++++++++
 debian/rules                                       | 31 ++++++++++++++
 debian/source/format                               |  1 +
 debian/watch                                       |  4 ++
 11 files changed, 160 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a8a47a6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libsdsl (2.0.3+dfsg-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #<bug>)
+
+ -- Andreas Tille <tille at debian.org>  Fri, 08 Apr 2016 11:20:31 +0200
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..658c4c6
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+Make.helper
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f2a5431
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,48 @@
+Source: libsdsl
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: libs
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               cmake,
+               d-shlibs,
+               libdivsufsort-dev
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libsdsl.git
+Vcs-Git: https://anonscm.debian.org/git/debian-med/libsdsl.git
+Homepage: https://github.com/simongog/sdsl-lite
+
+Package: libsdsl3
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: Succinct Data Structure Library
+ The Succinct Data Structure Library (SDSL) is a powerful and flexible
+ C++11 library implementing succinct data structures. In total, the
+ library contains the highlights of 40 research publications. Succinct
+ data structures can represent an object (such as a bitvector or a tree)
+ in space close to the information-theoretic lower bound of the object
+ while supporting operations of the original object efficiently. The
+ theoretical time complexity of an operation performed on the classical
+ data structure and the equivalent succinct data structure are (most of
+ the time) identical.
+
+Package: libsdsl-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         libsdsl3 (= ${binary:Version})
+Description: Succinct Data Structure Library (development files)
+ The Succinct Data Structure Library (SDSL) is a powerful and flexible
+ C++11 library implementing succinct data structures. In total, the
+ library contains the highlights of 40 research publications. Succinct
+ data structures can represent an object (such as a bitvector or a tree)
+ in space close to the information-theoretic lower bound of the object
+ while supporting operations of the original object efficiently. The
+ theoretical time complexity of an operation performed on the classical
+ data structure and the equivalent succinct data structure are (most of
+ the time) identical.
+ .
+ This package contains the header files and the static library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..29091c4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,21 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: SDSL
+Source: https://github.com/simongog/sdsl-lite/releases
+Files-Excluded: external/libdivsufsort*
+
+Files: *
+Copyright: 2007-2014 Simon Gog  All Right Reserved.
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2016 Andreas Tille <tille at debian.org>
+License: GPL-3+
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ On Debian systems you can find the full test of the GNU General Public
+ License at /usr/share/common-licenses/GPL.
diff --git a/debian/patches/dynamic_lib.patch b/debian/patches/dynamic_lib.patch
new file mode 100644
index 0000000..55f916c
--- /dev/null
+++ b/debian/patches/dynamic_lib.patch
@@ -0,0 +1,24 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 08 Apr 2016 11:20:31 +0200
+Description: Create dynamic library
+ Unfortunately this does not work that simple
+
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -8,7 +8,7 @@ file(GLOB libFiles RELATIVE ${CMAKE_CURR
+ 
+ set( sdsl_SRCS ${libFiles} )
+ 
+-add_library( sdsl ${sdsl_SRCS} )
++add_library( sdsl SHARED ${sdsl_SRCS} )
+ 
+ install(TARGETS sdsl
+ 		RUNTIME DESTINATION bin
+@@ -18,6 +18,6 @@ install(TARGETS sdsl
+ set_target_properties(sdsl PROPERTIES
+ 	VERSION "${LIBRARY_VERSION_FULL}"	
+ 	SOVERSION "${LIBRARY_VERSION_MAJOR}"	
+-#	DEFINE_SYMBOL SDSL_BUILD_DLL
++	DEFINE_SYMBOL SDSL_BUILD_DLL
+ #	RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../examples"
+ 	)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d39cf55
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+use_debian_packaged_libdivsufsort.patch
+dynamic_lib.patch
diff --git a/debian/patches/use_debian_packaged_libdivsufsort.patch b/debian/patches/use_debian_packaged_libdivsufsort.patch
new file mode 100644
index 0000000..df32e3b
--- /dev/null
+++ b/debian/patches/use_debian_packaged_libdivsufsort.patch
@@ -0,0 +1,22 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 08 Apr 2016 11:20:31 +0200
+Description: Use Debian packaged libdivsufsort
+ The code copy of this library is excluded via Files-Excluded
+
+--- a/external/CMakeLists.txt
++++ b/external/CMakeLists.txt
+@@ -1,4 +1,3 @@
+ 
+ add_subdirectory(gtest-1.6.0)
+-add_subdirectory(libdivsufsort-2.0.1)
+ 
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -1,6 +1,6 @@
+ include_directories(#"${CMAKE_CURRENT_SOURCE_DIR}/../include"
+ 					"${CMAKE_CURRENT_BINARY_DIR}/../include" 
+-					"${CMAKE_CURRENT_BINARY_DIR}/../external/libdivsufsort-2.0.1/include" 
++					"/usr/include" 
+ 					)
+ 
+ 
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d441a4b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+# some helpful variables - uncomment them if needed
+# shamelessly stolen from http://jmtd.net/log/awk/
+#DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+#VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
+#DEBFLAVOR      := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
+#DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+#DEBIAN_BRANCH  := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
+#GIT_TAG        := $(subst ~,_,$(VERSION))
+
+# alternatively to manually set those variables, you can
+#  include /usr/share/dpkg/default.mk
+# and use what is set there.
+
+%:
+	dh $@
+
+override_dh_install:
+	dh_install
+	d-shlibmove --commit \
+		    --multiarch \
+		    --devunversioned \
+                    --exclude-la \
+		    --movedev debian/tmp/usr/include/* usr/include \
+		    debian/tmp/usr/lib/*.so
+
+#get-orig-source:
+#	. debian/get-orig-source
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..b105eb9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts="repacksuffix=+dfsg,dversionmangle=s/\+dfsg//g,repack,compression=xz" \
+   https://github.com/simongog/sdsl-lite/releases .*/archive/v(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libsdsl.git



More information about the debian-med-commit mailing list