community/py3-rtslib: modernize

- Fix license
- Expand on why check is disabled
- Add missing dependencies
- Use modern style
This commit is contained in:
Leo 2019-05-03 01:30:16 -03:00 committed by prspkt
parent ba3ee3f921
commit ee574454d1
No known key found for this signature in database
GPG Key ID: 24BA3D41BDA6E870

View File

@ -5,28 +5,22 @@ _pkgname=rtslib-fb
pkgver=2.1_p69
_ver=${pkgver/_rc/rc}
_ver=${_ver/_p/.fb}
pkgrel=1
pkgrel=2
pkgdesc="Python library that provides an object API to RisingTide Systems generic SCSI Target"
options="!check" # No testsuite
url="https://github.com/open-iscsi/rtslib-fb"
arch="noarch"
license="AGPL-3.0"
depends="python3"
makedepends="$depends_dev py3-configobj py3-ethtool py3-ipaddr py3-setuptools"
license="Apache-2.0"
depends="py3-udev python3 py3-six"
makedepends="py3-setuptools"
source="https://github.com/open-iscsi/rtslib-fb/archive/v${_ver}.tar.gz"
options="!check" # no test suite
builddir="$srcdir"/${_pkgname}-${_ver}
prepare() {
default_prepare
}
build() {
cd "$builddir"
return 0
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --root="$pkgdir"
# install -D -m644 specs/ib_srpt.spec $pkgdir/var/lib/target/fabric/ib_srpt.spec
# install -D -m644 specs/iscsi.spec $pkgdir/var/lib/target/fabric/iscsi.spec