Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
basket
Commits
4d113f71aff9
Commit
e3f04456
authored
Feb 05, 2016
by
Julien Cristau
Browse files
[pkg] update debian packaging to modern standards
parent
c09961521158
Changes
5
Hide whitespace changes
Inline
Side-by-side
debian/compat
View file @
4d113f71
5
9
debian/control
View file @
4d113f71
...
...
@@ -3,12 +3,20 @@ Section: web
Priority: optional
Maintainer: Logilab Packaging Team <contact@logilab.fr>
Uploaders: Sylvain Thenault <sylvain.thenault@logilab.fr>
Build-Depends: debhelper (>= 5.0.37.1), python (>=2.4), python-dev (>=2.4)
Standards-Version: 3.8.0
Build-Depends:
debhelper (>= 9),
python (>= 2.6.5),
dh-python,
Standards-Version: 3.9.6
Homepage: https://www.cubicweb.org/project/cubicweb-basket
X-Python-Version: >= 2.6
Package: cubicweb-basket
Architecture: all
Depends: cubicweb-common (>= 3.16.0)
Depends:
cubicweb-common (>= 3.16.0),
${misc:Depends},
${python:Depends},
Description: basket component for the Cubicweb framework
This Cubicweb component provides baskets as a way to select content.
.
...
...
debian/cubicweb-basket.dirs
deleted
100644 → 0
View file @
c0996152
usr/share/cubicweb/cubes/basket
debian/cubicweb-basket.prerm
deleted
100644 → 0
View file @
c0996152
#!/bin/sh -e
delete_pyo_pyc
()
{
find /usr/share/cubicweb/cubes/basket
-name
"*.pyc"
| xargs
rm
-f
find /usr/share/cubicweb/cubes/basket
-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#
debian/rules
View file @
4d113f71
#!/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-basket/usr/
rm -rf debian/cubicweb-basket/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment