%{!?python3: %global python3 %{__python3}} Name: rpmlint Version: 2.5.0 Release: 0.20240611063523151744.pr1230.75.g745558dc%{?dist} Summary: Tool for checking common errors in RPM packages License: GPLv2+ URL: https://github.com/rpm-software-management/rpmlint Source0: rpmlint-2.5.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.5.0 %build %py3_build %install %py3_install %check %python3 -m pytest %files %license COPYING %doc README* %{_bindir}/rpmlint %{_bindir}/rpmdiff %{python3_sitelib}/rpmlint* %changelog * Tue Jun 11 2024 Packit - 2.5.0-0.20240611063523151744.pr1230.75.g745558dc - FilesCheck: warn about files with zero perms (Daniel Garcia Moreno) - PythonCheck: simplify requirement check using metadata (Daniel Garcia Moreno) - Clarify what the real intent is of this check (Marcus Rückert) - openSUSE: Add netdata user/group (Mia Herkt) - Add forgejo group and user (Pi-Cla) - remove comment in setup.cfg (Luz Marina Montilla Marín) - test: mocked package in test_xinetd.py (Chaitanya Bisht) - SpecCheck: Add no-%check-section warning (Daniel Garcia Moreno) - test: add mocks folder and mocks for duplicates check (afrid18) - pkg: remove unicode type reference in is_utf8_bytestr exception (danigm) - Refactored the is_utf8_bytestr function (Chaitanya Bisht) - readme: More specific title for building section (danigm) - test: imporve fixtures in test_duplicates.py (afrid18) - Add building documentation (Chaitanya Bisht) - Update README.md (Chaitanya Bisht) - CI: Reenable mageia-cauldron in packit (Daniel Garcia Moreno) - test: Add tests to check non-standard-dir-perm (Daniel Garcia Moreno) - SpecCheck: Add patch-macro-old-format check (Daniel Garcia Moreno) - BinariesCheck: do not mark as binary eBPF ELF files (Daniel Garcia Moreno) - change pyproject ruff config to toplevel (afrid18) - test: Lazy load mock packages (Daniel Garcia Moreno) - test: Improve name of mock packages (Daniel Garcia Moreno) - Fix the errors and suggestions to the flake8 command (Luz Marina Montilla Marín) - Clean all tests file (Luz Marina Montilla Marín) - config: Do not filter python-leftover-require for fedora (Daniel Garcia Moreno) - Fix misspelled variable: ENGLISH_ENVIROMENT to ENGLISH_ENVIRONMENT (Luz Marina Montilla Marín) - Clean tests file (Luz Marina Montilla Marín) - Move rpm2cpio to one line (Daniel Garcia Moreno) - PythonCheck: Check for python deps like python3.12dist(foo) (Daniel Garcia Moreno) - config: Filter python require checks for Fedora (Daniel Garcia Moreno) - check: Implement reset method in checks (Daniel Garcia Moreno) - Disable Mageia CI builds due to system problem (Daniel Garcia Moreno) - test: Add another test for patch-not-applied (Daniel Garcia Moreno) - read rpm package directly with open() while extracting (Mikhail Campos Guadamuz) - remove redundant TODO comments; checking is handled with check_output() pretty well now (Mikhail Campos Guadamuz) - leave rpm2cpio as fallback for distros which do not have rpm2archive available yet (Mikhail Campos Guadamuz) - fix warnings about import order, attempt 2 (Mikhail Campos Guadamuz) - fix warnings about import order (Mikhail Campos Guadamuz) - Fixes for nsafe shell command (Mikhail Campos Guadamuz) - Drop rpm2cpio usage entirely (Mikhail Campos Guadamuz) - Adding support for RPM packages containing files greater than 4GB (Mikhail Campos Guadamuz) - lint: Reset all checks for each package (Daniel García Moreno) - test: Extend tag tests to check 'W: missing-dependency-on' (Daniel Garcia Moreno) - fix readelf output encoding handling of errors (Carlos Rodriguez-Fernandez) - Ignore (and escape) symbols that are not valid utf8 (Dirk Müller) - Revert "Disable Mageia CI builds due to system problem" (Daniel Garcia Moreno) - Disable Mageia CI builds due to system problem (Daniel Garcia Moreno) - Add pgadmin user/group (Antonio Larrosa)