From 9695e9dee788588cef19f82e3f57c8abc6b3561adc3e57d05cde8a01091e4bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 13 Nov 2014 09:28:38 +0000 Subject: [PATCH] Accepting request 261356 from home:roman-neuhauser:branches:openSUSE:Tools PKGBUILD file for ArchLinux OBS-URL: https://build.opensuse.org/request/show/261356 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=39 --- PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 PKGBUILD 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 "$@" +}