[med-svn] r5682 - in trunk/packages/biofox: . trunk/debian

Andreas Tille tille at alioth.debian.org
Wed Jan 19 10:13:08 UTC 2011


Author: tille
Date: 2011-01-19 10:13:08 +0000 (Wed, 19 Jan 2011)
New Revision: 5682

Added:
   trunk/packages/biofox/trunk/debian/get-orig-source
Removed:
   trunk/packages/biofox/branches/
   trunk/packages/biofox/trunk/debian/Uninstall
   trunk/packages/biofox/trunk/debian/chrome.d
   trunk/packages/biofox/trunk/debian/chrome.manifest
   trunk/packages/biofox/trunk/debian/dirs
   trunk/packages/biofox/trunk/debian/links
   trunk/packages/biofox/trunk/debian/postinst
   trunk/packages/biofox/trunk/debian/postrm
   trunk/packages/biofox/trunk/debian/preinst
Modified:
   trunk/packages/biofox/trunk/debian/README.Debian
   trunk/packages/biofox/trunk/debian/README.source
   trunk/packages/biofox/trunk/debian/changelog
   trunk/packages/biofox/trunk/debian/control
   trunk/packages/biofox/trunk/debian/copyright
   trunk/packages/biofox/trunk/debian/rules
Log:
New upstream version, rewritten packaging making use of mozilla-devscripts


Modified: trunk/packages/biofox/trunk/debian/README.Debian
===================================================================
--- trunk/packages/biofox/trunk/debian/README.Debian	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/README.Debian	2011-01-19 10:13:08 UTC (rev 5682)
@@ -22,7 +22,7 @@
 
 A new window will open, presenting the desired result.
 
-More informations can be obtained from bioFOX homepage:
+More information can be obtained from bioFOX homepage:
 http://schematron.unl.edu/biofox/
 
  -- Nelson A. de Oliveira <naoliv at debian.org>  Sat, 23 Feb 2008 15:11:41 -0300

Modified: trunk/packages/biofox/trunk/debian/README.source
===================================================================
--- trunk/packages/biofox/trunk/debian/README.source	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/README.source	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,3 +1,3 @@
-Upstream sources are distributed as a ZIP archive. The debian/rules file
-contains a rule named `get-orig-source' to create a gzipped tar archive whose
-name follows the Debian policy.
+Upstream sources are distributed as XPI (ZIP archive). The debian/rules file
+contains a rule named `get-orig-source' to create a gzipped tar wrappig this
+XPI file.

Deleted: trunk/packages/biofox/trunk/debian/Uninstall
===================================================================
--- trunk/packages/biofox/trunk/debian/Uninstall	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/Uninstall	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,3 +0,0 @@
-register	global	package	biofox
-register	global	skin	classic/1.0
-register	global	locale	en-US

Modified: trunk/packages/biofox/trunk/debian/changelog
===================================================================
--- trunk/packages/biofox/trunk/debian/changelog	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/changelog	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,10 +1,22 @@
-biofox (1.1.5-2) UNRELEASED; urgency=low
+biofox (1.6-1) unstable; urgency=low
 
+  [Charles Plessy]
   * debian/control:
     - Depend on xulrunner, and recommend iceweasel | iceape-browser.
 
- -- Charles Plessy <plessy at debian.org>  Mon, 30 Mar 2009 13:03:18 +0900
+  [Andreas Tille]
+  * New upstream version
+  * debian/control:
+    - Standards-Version: 3.9.1 (no changes needed)
+    - Fix spelling of Debian Med team
+    - debhelper 7
+    - Make use of mozilla-devscripts
+  * debian/rules: Rewritten using mozilla-devscripts
+  * debian/get--orig-source: Rewritten to simply wrap xpi
+    into orig.tar.gz which is used by mozilla-devscripts
 
+ -- Andreas Tille <tille at debian.org>  Wed, 19 Jan 2011 09:09:35 +0100
+
 biofox (1.1.5-1~lenny) testing-proposed-updates; urgency=high
 
   * Reverted bumping debhelper and policy version to

Deleted: trunk/packages/biofox/trunk/debian/chrome.d
===================================================================
--- trunk/packages/biofox/trunk/debian/chrome.d	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/chrome.d	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,3 +0,0 @@
-content,install,url,jar:resource:/chrome/biofox.jar!/content/
-content,install,url,jar:resource:/chrome/biofox.jar!/locale/en-US/
-content,install,url,jar:resource:/chrome/biofox.jar!/skin/classic/biofox/

Deleted: trunk/packages/biofox/trunk/debian/chrome.manifest
===================================================================
--- trunk/packages/biofox/trunk/debian/chrome.manifest	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/chrome.manifest	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,8 +0,0 @@
-
-overlay	chrome://navigator/content/navigator.xul	chrome://biofox/content/biofoxoverlay.xul
-overlay	chrome://communicator/content/pref/preftree.xul	chrome://biofox/content/biofox-pref.xul
-overlay	chrome://communicator/content/tasksOverlay.xul	chrome://biofox/content/biofoxoverlay.xul
-overlay	chrome://browser/content/browser.xul	chrome://biofox/content/biofoxoverlay.xul
-content	biofox	jar:chrome/biofox.jar!/content/
-
-skin	biofox	classic/1.0	jar:chrome/biofox.jar!/skin/classic/biofox/

Modified: trunk/packages/biofox/trunk/debian/control
===================================================================
--- trunk/packages/biofox/trunk/debian/control	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/control	2011-01-19 10:13:08 UTC (rev 5682)
@@ -6,17 +6,19 @@
 Uploaders: Nelson A. de Oliveira <naoliv at debian.org>,
            Charles Plessy <plessy at debian.org>,
            Andreas Tille <tille at debian.org>
-Build-Depends: cdbs, debhelper (>= 5)
+Build-Depends: debhelper (>= 7.0.50~), mozilla-devscripts (>= 0.19~)
 Build-Depends-Indep: zip
-Standards-Version: 3.7.3
+Standards-Version: 3.9.1
 Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/biofox/trunk/
 Vcs-Svn: svn://svn.debian.org/svn/debian-med/trunk/packages/biofox/trunk/
 Homepage: https://addons.mozilla.org/fr/firefox/addon/300
 
 Package: mozilla-biofox
 Architecture: all
-Depends: xulrunner, ${misc:Depends}
-Recommends: iceweasel | iceape-browser
+Depends: ${misc:Depends}, ${xpi:Depends}
+Recommends: ${xpi:Recommends}
+Provides: ${xpi:Provides}
+Enhances: ${xpi:Enhances}
 Description: extension of bioinformatics tools to Iceape and Iceweasel browsers
  Code bioFOX aims at implementing various bioinformatics tools as an extension
  on the Iceape and Iceweasel browsers. Analysis of your favorite gene(s)

Modified: trunk/packages/biofox/trunk/debian/copyright
===================================================================
--- trunk/packages/biofox/trunk/debian/copyright	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/copyright	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,7 +1,7 @@
 Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=423
 Upstream-Name: bioFOX
 Upstream-Maintainer: Saleem Mohammed <saleem.m at gmail.com>
-Upstream-Source: ftp://ftp.mozilla.org/pub/addons/300/biofox-1.1.5-fx+mz+sm.xpi
+Upstream-Source: ftp://ftp.mozilla.org/pub/addons/
 
 Files: *
 Copyright: © 2005–2008 Saleem Mohammed <saleem.m at gmail.com>
@@ -509,8 +509,9 @@
 Copyright: © 2005      Adrian Mastronardi <amastronardi at gmail.com>
            © 2005–2008 Nelson A. de Oliveira <naoliv at gmail.com>
            © 2009      Charles Plessy <plessy at debian.org>
+           © 2011      Andreas Tille <tille at debian.org>
 License: same as bioFOX.
- (see above…)
+ (see above)
 X-Comment:
  This package was debianized by Adrian Mastronardi <amastronardi at gmail.com> and
  Nelson A. de Oliveira <naoliv at gmail.com> on Sun, 22 May 2005 00:55:03 -0300.

Deleted: trunk/packages/biofox/trunk/debian/dirs
===================================================================
--- trunk/packages/biofox/trunk/debian/dirs	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/dirs	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1 +0,0 @@
-/usr/share/iceape/chrome

Added: trunk/packages/biofox/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/biofox/trunk/debian/get-orig-source	                        (rev 0)
+++ trunk/packages/biofox/trunk/debian/get-orig-source	2011-01-19 10:13:08 UTC (rev 5682)
@@ -0,0 +1,17 @@
+#!/bin/sh
+# script to download and repack source package of mozilla-biofox
+# this is needed to create orig.tar.gz
+
+PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+VERSION=`uscan --verbose --force-download | \
+    grep "Newest version on remote site is .* local version is .*" | \
+    head -n 1 | \
+    sed "s/Newest version on remote site is \([-0-9.]\+\),.*/\1/"`
+
+UPSTREAMDIR="${PKG}-${VERSION}"
+mkdir -p ../tarballs/${UPSTREAMDIR}
+cd ../tarballs
+mv ../${PKG}*.xpi ${UPSTREAMDIR}
+
+GZIP="--best --no-name" tar -czf "$PKG"_"$VERSION".orig.tar.gz "${UPSTREAMDIR}"
+rm -rf "${UPSTREAMDIR}"

Deleted: trunk/packages/biofox/trunk/debian/links
===================================================================
--- trunk/packages/biofox/trunk/debian/links	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/links	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,2 +0,0 @@
-usr/lib/iceweasel/extensions/{fbfbf0bf-032e-427e-932d-0b000a34f168}/chrome/biofox.jar usr/share/iceape/chrome/biofox.jar
-usr/lib/iceweasel/extensions/{fbfbf0bf-032e-427e-932d-0b000a34f168}/chrome.d var/lib/iceape/chrome.d/50biofox

Deleted: trunk/packages/biofox/trunk/debian/postinst
===================================================================
--- trunk/packages/biofox/trunk/debian/postinst	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/postinst	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,29 +0,0 @@
-#! /bin/sh
-# postinst script for biofox
-
-set -e
-
-case "$1" in
-    configure)
-	if which update-iceape-chrome 2> /dev/null > /dev/null
-	then
-		update-iceape-chrome
-	fi
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/packages/biofox/trunk/debian/postrm
===================================================================
--- trunk/packages/biofox/trunk/debian/postrm	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/postrm	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,27 +0,0 @@
-#! /bin/sh
-# postrm script for biofox
-
-set -e
-
-case "$1" in
-    remove|abort-install)
-	if which update-iceape-chrome 2> /dev/null > /dev/null
-	then
-		update-iceape-chrome
-	fi
-        ;;
-    purge|upgrade|failed-upgrade|abort-upgrade|disappear)
-        ;;
-
-    *)
-        echo "postrm called with unknown argument \`$1'" >&2
-        exit 1
-
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/packages/biofox/trunk/debian/preinst
===================================================================
--- trunk/packages/biofox/trunk/debian/preinst	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/preinst	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-set -e
-
-if [ "$1" = upgrade ]; then
-	rm -rf /usr/share/mozilla-extensions/biofox/
-	rm -rf /usr/lib/iceweasel/extensions/\{fbfbf0bf-032e-427e-932d-0b000a34f168\}
-fi
-
-#DEBHELPER#

Modified: trunk/packages/biofox/trunk/debian/rules
===================================================================
--- trunk/packages/biofox/trunk/debian/rules	2011-01-19 08:00:40 UTC (rev 5681)
+++ trunk/packages/biofox/trunk/debian/rules	2011-01-19 10:13:08 UTC (rev 5682)
@@ -1,24 +1,13 @@
 #!/usr/bin/make -f
+# debian/rules file for mozilla-biofox
+# Author: Andreas Tille <tille at debian.org>
+# GPL
 
-include /usr/share/cdbs/1/rules/debhelper.mk
+%:
+	dh $@ --with xul-ext
 
-DEB_DESTDIR := $(CURDIR)/debian/mozilla-biofox
+override_dh_auto_install:
+	install-xpi biofox-*.xpi
 
-EXT_ID := {fbfbf0bf-032e-427e-932d-0b000a34f168}
-PLUGIN_DIR := $(DEB_DESTDIR)/usr/lib/iceweasel/extensions/$(EXT_ID)
-
-install/mozilla-biofox::
-	mkdir -p $(PLUGIN_DIR)/uninstall
-	mkdir $(PLUGIN_DIR)/chrome
-	install -m 644 debian/chrome.d $(PLUGIN_DIR)
-	install -m 644 debian/chrome.manifest $(PLUGIN_DIR)
-	install -m 644 debian/Uninstall $(PLUGIN_DIR)/uninstall/
-	install -m 644 install.rdf $(PLUGIN_DIR)
-	install -m 644 chrome/biofox.jar $(PLUGIN_DIR)/chrome/
-	echo "extension,$(EXT_ID)" > $(PLUGIN_DIR)/extensions.d
-
 get-orig-source:
-	[ -f ../biofox-$(DEB_UPSTREAM_VERSION)-*.xpi ] || uscan --force-download
-	mkdir ../biofox-$(DEB_UPSTREAM_VERSION)
-	unzip ../biofox-$(DEB_UPSTREAM_VERSION)-*.xpi -d../biofox-$(DEB_UPSTREAM_VERSION)
-	tar --create --gzip --file ../biofox_$(DEB_UPSTREAM_VERSION).orig.tar.gz ../biofox-$(DEB_UPSTREAM_VERSION)
+	. debian/get-orig-source




More information about the debian-med-commit mailing list