1
0
forked from pool/osc
osc-fork/PKGBUILD
Daniel Mach b92fe7737f Accepting request 1001908 from home:dmach:branches:openSUSE:Tools
- 0.182.0
  - fix build on SLE12 / python 2.7
  - SSH auth: Fix getallmatchingheaders() output to correspond with headers.get_all()
  - send HTTP header Accept: application/xml
  - git_version: return version from the source code if there's no matching tag
- spec file:
  - Revert to python2 on SLE12
  - Recommend openssh for ssh key auth

OBS-URL: https://build.opensuse.org/request/show/1001908
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/osc?expand=0&rev=371
2022-09-09 06:54:28 +00:00

25 lines
551 B
Bash

pkgname=osc
pkgver=0.182.0
pkgrel=0
pkgdesc="Open Build Service client"
arch=('x86_64')
url="https://www.github.com/openSUSE/osc"
license=('GPL-2.0+' 'GPL-2.0')
groups=('base-devel')
depends=('python-m2crypto')
makedepends=('python-setuptools')
source=(osc-${pkgver}.tar.gz)
md5sums=('SKIP')
build() {
cd "${srcdir}"/osc-${pkgver}
python setup.py build
}
package() {
msg "Installing osc ..."
cd "${srcdir}"/osc-${pkgver}
python setup.py install --root="${pkgdir}/" --optimize=1 --prefix=/usr
ln -s osc-wrapper.py ${pkgdir}/usr/bin/osc
}