Browse Source

cherry picking debian/ dir

suites/jessie-proposed-backports
Sandro Tosi 14 years ago
parent
commit
720680f5e3
  1. 7
      debian/changelog
  2. 19
      debian/control
  3. 2
      debian/dirs
  4. 2
      debian/extract_version
  5. 8
      debian/install-sed
  6. 1
      debian/python-reportbug.dirs
  7. 28
      debian/rules

7
debian/changelog

@ -1,3 +1,10 @@
reportbug (3.99.0) UNRELEASED; urgency=low
[ Chris Lawrence ]
* Split off python-reportbug into a separate package.
-- Sandro Tosi <matrixhasu@gmail.com> Sun, 17 Aug 2008 01:06:52 +0200
reportbug (3.45) unstable; urgency=low
* reportbuglib/reportbug_ui_urwid.py

19
debian/control

@ -5,7 +5,7 @@ Maintainer: Reportbug Maintainers <reportbug-maint@lists.alioth.debian.org>
Uploaders: Sandro Tosi <matrixhasu@gmail.com>, Y Giridhar Appaji Nag <giridhar@appaji.net>, Chris Lawrence <lawrencc@debian.org>
Standards-Version: 3.8.0
Build-Depends: debhelper (>= 5.0.37.2), po4a (>= 0.23)
Build-Depends-Indep: python, python-central (>= 0.5.14), python-nose
Build-Depends-Indep: python-dev (>= 2.5), python-central (>= 0.5.14), python-nose, python-setuptools
XS-Python-Version: current, >= 2.5
DM-Upload-Allowed: yes
Vcs-Svn: svn://svn.debian.org/svn/reportbug/trunk/
@ -14,7 +14,7 @@ Homepage: http://alioth.debian.org/projects/reportbug/
Package: reportbug
Architecture: all
Depends: ${python:Depends}, apt
Depends: ${python:Depends}, apt, python-reportbug
Suggests: postfix | exim4 | mail-transport-agent, gnupg | pgp, debconf-utils (>> 1.1.0), debsums, file (>> 1.30), dlocate, python-urwid
Conflicts: python-urwid (<< 0.9.8-1), python-central (<< 0.5.13)
XB-Python-Version: ${python:Versions}
@ -36,3 +36,18 @@ Description: reports bugs in the Debian distribution
.
This package also includes the "querybts" script for browsing the
Debian bug tracking system.
Package: python-reportbug
Section: python
Architecture: all
Depends: ${python:Depends}, apt
Suggests: reportbug
XB-Python-Version: ${python:Versions}
Description: Python modules for interacting with bug tracking systems
reportbug is a tool designed to make the reporting of bugs in Debian
and derived distributions relatively painless.
.
This package includes Python modules which may be reusable by other
tools that want to interact with the Debian bug tracking system.
.
To actually report a bug, install the reportbug package.

2
debian/dirs

@ -1,5 +1,3 @@
etc
usr/bin
usr/share/reportbug
usr/share/reportbug/reportbuglib
usr/share/bug/reportbug

2
debian/extract_version

@ -0,0 +1,2 @@
#!/bin/sh
head -n 1 debian/changelog | sed -e 's/[^(]*(\([^)]*\).*/\1/'

8
debian/install-sed

@ -1,8 +0,0 @@
#!/bin/sh
dir=$1
shift
for filename in $@; do
sed -f sed-script < $filename > `pwd`/debian/reportbug/$dir/$filename
done

1
debian/python-reportbug.dirs

@ -0,0 +1 @@
usr/lib

28
debian/rules

@ -6,13 +6,17 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
VERSION=$(shell debian/extract_version)
build: build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
echo 'No make needed.'
# Test if versions are synchronized; this will bomb if not synced
@python -c "import reportbug, sys; sys.exit(reportbug.VERSION_NUMBER != '$(VERSION)')" || (echo 'Please update reportbug/__version__'; exit 1)
po4a po4a/po4a.cfg
python setup.py build
touch build-stamp
@ -23,6 +27,7 @@ clean:
# Add here commands to clean up after the build process.
rm -rf `find . -name '*~' -o -name '.#*' -o -name '*.orig' -o -name '*.rej' -o -name '*.py[co]'` sed-script
rm -rf build
po4a --rm-translations po4a/po4a.cfg
dh_clean
@ -34,18 +39,11 @@ install-stamp: build-stamp
dh_clean -k
dh_installdirs
@echo "s/##VERSION##/`head -n 1 debian/changelog | sed -e 's/[^(]*(\([^)]*\).*/\1/'`/g" > sed-script
cat sed-script
debian/install-sed /usr/bin reportbug querybts
debian/install-sed /usr/share/reportbug reportbuglib/*.py
# Remove unneeded .py files
rm -f `pwd`/debian/reportbug/usr/share/reportbug/urllib2.py
chmod 0755 `pwd`/debian/reportbug/usr/bin/*
cp handle_bugscript reportbug.el `pwd`/debian/reportbug/usr/share/reportbug
cp -p reportbug.conf `pwd`/debian/reportbug/etc
cp -p presubj script `pwd`/debian/reportbug/usr/share/bug/reportbug/
# Add here commands to install the package into debian/reportbug.
python setup.py install --root $(CURDIR)/debian/reportbug
mv $(CURDIR)/debian/reportbug/usr/lib $(CURDIR)/debian/python-reportbug/usr
chmod 0755 $(CURDIR)/debian/reportbug/usr/bin/*
cp -p reportbug.conf $(CURDIR)/debian/reportbug/etc
touch install-stamp
@ -64,7 +62,7 @@ binary-indep: build install
# dh_installemacsen
# dh_installinit
dh_installcron
dh_installman querybts.1 reportbug.1 reportbug.fr.1 querybts.fr.1 reportbug.ja.1 reportbug.conf.5
dh_installman man/*
# dh_undocumented
dh_installchangelogs
dh_link

Loading…
Cancel
Save