From c3b56763e54cb0f6495bc4ddc40db5218cb68d45 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 20 Sep 2024 15:51:23 +0200 Subject: [PATCH] packaging: create the plugin-shellcheck-core subpackage ... so that one can easily install the `run-shellcheck.sh` script without unnecessary dependencies on `mock` etc. Related: https://issues.redhat.com/browse/OSH-738 --- make-srpm.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/make-srpm.sh b/make-srpm.sh index 884be85..df7fbff 100755 --- a/make-srpm.sh +++ b/make-srpm.sh @@ -216,10 +216,18 @@ This package contains the semgrep plug-in for csmock. %package plugin-shellcheck Summary: csmock plug-in providing the support for ShellCheck. Requires: csmock-common +Requires: csmock-plugin-shellcheck-core %description plugin-shellcheck This package contains the shellcheck plug-in for csmock. +%package plugin-shellcheck-core +Conflicts: csmock-plugin-shellcheck < %{version}-%{release} +Summary: script to run shellcheck on a directory tree + +%description plugin-shellcheck-core +This package contains the run-shellcheck.sh shellcheck script to run shellcheck on a directory tree. + %package plugin-smatch Summary: csmock plug-in providing the support for smatch Requires: csmatch @@ -362,10 +370,15 @@ This package contains the unicontrol plug-in for csmock. %{python3_sitelib}/csmock/plugins/__pycache__/semgrep.* %files plugin-shellcheck -%{_datadir}/csmock/scripts/run-shellcheck.sh %{python3_sitelib}/csmock/plugins/shellcheck.py* %{python3_sitelib}/csmock/plugins/__pycache__/shellcheck.* +%files plugin-shellcheck-core +%license COPYING +%dir %{_datadir}/csmock +%dir %{_datadir}/csmock/scripts +%{_datadir}/csmock/scripts/run-shellcheck.sh + %files plugin-smatch %{python3_sitelib}/csmock/plugins/smatch.py* %{python3_sitelib}/csmock/plugins/__pycache__/smatch.*