diff --git a/rpmlint.config b/rpmlint.config index b259872..1223091 100644 --- a/rpmlint.config +++ b/rpmlint.config @@ -461,6 +461,8 @@ addFilter("info-files-without-install-info-postun") addFilter("postin-without-install-info") # pip 20.2 generates PEP 376 "REQUESTED" marker (empty) addFilter(r"zero-length .+/site-packages/.+\.dist-info/REQUESTED\b") +# py.typed files are empty +addFilter(r"zero-length .+/site-packages/.+/py\.typed\b") bad_crypto_warning = \ '''This application package calls a function to explicitly set crypto ciphers diff --git a/rpmlint.spec b/rpmlint.spec index 51025a0..e929f4f 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -20,7 +20,7 @@ Name: rpmlint Version: 1.11 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Tool for checking common errors in RPM packages License: GPLv2 URL: https://github.com/rpm-software-management/rpmlint @@ -41,6 +41,7 @@ Patch213: rpmlint-1.11-libc-warnings.patch Patch214: rpmlint-1.11-no-python-macro.patch BuildArch: noarch +BuildRequires: make %if %{with python3} BuildRequires: python3-devel BuildRequires: python3-rpm >= 4.4.2.2 @@ -162,6 +163,9 @@ make check PYTHON=%{python} PYTEST=%{pytest} FLAKE8=%{flake8} %{_mandir}/man1/rpmlint.1* %changelog +* Mon Jan 25 2021 Miro Hrončok - 1.11-13 +- Filter out empty py.typed files in Python site-packages + * Fri Aug 21 2020 Miro Hrončok - 1.11-12 - Filter out empty REQUESTED files in pip installed Python metadata dist-info dirs