diff options
author | Michael Vetter <jubalh@iodoru.org> | 2018-03-16 15:56:40 +0000 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-04-05 14:20:52 +0200 |
commit | 62842165f0e58b21ba7e3adeec2546ad5e7ceeae (patch) | |
tree | ad42f6288ed4056148c93d2156ad65db2b676bdd /dev-util/spec-cleaner | |
parent | www-misc/buku: Bump to 3.7 (diff) | |
download | gentoo-62842165f0e58b21ba7e3adeec2546ad5e7ceeae.tar.gz gentoo-62842165f0e58b21ba7e3adeec2546ad5e7ceeae.tar.bz2 gentoo-62842165f0e58b21ba7e3adeec2546ad5e7ceeae.zip |
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
Diffstat (limited to 'dev-util/spec-cleaner')
-rw-r--r-- | dev-util/spec-cleaner/Manifest | 1 | ||||
-rw-r--r-- | dev-util/spec-cleaner/files/spec-cleaner-1.0.6-pytest-runner.patch | 11 | ||||
-rw-r--r-- | dev-util/spec-cleaner/spec-cleaner-1.0.6.ebuild | 48 |
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-util/spec-cleaner/Manifest b/dev-util/spec-cleaner/Manifest index a5230786b87a..cf812abc387c 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 000000000000..b280cce28bf4 --- /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 000000000000..297d0528ae6b --- /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 +} |