dev-util/spec-cleaner: Update to 1.0.6
authorMichael Vetter <jubalh@iodoru.org>
Fri, 16 Mar 2018 15:56:40 +0000 (15:56 +0000)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 5 Apr 2018 12:20:52 +0000 (14:20 +0200)
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/7508

dev-util/spec-cleaner/Manifest
dev-util/spec-cleaner/files/spec-cleaner-1.0.6-pytest-runner.patch [new file with mode: 0644]
dev-util/spec-cleaner/spec-cleaner-1.0.6.ebuild [new file with mode: 0644]

index a5230786b87a76427e7fa75b90c9eab085a9e2a0..cf812abc387cc7dc4dd8f6c33d98092c5d37938b 100644 (file)
@@ -1 +1,2 @@
 DIST spec-cleaner-0.8.9.tar.gz 100949 BLAKE2B da95f336d05677350018c4e48c61023b35b8b97d731a08fe90ae147b32c374cf55a904e1f0559cc7c42b50acfe3b7a8c5b4cf25e596dce387b58417657fab8c5 SHA512 9e89c2760b429baa38be2ce2149fbd323b38a4c6159421192b07e612e359666810dc6077b2befd8a6d91b03aabc78bd4f81bb0e5cf5b4a274061b0aae0ab66f8
+DIST spec-cleaner-1.0.6.tar.gz 450602 BLAKE2B acd298421f2c119e24dc52cf63e149194d5baa1282f9aef902e2ccaf51de040f5817641b4077f209656f715ea6ceb19bf55b8661c32cd24f461c58f9126d9e19 SHA512 a27b5dc7fdb02ca5c632faa5b6a2b71d6db3e9f97950f20c15b14584fa240ff7b69dc981ca67f4fcb6af207dff28a8267447ad0eb918e06ce2294436892e0eef
diff --git a/dev-util/spec-cleaner/files/spec-cleaner-1.0.6-pytest-runner.patch b/dev-util/spec-cleaner/files/spec-cleaner-1.0.6-pytest-runner.patch
new file mode 100644 (file)
index 0000000..b280cce
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/setup.py 2018-03-19 15:23:46.128000000 +0000
++++ b/setup.py 2018-03-19 15:24:26.920000000 +0000
+@@ -43,7 +43,6 @@
+     platforms=['Linux'],
+     keywords=['SUSE', 'RPM', '.spec', 'cleaner'],
+-    setup_requires=['pytest-runner'],
+-    tests_require=['pytest', 'pytest-cov'],
++    tests_require=['pytest'],
+     packages=['spec_cleaner'],
diff --git a/dev-util/spec-cleaner/spec-cleaner-1.0.6.ebuild b/dev-util/spec-cleaner/spec-cleaner-1.0.6.ebuild
new file mode 100644 (file)
index 0000000..297d052
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{3_4,3_5} )
+EGIT_REPO_URI="https://github.com/openSUSE/spec-cleaner.git"
+inherit distutils-r1
+[[ ${PV} == 9999 ]] && inherit git-r3
+
+DESCRIPTION="SUSE spec file cleaner and formatter"
+HOMEPAGE="https://github.com/openSUSE/spec-cleaner"
+[[ ${PV} != 9999 ]] && SRC_URI="https://github.com/openSUSE/${PN}/archive/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+[[ ${PV} != 9999 ]] &&
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="
+       test? (
+               dev-python/pytest[${PYTHON_USEDEP}]
+       )
+"
+RDEPEND="
+       ${PYTHON_DEPS}
+       >=app-arch/rpm-4.11.0.1
+"
+
+PATCHES=(
+       # pytest-runner is only needed in test scenario
+       "${FILESDIR}/${PN}-1.0.6-pytest-runner.patch"
+)
+
+[[ ${PV} != 9999 ]] && S="${WORKDIR}/${PN}-${P}"
+
+src_prepare() {
+       # we have libexec
+       sed -i \
+               -e 's:lib/obs:libexec/obs:g' \
+               setup.py || die
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       esetup.py test
+}