use python2 for arch

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/osc?expand=0&rev=166
This commit is contained in:
Adrian Schröter 2014-03-18 13:43:30 +00:00 committed by Git OBS Bridge
parent bd4195b2bd
commit fed645dd01

View File

@ -6,14 +6,14 @@ arch=('i686' 'x86_64')
url="https://www.github.com/openSUSE/osc"
license=('GPL-2.0+' 'GPL-2.0')
groups=('base-devel')
depends=('python')
depends=('python2')
source=(osc-${pkgver}.tar.gz)
md5sums=('d6f0d72f1716d5e57ef02b3ff8a101d8')
package() {
msg "Installing osc ..."
cd "${srcdir}"/osc-${pkgver}
python setup.py build
python setup.py install --prefix=/usr --root=${pkgdir}
python2 setup.py build
python2 setup.py install --prefix=/usr --root=${pkgdir}
ln -s osc-wrapper.py ${pkgdir}/usr/bin/osc
}