Commit 0ced7835 authored by David Douard's avatar David Douard
Browse files

[debian] split debian package so mboximport is packaged alone

also upgrade to dh_python2 and other several packaging updates/fixes.
parent 73d74e9ed2df
......@@ -2,15 +2,36 @@ Source: cubicweb-email
Section: web
Priority: optional
Maintainer: Logilab S.A. <contact@logilab.fr>
Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>, David Douard <david.douard@logilab.fr>, Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Build-Depends: debhelper (>= 5.0.37.1), python (>=2.6), python-dev (>=2.6)
Standards-Version: 3.8.0
Homepage: http://www.cubicweb.org/project/cubicweb-email
Uploaders:
Sylvain Thenault <sylvain.thenault@logilab.fr>,
David Douard <david.douard@logilab.fr>,
Nicolas Chauvat <nicolas.chauvat@logilab.fr>,
Build-Depends:
debhelper (>= 9),
python-all (>= 2.6.6-3),
Standards-Version: 3.9.6
X-Python-Version: >= 2.6
Homepage: https://www.cubicweb.org/project/cubicweb-email
Package: cubicweb-email
Architecture: all
Depends: cubicweb-common (>= 3.20.0), cubicweb-file (>= 1.9.0)
Depends:
cubicweb-common (>= 3.20.0),
cubicweb-file (>= 1.9.0),
${python:Depends},
${misc:Depends},
Description: email component for the CubicWeb framework
This CubicWeb component models email messages.
.
CubicWeb is a semantic web framework, see http://www.cubicweb.org
Package: cwemail-mboximport
Architecture: all
Depends:
python-cwclientlib (>= 0.3.1),
${python:Depends},
${misc:Depends},
Description: command line utility to import email mbox files in a CubicWeb
instance that embeds the cubicweb-email cube.
.
CubicWeb is a semantic web framework, see http://www.cubicweb.org
This package was debianized by Logilab <contact@logilab.fr>.
Upstream Author:
Logilab <contact@logilab.fr>
Copyright:
Copyright (c) 2003-2013 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr/ -- mailto:contact@logilab.fr
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any
later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
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 St, Fifth Floor, Boston, MA 02110-1301, USA.
On Debian systems, the complete text of the GNU Lesser General Public License
may be found in '/usr/share/common-licenses/LGPL'.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: cubicweb-email
Source: https://www.cubicweb.org/project/cubicweb-email
Files: *
Copyright: 2003-2015, Logilab S.A.
License: LGPL-2.1
License: LGPL-2.1
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation;
version 2.1 of the License.
.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
.
On Debian systems, the full text of the GNU Lesser General Public
License version 2.1 can be found in the file
`/usr/share/common-licenses/LGPL-2.1'.
usr/share/doc/cubicweb-email/
usr/share/cubicweb/cubes/email/
usr/share/cubicweb
\ No newline at end of file
#!/bin/sh -e
delete_pyo_pyc () {
find /usr/share/cubicweb/cubes/email -name "*.pyc" | xargs rm -f
find /usr/share/cubicweb/cubes/email -name "*.pyo" | xargs rm -f
}
case "$1" in
failed-upgrade|abort-install|abort-upgrade|disappear)
;;
upgrade)
delete_pyo_pyc
;;
remove)
delete_pyo_pyc
;;
purge)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
esac
#DEBHELPER#
usr/bin
usr/lib
\ No newline at end of file
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
NO_SETUPTOOLS=1 python setup.py -q build
touch build-stamp
export NO_SETUPTOOLS=1
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
rm -rf build
find . -name "*.pyc" | xargs rm -f
rm -f changelog.gz
dh_clean
%:
dh $@ --with python2
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -i
NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-email/usr/
cp doc/*.html doc/*.txt debian/cubicweb-email/usr/share/doc/cubicweb-email/
rm -rf debian/cubicweb-email/usr/lib/python*
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_install -i
dh_installchangelogs -i
dh_installexamples -i
dh_installdocs -i
dh_installman -i
dh_link -i
dh_compress -i -X.py -X.ini -X.xml -Xtest
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch:
binary: binary-indep
.PHONY: build clean binary-arch binary-indep binary
override_dh_python2:
dh_python2 -i /usr/share/cubicweb
dh_python2
extend-diff-ignore="^([^/]+\.egg-info/|.hg|/dist|test/data/database/*)"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment