public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-util/spec-cleaner/, dev-util/spec-cleaner/files/
@ 2018-04-05 12:31 Andreas Sturmlechner
  0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2018-04-05 12:31 UTC (permalink / raw
  To: gentoo-commits

commit:     62842165f0e58b21ba7e3adeec2546ad5e7ceeae
Author:     Michael Vetter <jubalh <AT> iodoru <DOT> org>
AuthorDate: Fri Mar 16 15:56:40 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Apr  5 12:20:52 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62842165

dev-util/spec-cleaner: Update to 1.0.6

Package-Manager: Portage-2.3.24, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/7508

 dev-util/spec-cleaner/Manifest                     |  1 +
 .../files/spec-cleaner-1.0.6-pytest-runner.patch   | 11 +++++
 dev-util/spec-cleaner/spec-cleaner-1.0.6.ebuild    | 48 ++++++++++++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/dev-util/spec-cleaner/Manifest b/dev-util/spec-cleaner/Manifest
index a5230786b87..cf812abc387 100644
--- a/dev-util/spec-cleaner/Manifest
+++ b/dev-util/spec-cleaner/Manifest
@@ -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
index 00000000000..b280cce28bf
--- /dev/null
+++ b/dev-util/spec-cleaner/files/spec-cleaner-1.0.6-pytest-runner.patch
@@ -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
index 00000000000..297d0528ae6
--- /dev/null
+++ b/dev-util/spec-cleaner/spec-cleaner-1.0.6.ebuild
@@ -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
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-05 12:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-05 12:31 [gentoo-commits] repo/gentoo:master commit in: dev-util/spec-cleaner/, dev-util/spec-cleaner/files/ Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox