38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Template file for 'python-stevedore'
|
|
pkgname=python-stevedore
|
|
version=1.1.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="stevedore-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools python-pbr python3.4-pbr"
|
|
makedepends="${hostmakedepends}"
|
|
depends="python-setuptools python-six"
|
|
pycompile_module="stevedore"
|
|
short_desc="Manage dynamic plugins for Python2 applications"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://git.openstack.org/cgit/openstack/stevedore"
|
|
license="Apache-2.0"
|
|
distfiles="${PYPI_SITE}/s/stevedore/stevedore-${version}.tar.gz"
|
|
checksum=f98381d12a6bfff718328d14d0d26cae6c83e39feb787e7b38acfe1089c3f1d3
|
|
|
|
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
|
|
}
|
|
|
|
python3.4-stevedore_package() {
|
|
noarch=yes
|
|
depends="python3.4-setuptools python3.4-six"
|
|
pycompile_version="3.4"
|
|
pycompile_module="stevedore"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
}
|
|
}
|