Skip to content

Commit

Permalink
packaging: create the plugin-shellcheck-core subpackage
Browse files Browse the repository at this point in the history
... 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
Related: #185
  • Loading branch information
kdudka committed Sep 20, 2024
1 parent 92bfc06 commit 2434989
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion make-srpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 script to run shellcheck on a directory tree.
%package plugin-smatch
Summary: csmock plug-in providing the support for smatch
Requires: csmatch
Expand Down Expand Up @@ -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.*
Expand Down

0 comments on commit 2434989

Please sign in to comment.