summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a9c0034073e42b080350f47c8c3c6d816b288196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Maintainer: BigfootACA <bigfoot@classfun.cn>

_pyname=neutron-lib
pkgname=python-$_pyname
pkgver=2.15.0
pkgrel=1
pkgdesc="Neutron shared routines and utilities"
arch=(any)
url="https://docs.openstack.org/neutron-lib/latest/"
license=(Apache)
depends=(
	python
	python-pbr
	python-sqlalchemy
	python-pecan
	python-keystoneauth1
	python-netaddr
	python-stevedore
	python-os-ken
	python-oslo-concurrency
	python-oslo-config
	python-oslo-context
	python-oslo-db
	python-oslo-i18n
	python-oslo-log
	python-oslo-messaging
	python-oslo-policy
	python-oslo-serialization
	python-oslo-service
	python-oslo-utils
	python-oslo-versionedobjects
	python-osprofiler
	python-setproctitle
	python-webob
	python-os-traits
)
makedepends=(
	python-setuptools
	python-sphinx
	python-openstackdocstheme
	python-os-api-ref
	python-reno
)
checkdepends=(
	python-hacking
	bandit
	python-coverage
	python-fixtures
	python-flake8-import-order
	python-pylint
	python-isort
	python-subunit
	python-oslotest
	python-reno
	python-stestr
	python-testresources
	python-testscenarios
	python-testtools
)
options=('!emptydirs')
source=(https://pypi.io/packages/source/${_pyname::1}/$_pyname/$_pyname-$pkgver.tar.gz)
md5sums=('b15f9a00836bf4f403468aaf9c58c371')
sha256sums=('88a25675fedc6760443fbc4180357e6437160bf5237eae132f05f7114eba0508')
sha512sums=('8d8ddf708f43c183f6a3a91c296ee6eaf9c70e562da4e16522b85a6484ffc44183d07ab82de389b0a4e7e5305386fdd9e707e853815ef79951028b6ae7c1930e')

export PBR_VERSION=$pkgver

build(){
	cd $_pyname-$pkgver
	python setup.py build
}

check(){
	cd $_pyname-$pkgver
	stestr run
}

package(){
	cd $_pyname-$pkgver
	python setup.py install --root="$pkgdir/" --optimize=1
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}