[med-svn] [python3-fitbitscraper] 04/06: Updated d/ folder
Iain Learmonth
irl-guest at moszumanska.debian.org
Sun Feb 2 14:05:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
irl-guest pushed a commit to branch master
in repository python3-fitbitscraper.
commit f999e71eb5f375ea19d47c89ddb1e176aab929e4
Author: Iain R. Learmonth <irl at fsfe.org>
Date: Sun Feb 2 10:55:05 2014 +0000
Updated d/ folder
---
debian/control | 3 ++-
debian/copyright | 3 +++
debian/get-orig-source | 45 ---------------------------------------------
debian/rules | 7 +++++++
4 files changed, 12 insertions(+), 46 deletions(-)
diff --git a/debian/control b/debian/control
index b7195ae..06c370d 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: science
Priority: optional
Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
Uploaders: Andreas Tille <tille at debian.org>, Iain R. Learmonth <irl at fsfe.org>
-Build-Depends: debhelper (>= 9)
+Build-Depends: debhelper (>= 9), dh-python, python3 | python3-all | python3-dev | python3-all-dev, python3-setuptools
Standards-Version: 3.9.5
Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/<pkg>/trunk/
Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/<pkg>/trunk/
@@ -11,6 +11,7 @@ Homepage: https://github.com/irl/python-fitbitscraper/
Package: python3-fitbitscraper
Architecture: any
+X-Python3-Version: >= 3.2
Depends: ${python3:Depends}, ${misc:Depends}
Description: Python library for scraping the FitBit website for data
A Python library for scraping steps data and sleep quality data from
diff --git a/debian/copyright b/debian/copyright
index 11d87ef..380bd04 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -24,4 +24,7 @@ License: GPL-2
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the full text of the GNU General Public License
+ version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/get-orig-source b/debian/get-orig-source
deleted file mode 100755
index e486809..0000000
--- a/debian/get-orig-source
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/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/rules b/debian/rules
index 80900b5..35fa728 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,13 @@
export DH_VERBOSE=1
export PYBUILD_NAME=fitbitscraper
+override_dh_auto_install:
+ dh_auto_install
+ python setup.py install --root=debian/$(PYBUILD_NAME) --install-layout=deb --install-lib=/usr/share/$(PYBUILD_NAME) --install-scripts=/usr/share/$(PYBUILD_NAME)
+
+override_dh_auto_build:
+
%:
dh $@ --with python3 --buildsystem=pybuild
+
--
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/python3-fitbitscraper.git
More information about the debian-med-commit
mailing list