[libsdsl] 01/13: debian files

Tomasz Buchert tomasz at moszumanska.debian.org
Sun Apr 10 17:45:58 UTC 2016


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

tomasz pushed a commit to branch master
in repository libsdsl.

commit c73203c4f50c57b65b6a2335756c691b01a52715
Author: Tomasz Buchert <tomasz at buchert.pl>
Date:   Wed Aug 5 20:54:03 2015 +0200

    debian files
---
 debian/changelog                            |  5 ++
 debian/compat                               |  1 +
 debian/control                              | 42 ++++++++++++++++
 debian/copyright                            | 29 +++++++++++
 debian/gbp.conf                             |  8 +++
 debian/libsdsl-dev.install                  |  2 +
 debian/libsdsl3.install                     |  1 +
 debian/patches/0001-Patch-cmake-files.patch | 75 +++++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 debian/rules                                |  9 ++++
 debian/source/format                        |  1 +
 debian/watch                                |  3 ++
 12 files changed, 177 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d94a99d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libsdsl (2.0.3-1) unstable; urgency=low
+
+  * Initial release (Closes: #7777777) TO FIX
+
+ -- Tomasz Buchert <tomasz at debian.org>  Tue, 04 Aug 2015 20:28:45 +0200
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..73ec536
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,42 @@
+Source: libsdsl
+Priority: optional
+Maintainer: Tomasz Buchert <tomasz at debian.org>
+Build-Depends: debhelper (>= 9), cmake, libdivsufsort-dev
+Standards-Version: 3.9.6
+Section: libs
+Homepage: https://github.com/simongog/sdsl-lite
+#Vcs-Git: git://anonscm.debian.org/collab-maint/libsdsl.git
+#Vcs-Browser: https://anonscm.debian.org/gitweb/?p=collab-maint/libsdsl.git;a=summary
+
+Package: libsdsl-dev
+Section: libdevel
+Architecture: any
+Depends: libsdsl3 (= ${binary:Version}), ${misc:Depends}
+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 the information-theoretic lower bound of the
+ object while supporting operations of the original object
+ efficiently. The theoretical time complexity of an operations
+ performed on the classical data structure and the equivalent succinct
+ data structure are (most of the time) identical.
+ .
+ This package installs development files.
+
+Package: libsdsl3
+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 the information-theoretic lower bound of the
+ object while supporting operations of the original object
+ efficiently. The theoretical time complexity of an operations
+ performed on the classical data structure and the equivalent succinct
+ data structure are (most of the time) identical.
+ .
+ This package installs static library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c334b9d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libsdsl
+Source: https://github.com/simongog/sdsl-lite
+
+Files: *
+Copyright: 2007-2014 Simon Gog
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2015 Tomasz Buchert <tomasz at debian.org>
+License: GPL-3+
+
+
+License: GPL-3+
+ This package 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.
+ .
+ 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 General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..6f2a6cc
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,8 @@
+[DEFAULT]
+upstream-branch=upstream
+debian-branch=master
+pristine-tar = True
+
+[buildpackage]
+export-dir = ../build-area/
+sign-tags = True
diff --git a/debian/libsdsl-dev.install b/debian/libsdsl-dev.install
new file mode 100644
index 0000000..f3800aa
--- /dev/null
+++ b/debian/libsdsl-dev.install
@@ -0,0 +1,2 @@
+usr/include/*
+usr/lib/*/lib*.so
diff --git a/debian/libsdsl3.install b/debian/libsdsl3.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libsdsl3.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/patches/0001-Patch-cmake-files.patch b/debian/patches/0001-Patch-cmake-files.patch
new file mode 100644
index 0000000..36d5765
--- /dev/null
+++ b/debian/patches/0001-Patch-cmake-files.patch
@@ -0,0 +1,75 @@
+From: Tomasz Buchert <tomasz at debian.org>
+Date: Tue, 4 Aug 2015 21:51:07 +0200
+Subject: Patch cmake files
+
+We change three things:
+
+   * we comment out machine-specific compiler flags
+   * we disable compilation of "external" libraries; libdivsufsort is
+     packaged in Debian now
+   * we allow to specify final library directory via
+     CMAKE_LIBRARY_ARCHITECTURE to support Debian multi-arch
+---
+ CMakeLists.txt     | 22 ++++++++++++++--------
+ lib/CMakeLists.txt |  6 +++---
+ 2 files changed, 17 insertions(+), 11 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 20b1377..39f2329 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -51,17 +51,23 @@ else()
+     append_cxx_compiler_flags("-O3 -ffast-math -funroll-loops" "CLANG" CMAKE_CXX_OPT_FLAGS)
+ endif()
+ 
++## disable machine-specific flags
++# include(CheckSSE4_2)
++# if( BUILTIN_POPCNT )
++#    if( CMAKE_COMPILER_IS_GNUCXX )
++#         append_cxx_compiler_flags("-msse4.2" "GCC" CMAKE_CXX_OPT_FLAGS)
++#     else()
++#         append_cxx_compiler_flags("-msse4.2" "CLANG" CMAKE_CXX_OPT_FLAGS)
++#     endif()
++# endif()
+ 
+-include(CheckSSE4_2)
+-if( BUILTIN_POPCNT )
+-    if( CMAKE_COMPILER_IS_GNUCXX )
+-        append_cxx_compiler_flags("-msse4.2" "GCC" CMAKE_CXX_OPT_FLAGS)
+-    else()
+-        append_cxx_compiler_flags("-msse4.2" "CLANG" CMAKE_CXX_OPT_FLAGS)
+-    endif()
++set(LIBDIR "lib")
++if(DEFINED CMAKE_LIBRARY_ARCHITECTURE)
++  set(LIBDIR "lib/${CMAKE_LIBRARY_ARCHITECTURE}")
+ endif()
+ 
+-add_subdirectory(external)
++## we use packaged libdivsufsort
++# add_subdirectory(external)
+ add_subdirectory(include)
+ add_subdirectory(lib)
+ 
+diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
+index 32888b2..1a5660e 100644
+--- 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" 
++#					"${CMAKE_CURRENT_BINARY_DIR}/../external/libdivsufsort-2.0.1/include" 
+ 					)
+ 
+ 
+@@ -12,8 +12,8 @@ add_library( sdsl ${sdsl_SRCS} )
+ 
+ install(TARGETS sdsl
+ 		RUNTIME DESTINATION bin
+-		LIBRARY DESTINATION lib
+-		ARCHIVE DESTINATION lib)	
++		LIBRARY DESTINATION "${LIBDIR}"
++		ARCHIVE DESTINATION "${LIBDIR}")	
+ 
+ set_target_properties(sdsl PROPERTIES
+ 	VERSION "${LIBRARY_VERSION_FULL}"	
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ee3a520
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Patch-cmake-files.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..14dafce
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE = 1
+
+%:
+	dh $@ --parallel
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DBUILD_SHARED_LIBS=ON \
+		-DCMAKE_LIBRARY_ARCHITECTURE=${DEB_HOST_MULTIARCH}
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..0d50bee
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/libsdsl-$1\.tar\.gz/ \
+  https://github.com/simongog/sdsl-lite/tags .*/v?(\d\S*)\.tar\.gz

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



More information about the debian-science-commits mailing list