2014-07-05 22:27:27 +00:00
|
|
|
# Template file for 'python-stevedore'
|
|
|
|
pkgname=python-stevedore
|
2015-01-09 11:26:26 +00:00
|
|
|
version=1.2.0
|
2014-10-29 15:14:10 +00:00
|
|
|
revision=1
|
2014-07-05 22:27:27 +00:00
|
|
|
noarch=yes
|
2014-09-19 08:10:38 +00:00
|
|
|
wrksrc="stevedore-${version}"
|
2014-07-05 22:27:27 +00:00
|
|
|
build_style=python-module
|
2014-09-19 08:10:38 +00:00
|
|
|
python_versions="2.7 3.4"
|
2014-10-05 10:57:02 +00:00
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools python-pbr python3.4-pbr"
|
2015-01-09 11:26:26 +00:00
|
|
|
depends="python-six"
|
2014-07-05 22:27:27 +00:00
|
|
|
pycompile_module="stevedore"
|
|
|
|
short_desc="Manage dynamic plugins for Python2 applications"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
2014-10-05 10:57:02 +00:00
|
|
|
homepage="https://git.openstack.org/cgit/openstack/stevedore"
|
2014-07-05 22:27:27 +00:00
|
|
|
license="Apache-2.0"
|
2014-09-19 08:10:38 +00:00
|
|
|
distfiles="${PYPI_SITE}/s/stevedore/stevedore-${version}.tar.gz"
|
2015-01-09 11:26:26 +00:00
|
|
|
checksum=3f70db9052c26e66dac61cb73d8c6f5211373983d39872addab617c759db4b45
|
2014-10-29 15:14:10 +00:00
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
# remove dependency on argparse; it's in python>=2.7,>=3.2 stdlib
|
|
|
|
sed -i '/argparse/d' requirements.txt
|
|
|
|
|
|
|
|
# remove dependency on pbr; it's not a runtime dependency
|
|
|
|
sed -i '/pbr/d' requirements.txt
|
|
|
|
}
|
2014-07-05 22:27:27 +00:00
|
|
|
|
|
|
|
python3.4-stevedore_package() {
|
|
|
|
noarch=yes
|
2015-01-09 11:26:26 +00:00
|
|
|
depends="python3.4-six"
|
2014-07-05 22:27:27 +00:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="stevedore"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|