[med-svn] [Git][med-team/libslow5lib][master] 2 commits: Add soversion

Andreas Tille (@tille) gitlab at salsa.debian.org
Thu Jun 30 09:25:14 BST 2022



Andreas Tille pushed to branch master at Debian Med / libslow5lib


Commits:
47bf46de by Andreas Tille at 2022-06-30T09:50:18+02:00
Add soversion

- - - - -
1365bd3b by Andreas Tille at 2022-06-30T10:24:44+02:00
Use proper library names and d-shlibs to move around files

- - - - -


3 changed files:

- debian/control
- debian/patches/enable_shared_and_static.patch
- debian/rules


Changes:

=====================================
debian/control
=====================================
@@ -5,6 +5,7 @@ Section: science
 Priority: optional
 Build-Depends: debhelper-compat (= 13),
                cmake,
+               d-shlibs,
                dh-python,
                python3,
                libstreamvbyte-dev,
@@ -16,8 +17,9 @@ Vcs-Git: https://salsa.debian.org/med-team/libslow5lib.git
 Homepage: https://github.com/hasindu2008/slow5lib
 Rules-Requires-Root: no
 
-Package: libslow5lib
+Package: libslow5-0
 Architecture: any
+Section: libs
 Depends: ${shlibs:Depends},
          ${misc:Depends}
 Description: library for reading & writing SLOW5 files
@@ -38,3 +40,31 @@ Description: library for reading & writing SLOW5 files
  permitting efficient parallel access. Detailed benchmarking experiments
  have shown that SLOW5 format is an order of magnitude faster and
  significantly smaller than FAST5.
+
+Package: libslow5-dev
+Architecture: any
+Section: libdevel
+Depends: libslow5-0 (= ${binary:Version}),
+         ${shlibs:Depends},
+         ${misc:Depends}
+Description: header and static library for reading & writing SLOW5 files
+ Slow5lib is a software library for reading & writing SLOW5 files.
+ Slow5lib is designed to facilitate use of data in SLOW5 format by third-
+ party software packages. Existing packages that read/write data in FAST5
+ format can be easily modified to support SLOW5.
+ .
+ SLOW5 is a new file format for storing signal data from Oxford Nanopore
+ Technologies (ONT) devices. SLOW5 was developed to overcome inherent
+ limitations in the standard FAST5 signal data format that prevent
+ efficient, scalable analysis and cause many headaches for developers.
+ SLOW5 can be encoded in human-readable ASCII format, or a more compact
+ and efficient binary format (BLOW5) - this is analogous to the seminal
+ SAM/BAM format for storing DNA sequence alignments. The BLOW5 binary
+ format supports *zlib* (DEFLATE) compression, or other compression
+ methods, thereby minimising the data storage footprint while still
+ permitting efficient parallel access. Detailed benchmarking experiments
+ have shown that SLOW5 format is an order of magnitude faster and
+ significantly smaller than FAST5.
+ .
+ This is the development package containing headers and static library.
+


=====================================
debian/patches/enable_shared_and_static.patch
=====================================
@@ -4,7 +4,7 @@ Description: Enable static and shared library
 
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -42,16 +42,17 @@ set(slow5_press src/slow5_press.c)
+@@ -42,18 +42,31 @@ set(slow5_press src/slow5_press.c)
  # add_executable(slow5exmp ${openmp_get_reads})
  
  
@@ -26,11 +26,25 @@ Description: Enable static and shared library
 +#endif(SLOW5_LINK_STATIC)
 +#unset(SLOW5_LINK_STATIC CACHE)
  
++set_target_properties(slow5 PROPERTIES
++        SOVERSION 0
++)
++
 +target_link_libraries(slow5_static)
  target_link_libraries(slow5)
  
++set(slow5_targets slow5 slow5_static)
++
++target_compile_definitions(slow5_static PUBLIC _GLIBCXX_DEBUG) # PUBLIC to maintain ABI compatibility
++target_compile_definitions(slow5 PUBLIC _GLIBCXX_DEBUG) # PUBLIC to maintain ABI compatibility
++
++target_include_directories(slow5_static PUBLIC inclue)
++target_include_directories(slow5 PUBLIC include)
++
  # Build a static lib
-@@ -72,3 +73,10 @@ target_link_libraries(slow5)
+ #add_library(slow5 STATIC ${slow5_} ${slow5_idx} ${slow5_misc} ${slow5_press})
+ #
+@@ -72,3 +85,10 @@ target_link_libraries(slow5)
  #     target_link_libraries(slow5test slow5 streamvbyte_slow5 -lz -ldl -lm)
  #     target_link_libraries(slow5exmp slow5 streamvbyte_slow5 -lz -ldl -lm)
  # ENDIF()


=====================================
debian/rules
=====================================
@@ -26,6 +26,12 @@ include /usr/share/dpkg/default.mk
 #	do_stuff_for_testing
 #endif
 
-### If you **really** can not use uscan (even not with mode=git) use a debian/get-orig-script
-#get-orig-source:
-#	. debian/get-orig-source
+override_dh_install:
+	mv debian/tmp/usr/lib/$(DEB_HOST_GNU_TYPE)/libslow5_static.a debian/tmp/usr/lib/$(DEB_HOST_GNU_TYPE)/libslow5.a
+	d-shlibmove --commit \
+		    --multiarch \
+		    --devunversioned \
+		    --exclude-la \
+		    --movedev include usr \
+		    debian/tmp/usr/lib/$(DEB_HOST_GNU_TYPE)/libslow5.so
+	dh_install



View it on GitLab: https://salsa.debian.org/med-team/libslow5lib/-/compare/c3389d9836971c9402dbac03dbc9c8a83291fdfc...1365bd3ba5f28c73f869de98d9096cc3bb9e8fba

-- 
View it on GitLab: https://salsa.debian.org/med-team/libslow5lib/-/compare/c3389d9836971c9402dbac03dbc9c8a83291fdfc...1365bd3ba5f28c73f869de98d9096cc3bb9e8fba
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20220630/f668ccb4/attachment-0001.htm>


More information about the debian-med-commit mailing list