%{!?python3: %global python3 %{__python3}} Name: rpmlint Version: 2.8.0 Release: 0.20251002203914287293.pr1395.25.g2064182a%{?dist} Summary: Tool for checking common errors in RPM packages License: GPLv2+ URL: https://github.com/rpm-software-management/rpmlint Source0: rpmlint-2.8.0.tar.gz BuildArch: noarch BuildRequires: python3-devel %if 0%{?suse_version} # Unfortunately, these don't get pulled in automatically... BuildRequires: python-rpm-macros BuildRequires: python3-setuptools # For tests BuildRequires: python3-python-magic BuildRequires: python3-pybeam BuildRequires: python3-pyenchant BuildRequires: python3-pytest BuildRequires: python3-pytest-cov BuildRequires: python3-pytest-xdist BuildRequires: python3-pyxdg BuildRequires: python3-rpm BuildRequires: python3-tomli BuildRequires: python3-tomli-w BuildRequires: python3-zstandard BuildRequires: python3-packaging %else BuildRequires: python3dist(setuptools) # For tests BuildRequires: python3dist(file-magic) BuildRequires: python3dist(pybeam) BuildRequires: python3dist(pyenchant) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-cov) BuildRequires: python3dist(pytest-xdist) BuildRequires: python3dist(pyxdg) BuildRequires: python3dist(rpm) BuildRequires: (python3dist(tomli) if python3 < 3.11) BuildRequires: python3dist(tomli-w) BuildRequires: python3dist(zstandard) BuildRequires: python3dist(packaging) %endif # Rest of the test dependencies BuildRequires: dash BuildRequires: /usr/bin/appstream-util BuildRequires: /usr/bin/checkbashisms BuildRequires: /usr/bin/desktop-file-validate %if 0%{?suse_version} BuildRequires: myspell-en_US BuildRequires: myspell-cs_CZ BuildRequires: myspell-fr_FR %else BuildRequires: hunspell-en BuildRequires: hunspell-cs BuildRequires: hunspell-fr %endif %if 0%{?fedora} || 0%{?rhel} >= 8 BuildRequires: glibc-langpack-en %endif %if 0%{?suse_version} BuildRequires: glibc-locale-base %endif %if 0%{?mageia} BuildRequires: locales-en %endif Requires: /bin/bash Requires: /usr/bin/appstream-util Requires: /usr/bin/bzip2 Requires: /usr/bin/checkbashisms Requires: /usr/bin/cpio Requires: /usr/bin/desktop-file-validate Requires: /usr/bin/groff Requires: /usr/bin/gtbl Requires: /usr/bin/ldd Requires: /usr/bin/man Requires: /usr/bin/perl Requires: /usr/bin/readelf Requires: /usr/bin/xz Requires: /usr/bin/zstd # Enable Python dependency generation %{?python_enable_dependency_generator} %description rpmlint is a tool for checking common errors in RPM packages. Binary and source packages as well as spec files can be checked. %prep %autosetup -n rpmlint-2.8.0 %build %py3_build %install %py3_install %check %python3 -m pytest %files %license COPYING %doc README* %{_bindir}/rpmlint %{_bindir}/rpmdiff %{python3_sitelib}/rpmlint* %changelog * Thu Oct 02 2025 Packit - 2.8.0-0.20251002203914287293.pr1395.25.g2064182a - Permit repeating --rpmlintrc (Ulrik Haugen) - Fix typo (Ulrik Haugen) - Remove exists check for rpmlintrc in process_lint_args (Ulrik Haugen) - Resolve `superfluous-parens` (vil02) - Resolve `use-implicit-booleaness-not-len` (vil02) - Resolve `redefined-outer-name` (vil02) - Resolve `consider-using-in` (vil02) - Resolve `consider-merging-isinstance` (vil02) - Simplify `AbstractPkg._gather_aux` to resolve `consider-using-enumerate` (vil02) - Resolve `no-else-raise` (vil02) - Resolve `no-else-return` (vil02) - Use list comprehensions (vil02) - Resolve `consider-using-sys-exit` (vil02) - Simplify code by using `sorted()` (vil02)