From 99611d8034d5ec48d8df1c97d72f4d8911546b3e Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 20:13:39 +0000 Subject: automatic import of python-shellcheck-py --- python-shellcheck-py.spec | 182 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 python-shellcheck-py.spec (limited to 'python-shellcheck-py.spec') diff --git a/python-shellcheck-py.spec b/python-shellcheck-py.spec new file mode 100644 index 0000000..a21c7a5 --- /dev/null +++ b/python-shellcheck-py.spec @@ -0,0 +1,182 @@ +%global _empty_manifest_terminate_build 0 +Name: python-shellcheck-py +Version: 0.9.0.2 +Release: 1 +Summary: Python wrapper around invoking shellcheck (https://www.shellcheck.net/) +License: MIT +URL: https://github.com/ryanrhee/shellcheck-py +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/40/43/04cb4a5dbcc65d194d62b9e834c299a40cc88c38cac86cc564f3d00e4423/shellcheck_py-0.9.0.2.tar.gz + + +%description +[![Build Status](https://dev.azure.com/shellcheck-py/shellcheck-py/_apis/build/status/shellcheck-py.shellcheck-py?branchName=main)](https://dev.azure.com/shellcheck-py/shellcheck-py/_build/latest?definitionId=1&branchName=main) +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/shellcheck-py/shellcheck-py/main.svg)](https://results.pre-commit.ci/latest/github/shellcheck-py/shellcheck-py/main) + +# shellcheck-py + +A python wrapper to provide a pip-installable [shellcheck] binary. + +Internally this package provides a convenient way to download the pre-built +shellcheck binary for your particular platform. + +### installation + +```bash +pip install shellcheck-py +``` + +### usage + +After installation, the `shellcheck` binary should be available in your +environment (or `shellcheck.exe` on windows). + +### As a pre-commit hook + +See [pre-commit] for instructions + +Sample `.pre-commit-config.yaml`: + +```yaml +- repo: https://github.com/shellcheck-py/shellcheck-py + rev: v0.9.0.2 + hooks: + - id: shellcheck +``` + +[shellcheck]: https://shellcheck.net +[pre-commit]: https://pre-commit.com + + +%package -n python3-shellcheck-py +Summary: Python wrapper around invoking shellcheck (https://www.shellcheck.net/) +Provides: python-shellcheck-py +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-shellcheck-py +[![Build Status](https://dev.azure.com/shellcheck-py/shellcheck-py/_apis/build/status/shellcheck-py.shellcheck-py?branchName=main)](https://dev.azure.com/shellcheck-py/shellcheck-py/_build/latest?definitionId=1&branchName=main) +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/shellcheck-py/shellcheck-py/main.svg)](https://results.pre-commit.ci/latest/github/shellcheck-py/shellcheck-py/main) + +# shellcheck-py + +A python wrapper to provide a pip-installable [shellcheck] binary. + +Internally this package provides a convenient way to download the pre-built +shellcheck binary for your particular platform. + +### installation + +```bash +pip install shellcheck-py +``` + +### usage + +After installation, the `shellcheck` binary should be available in your +environment (or `shellcheck.exe` on windows). + +### As a pre-commit hook + +See [pre-commit] for instructions + +Sample `.pre-commit-config.yaml`: + +```yaml +- repo: https://github.com/shellcheck-py/shellcheck-py + rev: v0.9.0.2 + hooks: + - id: shellcheck +``` + +[shellcheck]: https://shellcheck.net +[pre-commit]: https://pre-commit.com + + +%package help +Summary: Development documents and examples for shellcheck-py +Provides: python3-shellcheck-py-doc +%description help +[![Build Status](https://dev.azure.com/shellcheck-py/shellcheck-py/_apis/build/status/shellcheck-py.shellcheck-py?branchName=main)](https://dev.azure.com/shellcheck-py/shellcheck-py/_build/latest?definitionId=1&branchName=main) +[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/shellcheck-py/shellcheck-py/main.svg)](https://results.pre-commit.ci/latest/github/shellcheck-py/shellcheck-py/main) + +# shellcheck-py + +A python wrapper to provide a pip-installable [shellcheck] binary. + +Internally this package provides a convenient way to download the pre-built +shellcheck binary for your particular platform. + +### installation + +```bash +pip install shellcheck-py +``` + +### usage + +After installation, the `shellcheck` binary should be available in your +environment (or `shellcheck.exe` on windows). + +### As a pre-commit hook + +See [pre-commit] for instructions + +Sample `.pre-commit-config.yaml`: + +```yaml +- repo: https://github.com/shellcheck-py/shellcheck-py + rev: v0.9.0.2 + hooks: + - id: shellcheck +``` + +[shellcheck]: https://shellcheck.net +[pre-commit]: https://pre-commit.com + + +%prep +%autosetup -n shellcheck-py-0.9.0.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-shellcheck-py -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 0.9.0.2-1 +- Package Spec generated -- cgit v1.2.3