1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{3_4,3_5,3_6} )
7 EGIT_REPO_URI="https://github.com/openSUSE/spec-cleaner.git"
9 [[ ${PV} == 9999 ]] && inherit git-r3
11 DESCRIPTION="SUSE spec file cleaner and formatter"
12 HOMEPAGE="https://github.com/openSUSE/spec-cleaner"
13 [[ ${PV} != 9999 ]] && SRC_URI="https://github.com/openSUSE/${PN}/archive/${P}.tar.gz"
17 [[ ${PV} != 9999 ]] &&
18 KEYWORDS="~amd64 ~x86"
23 dev-python/pytest[${PYTHON_USEDEP}]
28 >=app-arch/rpm-4.11.0.1
32 # pytest-runner is only needed in test scenario
33 "${FILESDIR}/${PN}-1.0.6-pytest-runner.patch"
36 [[ ${PV} != 9999 ]] && S="${WORKDIR}/${PN}-${P}"
41 -e 's:lib/obs:libexec/obs:g' \
43 distutils-r1_src_prepare