This is an automated email from the git hooks/post-receive script. misterc-guest pushed a commit to branch master in repository python-bz2file.
commit dabe9dddacfd9cfbebdb5e6172ef5e5cfd749fae Author: Michael R. Crusoe <[email protected]> Date: Wed May 27 21:51:51 2015 -0400 initial debianization --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 26 +++++++++++++++++++++++++ debian/copyright | 24 +++++++++++++++++++++++ debian/createmanpages | 16 +++++++++++++++ debian/get-orig-source | 45 +++++++++++++++++++++++++++++++++++++++++++ debian/inject-into-alioth-git | 18 +++++++++++++++++ debian/rules | 10 ++++++++++ debian/source/format | 1 + debian/upstream/metadata | 12 ++++++++++++ debian/watch | 37 +++++++++++++++++++++++++++++++++++ 11 files changed, 195 insertions(+) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..def2cdf --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-bz2file (0.98-1) UNRELEASED; urgency=low + + * Initial release (Closes: #<bug>) + + -- Michael R. Crusoe <[email protected]> Wed, 27 May 2015 21:52:25 -0400 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..7c4914f --- /dev/null +++ b/debian/control @@ -0,0 +1,26 @@ +Source: python-bz2file +Maintainer: Debian Med Packaging Team <[email protected]> +Uploaders: Michael R. Crusoe <[email protected]> +Section: python +Priority: optional +Build-Depends: debhelper (>= 9.0.0), + dh-python, + python, + python-setuptools +Standards-Version: 3.9.5 +Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/python-bz2file.git +Vcs-Git: git://anonscm.debian.org/debian-med/python-bz2file.git +Homepage: https://github.com/nvawda/bz2file + +Package: python-bz2file +Architecture: all +Depends: ${misc:Depends} +Description: Python library for reading and writing bzip2-compressed files + Bz2file is a Python library for reading and writing bzip2-compressed files. + . + It contains a drop-in replacement for the file interface in the standard + library's bz2 module, including features from the latest development version + of CPython that are not available in older releases. + . + Bz2file is compatible with CPython 2.6, 2.7, and 3.0 through 3.4, as well as + PyPy 2.0. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..465771d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,24 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Nadeem Vawda <[email protected]> +Source: https://pypi.python.org/packages/source/b/bz2file/bz2file-0.98.tar.gz + +Files: * +Copyright: © 2012-2015Nadeem Vawda <[email protected]> +License: Apache + +Files: debian/* +Copyright: © 2015 Michael R. Crusoe <[email protected]> +License: Apache + +License: Apache + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/debian/createmanpages b/debian/createmanpages new file mode 100755 index 0000000..febcd91 --- /dev/null +++ b/debian/createmanpages @@ -0,0 +1,16 @@ +#!/bin/sh +MANDIR=debian +mkdir -p $MANDIR + +VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'` + +help2man --no-info --no-discard-stderr --help-option=" " \ + --name='<optional description of the program>' \ + --version-string="$VERSION" <programname> > $MANDIR/<programname>.1 + +cat <<EOT +Please enhance the help2man output. +The following web page might be helpful in doing so: + http://liw.fi/manpages/ +EOT + diff --git a/debian/get-orig-source b/debian/get-orig-source new file mode 100755 index 0000000..e486809 --- /dev/null +++ b/debian/get-orig-source @@ -0,0 +1,45 @@ +#!/bin/sh +# if you need to repack for whatever reason you can +# use this script via uscan or directly +# +# FIXME: currently the code is not conform to Debian Policy +# http://www.debian.org/doc/debian-policy/ch-source.html +# "get-orig-source (optional)" +# This target may be invoked in any directory, ... +# --> currently it is assumed the script is called in the +# source directory featuring the debian/ dir + +COMPRESS=xz + +set -e +NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'` + +if ! echo $@ | grep -q upstream-version ; then + VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'` + uscan --force-download +else + VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${NAME}.*?\1?"` + if echo "$VERSION" | grep -q "upstream-version" ; then + echo "Unable to parse version number" + exit + fi +fi + +TARDIR=${NAME}-${VERSION} +mkdir -p ../tarballs +cd ../tarballs +# need to clean up the tarballs dir first because upstream tarball might +# contain a directory with unpredictable name +rm -rf * +tar -xaf ../${TARDIR}.tar.gz + +UPSTREAMTARDIR=`find . -mindepth 1 -maxdepth 1 -type d` +if [ "${UPSTREAMTARDIR}" != "${TARDIR}" ] ; then + mv "${UPSTREAMTARDIR}" "${TARDIR}" +fi + +# Remove useless binaries +# ... do something which needs to be done ... + +GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}" +rm -rf ${TARDIR} diff --git a/debian/inject-into-alioth-git b/debian/inject-into-alioth-git new file mode 100755 index 0000000..02c2222 --- /dev/null +++ b/debian/inject-into-alioth-git @@ -0,0 +1,18 @@ +#!/bin/sh -e + +echo "Please verify whether this script is obsoleted by gbp-create-remote-repo !" + +# This script implements the "Git tips" given here +# http://debian-med.alioth.debian.org/docs/policy.html#git-tips +# Use it with caution since it is less testet + +DEBPKGNAME=`dpkg-parsechangelog | awk '/^Source:/ {print $2}'` +SHORTDESC=`grep "^Description: " debian/control | head -n 1 | sed 's/^Description: //'` +VCSGIT=`grep "^Vcs-Git: " debian/control | sed -e 's/^Vcs-Git: //' -e 's#git://anonscm.debian.org/#ssh://git.debian.org/git/#'` +DIRatALIOTH=`echo $VCSGIT | sed -e 's#ssh://git.debian.org/git/#/git/#' -e 's#/[^/]\+\.git##'` + +ssh git.debian.org "cd $DIRatALIOTH; ./setup-repository $DEBPKGNAME '$SHORTDESC'" +git remote add origin $VCSGIT +git push origin master +git push --all --set-upstream +git push --tags diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ce8e5e8 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +DH_VERBOSE := 1 +export PYBUILD_NAME=bz2file + +%: + dh $@ --with python2 --buildsystem=pybuild + +#get-orig-source: +# . debian/get-orig-source 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/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..d8b5812 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,12 @@ +Reference: + Author: + Title: + Journal: + Year: + Volume: + Number: + Pages: + DOI: + PMID: + URL: + eprint: diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..053abcf --- /dev/null +++ b/debian/watch @@ -0,0 +1,37 @@ +version=3 + +# Uncomment to examine a Webpage +# <Webpage URL> <string match> +#http://www.example.com/downloads.php #PACKAGE#-(.*)\.tar\.gz + +# Uncomment to examine a Webserver directory +#http://www.example.com/pub/#PACKAGE#-(.*)\.tar\.gz + +# Uncommment to examine a FTP server +#ftp://ftp.example.com/pub/#PACKAGE#-(.*)\.tar\.gz debian uupdate + +# Uncomment to find new files on sourceforge +# http://sf.net/#PACKAGE#/#PACKAGE#-(\d[\d\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) + +# Uncomment to find new files on GooglePages +# http://code.google.com/p/#PACKAGE#/downloads/list?can=1 \ +# .*/#PACKAGE#-([-.\d]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))|zip) + +# Uncomment to find new files on Github +# - when using releases: +# https://github.com/#GITHUBUSER#/#PACKAGE#/releases .*/archive/#PREFIX#(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz) +# - when using tags +# https://github.com/#GITHUBUSER#/#PACKAGE#/tags .*/#PREFIX#(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) +# Remark: frequently you can do s/#PREFIX#/v?/ since 'v' or nothing is quite common but there are other prefixes possible + +# PyPi repository of Python modules +# see https://lists.debian.org/debian-python/2015/02/msg00027.html +# http://pypi.debian.net/#module#/#module#-(.+)\.(?:tar(?:\.gz|\.bz2)?|tgz) + +# if tweaking of source is needed +# \ +# debian debian/get-orig-source + +# if you need to repack and choose +dfsg prefix +# opts=dversionmangle=s/[~\+]dfsg[0-9]*// \ +# -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-bz2file.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
