From b753ab14661caadfa756150f2b540c94a8717815c34cb16134a84d5498eb1320 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 10 Nov 2022 12:26:59 +0000 Subject: [PATCH] - Add python-platformio.rpmlintrc to avoid false positives. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-platformio?expand=0&rev=20 --- python-platformio.changes | 1 + python-platformio.rpmlintrc | 13 +++++++++++++ python-platformio.spec | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 python-platformio.rpmlintrc diff --git a/python-platformio.changes b/python-platformio.changes index e934813..320e099 100644 --- a/python-platformio.changes +++ b/python-platformio.changes @@ -4,6 +4,7 @@ Thu Nov 10 12:07:39 UTC 2022 - Matej Cepl - Switch to wheel build/install, move scripts/ directory to the packages's namespace (see https://community.platformio.org/t/installs-scripts-directory-to-the-global-namespace/30396). +- Add python-platformio.rpmlintrc to avoid false positives. ------------------------------------------------------------------- Wed Nov 9 16:27:43 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-platformio.rpmlintrc b/python-platformio.rpmlintrc new file mode 100644 index 0000000..7f9b198 --- /dev/null +++ b/python-platformio.rpmlintrc @@ -0,0 +1,13 @@ +# These hidden files are legitimate part of the package +addFilter("hidden-file-or-dir /usr/lib/python.*/.ccls.tpl") +addFilter("hidden-file-or-dir /usr/lib/python.*/.clang_complete.tpl") +addFilter("hidden-file-or-dir /usr/lib/python.*/.cproject.tpl") +addFilter("hidden-file-or-dir /usr/lib/python.*/.gcc-flags.json.tpl") +addFilter("hidden-file-or-dir /usr/lib/python.*/.gitignore.tpl") +addFilter("hidden-file-or-dir /usr/lib/python.*/.project.tpl") +addFilter("hidden-file-or-dir /usr/lib/python.*/.settings") +addFilter("hidden-file-or-dir /usr/lib/python.*/.vscode") +# These two names are links to the same file +addFilter("files-duplicate /usr/bin/platformio-3\.\d+ /usr/bin/pio-3\.\d+") + + diff --git a/python-platformio.spec b/python-platformio.spec index 70bf3e5..b317568 100644 --- a/python-platformio.spec +++ b/python-platformio.spec @@ -23,7 +23,8 @@ Summary: New Generation Ecosystem for Embedded Development License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/platformio/platformio-core -Source: https://files.pythonhosted.org/packages/source/p/platformio/platformio-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/platformio/platformio-%{version}.tar.gz +Source99: python-platformio.rpmlintrc BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel}