diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..c3b57ff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +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 "$@" +}