Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/rpmlint/files/, dev-util/rpmlint/
Date: Sun, 16 May 2021 15:12:24
Message-Id: 1621177938.67ee634e31bea5f4d0b3e06e8e4d13d2b5db6ab5.Alessandro-Barbieri@gentoo
1 commit: 67ee634e31bea5f4d0b3e06e8e4d13d2b5db6ab5
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun May 16 15:09:43 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sun May 16 15:12:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=67ee634e
7
8 dev-util/rpmlint: new package
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-util/rpmlint/Manifest | 1 +
14 dev-util/rpmlint/files/no-coverage.patch | 8 +++
15 dev-util/rpmlint/metadata.xml | 16 ++++++
16 dev-util/rpmlint/rpmlint-1.11_p20210515.ebuild | 68 ++++++++++++++++++++++++++
17 4 files changed, 93 insertions(+)
18
19 diff --git a/dev-util/rpmlint/Manifest b/dev-util/rpmlint/Manifest
20 new file mode 100644
21 index 000000000..5c9b4c880
22 --- /dev/null
23 +++ b/dev-util/rpmlint/Manifest
24 @@ -0,0 +1 @@
25 +DIST rpmlint-1.11_p20210515.tar.gz 5670517 BLAKE2B b85727f45cf56a89d0b7a1394b72f627cde6704236851e548712c19389baced8dc86995fad0d5ee274e79e10cece553e4b2870b012d8063eef93d56c03f5ee5c SHA512 c8b40b93cfeb16b96588536948c84b0bbfed18b9e63668b68d8b7574e7bc90c5a15a7efc2b612ea4d4db470b156f5e29abee7acb69f3edb86d20482e499b0140
26
27 diff --git a/dev-util/rpmlint/files/no-coverage.patch b/dev-util/rpmlint/files/no-coverage.patch
28 new file mode 100644
29 index 000000000..86edc54ec
30 --- /dev/null
31 +++ b/dev-util/rpmlint/files/no-coverage.patch
32 @@ -0,0 +1,8 @@
33 +--- a/setup.cfg
34 ++++ b/setup.cfg
35 +@@ -10,4 +10,4 @@
36 + application-import-names = Testing
37 +
38 + [tool:pytest]
39 +-addopts = -vv --cov=rpmlint -n auto --flake8
40 ++addopts = -vv
41
42 diff --git a/dev-util/rpmlint/metadata.xml b/dev-util/rpmlint/metadata.xml
43 new file mode 100644
44 index 000000000..3bf9e7edc
45 --- /dev/null
46 +++ b/dev-util/rpmlint/metadata.xml
47 @@ -0,0 +1,16 @@
48 +<?xml version="1.0" encoding="UTF-8"?>
49 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
50 +<pkgmetadata>
51 + <maintainer type="person">
52 + <description>comaintainers welcome</description>
53 + <email>lssndrbarbieri@×××××.com</email>
54 + <name>Alessandro Barbieri</name>
55 + </maintainer>
56 + <longdescription lang="en">
57 + rpmlint is a tool for checking common errors in rpm packages. It can be
58 + used to test individual packages and spec files before uploading or to
59 + check an entire distribution. By default all applicable checks are
60 + processed but specific checks can be performed by using command line
61 + parameters.
62 + </longdescription>
63 +</pkgmetadata>
64
65 diff --git a/dev-util/rpmlint/rpmlint-1.11_p20210515.ebuild b/dev-util/rpmlint/rpmlint-1.11_p20210515.ebuild
66 new file mode 100644
67 index 000000000..a8543c0f3
68 --- /dev/null
69 +++ b/dev-util/rpmlint/rpmlint-1.11_p20210515.ebuild
70 @@ -0,0 +1,68 @@
71 +# Copyright 1999-2021 Gentoo Authors
72 +# Distributed under the terms of the GNU General Public License v2
73 +
74 +EAPI="7"
75 +
76 +COMMIT="af4cbdcc93267c065fbb7c7248d203977343523f"
77 +DISTUTILS_SINGLE_IMPL=1
78 +PYTHON_COMPAT=( python3_{7,8,9} )
79 +
80 +inherit distutils-r1
81 +
82 +DESCRIPTION="Tool for checking common errors in RPM packages"
83 +HOMEPAGE="https://github.com/rpm-software-management/rpmlint"
84 +SRC_URI="https://github.com/rpm-software-management/rpmlint/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
85 +S="${WORKDIR}/${PN}-${COMMIT}"
86 +LICENSE="GPL-2"
87 +SLOT="0"
88 +KEYWORDS="~amd64"
89 +
90 +RDEPEND="
91 + ${PYTHON_DEPS}
92 + app-arch/bzip2
93 + app-arch/cpio
94 + app-arch/gzip
95 + app-arch/xz-utils
96 + app-arch/zstd
97 + sys-devel/binutils:*
98 +
99 + $(python_gen_cond_dep '
100 + app-arch/rpm[python,${PYTHON_SINGLE_USEDEP}]
101 + dev-python/pybeam[${PYTHON_USEDEP}]
102 + dev-python/pyxdg[${PYTHON_USEDEP}]
103 + dev-python/toml[${PYTHON_USEDEP}]
104 + dev-python/zstd[${PYTHON_USEDEP}]
105 + ')
106 +"
107 +DEPEND="
108 + ${RDEPEND}
109 + test? (
110 + app-shells/dash
111 + dev-libs/appstream-glib
112 + dev-util/desktop-file-utils
113 + dev-util/devscripts
114 + || (
115 + ( app-text/hunspell[l10n_cs,l10n_en] app-text/enchant[hunspell] )
116 + ( app-text/aspell[l10n_cs,l10n_en] app-text/enchant[aspell] )
117 + )
118 +
119 + $(python_gen_cond_dep '
120 + dev-python/pyenchant[${PYTHON_USEDEP}]
121 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
122 + dev-python/python-magic[${PYTHON_USEDEP}]
123 + ')
124 + )
125 +"
126 +
127 +PATCHES=( "${FILESDIR}/no-coverage.patch" )
128 +
129 +distutils_enable_tests pytest
130 +
131 +python_test() {
132 + pytest -vv \
133 + --deselect test/test_speccheck.py::test_check_invalid_url[spec/SpecCheck2] \
134 + --deselect test/test_lint.py::test_run_installed_and_no_files \
135 + --deselect test/test_lint.py::test_run_installed[packages0] \
136 + --deselect test/test_ldd_parser.py::test_dependencies \
137 + || die
138 +}