spec-cleaner/PKGBUILD

32 lines
670 B
Bash

pkgname=spec-cleaner
pkgver=0.6.3
pkgrel=1
pkgdesc=".spec file cleaner"
arch=(any)
license=(BSD-3-Clause)
url=https://github.com/openSUSE/$pkgname
source=($url/$pkgname-$pkgver.tar.gz)
sha256sums=('b3c233f1832281acf6379f36a833ceaca91b28dbcc8bab99a5ba31a69c430827')
depends=(python-setuptools)
makedepends=(python python-setuptools)
# FIXME: python-mock is in the community repo which is not
# FIXME: imported into the OBS, leading to 'unresolvable'
#checkdepends=(python-mock python-nose)
build() {
_make build
}
#check() {
# _make test
#}
package() {
_make install --root="$pkgdir"
}
_make() {
cd "$srcdir/$pkgname-$pkgname-$pkgver"
python setup.py "$@"
}