[med-svn] [gatb-core] 04/04: use d-shlibs; TODO: multiarch, dynamic linking of tools

Andreas Tille tille at debian.org
Wed Dec 13 22:08:12 UTC 2017


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

tille pushed a commit to branch master
in repository gatb-core.

commit ab0547d335221d675a3888fd04cbd4e1c9209300
Author: Andreas Tille <tille at debian.org>
Date:   Wed Dec 13 23:07:33 2017 +0100

    use d-shlibs; TODO: multiarch, dynamic linking of tools
---
 debian/control                            | 64 ++++++++++++++++++++++++++++++-
 debian/gatb-core-testdata.install         |  1 +
 debian/gatb-core.docs                     |  1 +
 debian/libgatbcore-dev.examples           |  1 +
 debian/patches/fix_install_location.patch | 16 ++------
 debian/rules                              | 24 ++++--------
 6 files changed, 77 insertions(+), 30 deletions(-)

diff --git a/debian/control b/debian/control
index 8b71222..822756f 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Uploaders: Nadiya Sitdykova <rovenskasa at gmail.com>,
 Section: science
 Priority: optional
 Build-Depends: debhelper (>= 10),
+               d-shlibs,
                cmake,
                libcppunit-dev,
                libhdf5-dev,
@@ -21,7 +22,7 @@ Package: gatb-core
 Architecture: any
 Depends: ${shlibs:Depends},
          ${misc:Depends}
-Description: The Genome Analysis Toolbox with de-Bruijn graph
+Description: Genome Analysis Toolbox with de-Bruijn graph
  The GATB-CORE project provides a set of highly efficient 
  algorithms to analyse NGS data sets. These methods enable 
  the analysis of data sets of any size on multi-core desktop
@@ -33,3 +34,64 @@ Description: The Genome Analysis Toolbox with de-Bruijn graph
  However, it can be used to create such tools. There already 
  exist a set of ready-to-use tools relying on GATB-CORE 
  library: see https://gatb.inria.fr/software/
+
+Package: libgatbcore0
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: dynamic library of the Genome Analysis Toolbox
+ The GATB-CORE project provides a set of highly efficient 
+ algorithms to analyse NGS data sets. These methods enable 
+ the analysis of data sets of any size on multi-core desktop
+ computers, including very huge amount of reads data coming
+ from any kind of organisms such as bacteria, plants, 
+ animals and even complex samples (e.g. metagenomes). 
+ Read more about GATB at https://gatb.inria.fr/. 
+ By itself GATB-CORE is not an NGS data analysis tool. 
+ However, it can be used to create such tools. There already 
+ exist a set of ready-to-use tools relying on GATB-CORE 
+ library: see https://gatb.inria.fr/software/
+ .
+ This package contains the dynamic library.
+
+Package: libgatbcore-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         libgatbcore0 (= ${binary:Version}),
+Description: development library of the Genome Analysis Toolbox
+ The GATB-CORE project provides a set of highly efficient 
+ algorithms to analyse NGS data sets. These methods enable 
+ the analysis of data sets of any size on multi-core desktop
+ computers, including very huge amount of reads data coming
+ from any kind of organisms such as bacteria, plants, 
+ animals and even complex samples (e.g. metagenomes). 
+ Read more about GATB at https://gatb.inria.fr/. 
+ By itself GATB-CORE is not an NGS data analysis tool. 
+ However, it can be used to create such tools. There already 
+ exist a set of ready-to-use tools relying on GATB-CORE 
+ library: see https://gatb.inria.fr/software/
+ .
+ This package contains the static library and the header files
+ of the gatb-core library.
+
+Package: gatb-core-testdata
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Description: Genome Analysis Toolbox with de-Bruijn graph (test data)
+ The GATB-CORE project provides a set of highly efficient 
+ algorithms to analyse NGS data sets. These methods enable 
+ the analysis of data sets of any size on multi-core desktop
+ computers, including very huge amount of reads data coming
+ from any kind of organisms such as bacteria, plants, 
+ animals and even complex samples (e.g. metagenomes). 
+ Read more about GATB at https://gatb.inria.fr/. 
+ By itself GATB-CORE is not an NGS data analysis tool. 
+ However, it can be used to create such tools. There already 
+ exist a set of ready-to-use tools relying on GATB-CORE 
+ library: see https://gatb.inria.fr/software/
+ .
+ This package contains some data to test the library.
diff --git a/debian/gatb-core-testdata.install b/debian/gatb-core-testdata.install
new file mode 100644
index 0000000..e6e54ae
--- /dev/null
+++ b/debian/gatb-core-testdata.install
@@ -0,0 +1 @@
+debian/tmp/usr/test	usr/share/doc/gatb-core
diff --git a/debian/gatb-core.docs b/debian/gatb-core.docs
new file mode 100644
index 0000000..c0cb438
--- /dev/null
+++ b/debian/gatb-core.docs
@@ -0,0 +1 @@
+debian/tmp/usr/README.txt
diff --git a/debian/libgatbcore-dev.examples b/debian/libgatbcore-dev.examples
new file mode 100644
index 0000000..96367d5
--- /dev/null
+++ b/debian/libgatbcore-dev.examples
@@ -0,0 +1 @@
+debian/tmp/usr/share/doc/gatb-core/examples
diff --git a/debian/patches/fix_install_location.patch b/debian/patches/fix_install_location.patch
index 85880d3..4b86883 100644
--- a/debian/patches/fix_install_location.patch
+++ b/debian/patches/fix_install_location.patch
@@ -4,7 +4,7 @@ Description: Install examples into correct dir
 
 --- a/gatb-core/CMakeLists.txt
 +++ b/gatb-core/CMakeLists.txt
-@@ -284,16 +284,16 @@ IF (EXISTS "${PROJECT_SOURCE_DIR}/exampl
+@@ -284,16 +284,17 @@ IF (EXISTS "${PROJECT_SOURCE_DIR}/exampl
      ENDIF()
  ENDIF()
  # add example snippets into binary archive (use by CPack directive)
@@ -19,20 +19,10 @@ Description: Install examples into correct dir
 -    INSTALL (FILES ${PROJECT_SOURCE_DIR}/doc/misc/README.txt  DESTINATION . OPTIONAL)
 -    INSTALL (FILES ${PROJECT_SOURCE_DIR}/LICENCE              DESTINATION . OPTIONAL)
 -    INSTALL (FILES ${PROJECT_SOURCE_DIR}/THIRDPARTIES.md      DESTINATION . OPTIONAL)
-+    INSTALL (FILES ${PROJECT_SOURCE_DIR}/doc/misc/README.txt  "share/doc/gatb-core" . OPTIONAL)
++    INSTALL (FILES ${PROJECT_SOURCE_DIR}/doc/misc/README.txt   DESTINATION . OPTIONAL)
++## does not work :-( ##    INSTALL (FILES ${PROJECT_SOURCE_DIR}/doc/misc/README.txt  "share/doc/gatb-core" . OPTIONAL)
 +#    INSTALL (FILES ${PROJECT_SOURCE_DIR}/LICENCE              DESTINATION . OPTIONAL)
 +#    INSTALL (FILES ${PROJECT_SOURCE_DIR}/THIRDPARTIES.md      DESTINATION . OPTIONAL)
  #    INSTALL (DIRECTORY ${PROJECT_SOURCE_DIR}/thirdparty/boost DESTINATION ./include)
  ENDIF()
  
---- a/gatb-core/test/unit/CMakeLists.txt
-+++ b/gatb-core/test/unit/CMakeLists.txt
-@@ -25,6 +25,6 @@ add_custom_target (gatb_test gatb-core-c
- #################################################
- #  INSTALL 
- #################################################
--install (TARGETS gatb-core-cppunit   DESTINATION test)
--install (DIRECTORY ${gatb-core_SOURCE_DIR}/test/db DESTINATION test/)
-+install (TARGETS gatb-core-cppunit   "share/doc/gatb-core" test)
-+install (DIRECTORY ${gatb-core_SOURCE_DIR}/test/db "share/doc/gatb-core" test/)
-     
diff --git a/debian/rules b/debian/rules
index 72c5902..484a91e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,24 +1,16 @@
 #!/usr/bin/make -f
-# See debhelper(7) (uncomment to enable)
-# output every command that modifies files on the build system.
 #export DH_VERBOSE = 1
 
-
-# see FEATURE AREAS in dpkg-buildflags(1)
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
-# see ENVIRONMENT in dpkg-buildflags(1)
-# package maintainers to append CFLAGS
-#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
-# package maintainers to append LDFLAGS
-#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-
-
 %:
 	dh $@ --sourcedirectory=gatb-core
 
-# dh_make generated override targets
-# This is example for Cmake (See https://bugs.debian.org/641051 )
-#override_dh_auto_configure:
-#	dh_auto_configure -- #	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
-
+override_dh_install:
+	dh_install
+	d-shlibmove --commit \
+		    --multiarch \
+		    --devunversioned \
+		    --exclude-la \
+                    --movedev debian/tmp/usr/include usr \
+                    debian/tmp/usr/lib/*/*.so

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



More information about the debian-med-commit mailing list