[med-svn] [Git][med-team/sibelia][master] 2 commits: Spit into different binary packages

Andreas Tille gitlab at salsa.debian.org
Thu Feb 14 21:57:34 GMT 2019


Andreas Tille pushed to branch master at Debian Med / sibelia


Commits:
18f3e725 by Andreas Tille at 2019-02-14T16:49:00Z
Spit into different binary packages

- - - - -
e81d4a8b by Andreas Tille at 2019-02-14T21:57:10Z
Add autopkgtest

- - - - -


16 changed files:

- + debian/README.test
- debian/control
- debian/createmanpages
- − debian/manpages
- debian/rules
- + debian/sibelia-annotate.install
- debian/lintian-overrides → debian/sibelia-annotate.lintian-overrides
- + debian/sibelia-annotate.manpages
- + debian/sibelia-examples.install
- + debian/sibelia.docs
- + debian/sibelia.install
- + debian/sibelia.links
- + debian/sibelia.lintian-overrides
- + debian/sibelia.manpages
- + debian/tests/control
- + debian/tests/run-unit-test


Changes:

=====================================
debian/README.test
=====================================
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+    sh run-unit-test
+
+in order to confirm its integrity.


=====================================
debian/control
=====================================
@@ -17,6 +17,7 @@ Depends: ${shlibs:Depends},
          ${misc:Depends},
          python,
          lagan
+Suggests: sibelia-examples
 Description: comparative genomics tool
  Sibelia (Synteny Block ExpLoration tool) is a comparative genomics tool:
  It assists biologists in analysing the genomic variations that correlate
@@ -30,3 +31,43 @@ Description: comparative genomics tool
   1) shared regions,
   2) regions that present in one group of genomes but not in others,
   3) rearrangements that transform one genome to other genomes.
+
+Package: sibelia-examples
+Architecture: all
+Depends: ${misc:Depends},
+Description: comparative genomics tool (example data)
+ Sibelia (Synteny Block ExpLoration tool) is a comparative genomics tool:
+ It assists biologists in analysing the genomic variations that correlate
+ with pathogens, or the genomic changes that help microorganisms adapt in
+ different environments. Sibelia will also be helpful for the
+ evolutionary and genome rearrangement studies for multiple strains of
+ microorganisms.
+ .
+ Sibelia is useful in finding:
+ .
+  1) shared regions,
+  2) regions that present in one group of genomes but not in others,
+  3) rearrangements that transform one genome to other genomes.
+ .
+ This package contains example data for sibelia.
+
+Package: sibelia-annotate
+Architecture: all
+Depends: ${misc:Depends},
+         python,
+         openjdk-11-jre | default-jre
+Description: comparative genomics tool (annotation tool using snpEFF)
+ Sibelia (Synteny Block ExpLoration tool) is a comparative genomics tool:
+ It assists biologists in analysing the genomic variations that correlate
+ with pathogens, or the genomic changes that help microorganisms adapt in
+ different environments. Sibelia will also be helpful for the
+ evolutionary and genome rearrangement studies for multiple strains of
+ microorganisms.
+ .
+ Sibelia is useful in finding:
+ .
+  1) shared regions,
+  2) regions that present in one group of genomes but not in others,
+  3) rearrangements that transform one genome to other genomes.
+ .
+ This package contains an annotation tool using snpEFF.


=====================================
debian/createmanpages
=====================================
@@ -30,7 +30,10 @@ help2man --no-info --no-discard-stderr \
             --version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
 echo $AUTHOR >> $MANDIR/${progname}.1
 
-echo "$MANDIR/*.1" > debian/manpages
+cat > debian/sibelia.manpages <<EOT
+debian/C*.1
+debian/S*.1
+EOT
 
 cat <<EOT
 Please enhance the help2man output.


=====================================
debian/manpages deleted
=====================================
@@ -1 +0,0 @@
-debian/*.1


=====================================
debian/rules
=====================================
@@ -10,13 +10,15 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 %:
 	dh $@ --sourcedirectory=src
 
-override_dh_installdocs:
-	dh_installdocs
-	mv debian/$(DEB_SOURCE)/usr/share/Sibelia/doc/* debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)
-	rmdir debian/$(DEB_SOURCE)/usr/share/Sibelia/doc
-	dh_link usr/share/doc/$(DEB_SOURCE) usr/share/Sibelia/doc
-
 override_dh_install:
 	dh_install
 	find debian -name LICENSE.txt -delete
 	find debian -name INSTALL.md -delete
+
+override_dh_installman:
+	dh_installman
+	mkdir -p debian/$(DEB_SOURCE)-annotate//usr/share/man/man1
+	mv debian/$(DEB_SOURCE)-annotate/usr/share/man/py/man1/snpEffAnnotate.1 debian/$(DEB_SOURCE)-annotate/usr/share/man/man1/snpEffAnnotate.py.1
+	rm -rf debian/$(DEB_SOURCE)-annotate/usr/share/man/py/
+	mv debian/$(DEB_SOURCE)/usr/share/man/py/man1/C-Sibelia.1 debian/$(DEB_SOURCE)/usr/share/man/man1/C-Sibelia.py.1
+	rm -rf debian/$(DEB_SOURCE)/usr/share/man/py


=====================================
debian/sibelia-annotate.install
=====================================
@@ -0,0 +1,2 @@
+usr/bin/snpEffAnnotate.py
+usr/lib/Sibelia/snpEff


=====================================
debian/lintian-overrides → debian/sibelia-annotate.lintian-overrides
=====================================
@@ -1,4 +1,4 @@
 # see https://lists.debian.org/debian-med/2018/06/msg00043.html
-sibelia: script-with-language-extension usr/bin/*.*
+sibelia-annotate: script-with-language-extension usr/bin/*.*
 # this file should not be there in an official package - so just ignore the wrong place for now
-sibelia: jar-not-in-usr-share usr/lib/Sibelia/snpEff/snpEff.jar
+sibelia-annotate: jar-not-in-usr-share usr/lib/Sibelia/snpEff/snpEff.jar


=====================================
debian/sibelia-annotate.manpages
=====================================
@@ -0,0 +1 @@
+debian/snpEffAnnotate.py.1


=====================================
debian/sibelia-examples.install
=====================================
@@ -0,0 +1 @@
+usr/share/Sibelia/doc/examples	usr/share/doc/sibelia/


=====================================
debian/sibelia.docs
=====================================
@@ -0,0 +1,3 @@
+usr/share/Sibelia/doc/[A-Z]*
+debian/README.test
+debian/tests/run-unit-test


=====================================
debian/sibelia.install
=====================================
@@ -0,0 +1,3 @@
+usr/bin/C*
+usr/bin/S*
+usr/share/Sibelia/utils


=====================================
debian/sibelia.links
=====================================
@@ -0,0 +1 @@
+usr/share/doc/sibelia	usr/share/Sibelia/doc


=====================================
debian/sibelia.lintian-overrides
=====================================
@@ -0,0 +1,2 @@
+# see https://lists.debian.org/debian-med/2018/06/msg00043.html
+sibelia: script-with-language-extension usr/bin/*.*


=====================================
debian/sibelia.manpages
=====================================
@@ -0,0 +1,2 @@
+debian/C*.1
+debian/S*.1


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e
+
+pkg=sibelia
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
+
+cd $AUTOPKGTEST_TMP
+gunzip -r *
+
+cd C-Sibelia/Staphylococcus_aureus
+C-Sibelia.py NCTC8325.fasta RN4220.fasta
+
+cd $AUTOPKGTEST_TMP/Sibelia/Helicobacter_pylori
+Sibelia -s loose Helicobacter_pylori.fasta



View it on GitLab: https://salsa.debian.org/med-team/sibelia/compare/f8a1e981c23fdb90ba4e4aa8c2f2953e925318e0...e81d4a8bf4f2d9445babebe1fb0a4f17cc2bb453

-- 
View it on GitLab: https://salsa.debian.org/med-team/sibelia/compare/f8a1e981c23fdb90ba4e4aa8c2f2953e925318e0...e81d4a8bf4f2d9445babebe1fb0a4f17cc2bb453
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/20190214/ad1dab12/attachment-0001.html>


More information about the debian-med-commit mailing list