diff --git a/ShellCheck-0.9.0.tar.gz b/ShellCheck-0.9.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3f4adf152bb7e443a6f553dfede78483580cafc4 Binary files /dev/null and b/ShellCheck-0.9.0.tar.gz differ diff --git a/ShellCheck.spec b/ShellCheck.spec new file mode 100644 index 0000000000000000000000000000000000000000..43129f566181efd264a67a5690d75d1be54fb431 --- /dev/null +++ b/ShellCheck.spec @@ -0,0 +1,174 @@ + +%global pkg_name ShellCheck +%global pkgver %{pkg_name}-%{version} + +# the tests hang +%bcond_with tests + +Name: %{pkg_name} +Version: 0.9.0 +Release: 1%{?dist} +Summary: Shell script analysis tool + +License: GPL-3.0-or-later +Url: https://www.shellcheck.net/ +# Begin cabal-rpm sources: +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +# End cabal-rpm sources + +# Begin cabal-rpm deps: +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-Diff-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-array-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-deepseq-devel +BuildRequires: ghc-directory-devel +BuildRequires: ghc-fgl-devel +BuildRequires: ghc-filepath-devel +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-parsec-devel +BuildRequires: ghc-process-devel +BuildRequires: ghc-regex-tdfa-devel +BuildRequires: ghc-transformers-devel +%if %{with ghc_prof} +BuildRequires: ghc-Diff-prof +BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-aeson-prof +BuildRequires: ghc-array-prof +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-containers-prof +BuildRequires: ghc-deepseq-prof +BuildRequires: ghc-directory-prof +BuildRequires: ghc-fgl-prof +BuildRequires: ghc-filepath-prof +BuildRequires: ghc-mtl-prof +BuildRequires: ghc-parsec-prof +BuildRequires: ghc-process-prof +BuildRequires: ghc-regex-tdfa-prof +BuildRequires: ghc-transformers-prof +%endif +# End cabal-rpm deps +BuildRequires: pandoc +Provides: shellcheck = %{version}-%{release} + +%description +The goals of ShellCheck are: + +* To point out and clarify typical beginner's syntax issues, + that causes a shell to give cryptic error messages. + +* To point out and clarify typical intermediate level semantic problems, + that causes a shell to behave strangely and counter-intuitively. + +* To point out subtle caveats, corner cases and pitfalls, that may cause an + advanced user's otherwise working script to fail under future circumstances. + + +%package -n ghc-%{name} +Summary: Haskell %{name} library + +%description -n ghc-%{name} +This package provides the Haskell %{name} shared library. + + +%package -n ghc-%{name}-devel +Summary: Haskell %{name} library development files +Provides: ghc-%{name}-static = %{version}-%{release} +Provides: ghc-%{name}-static%{?_isa} = %{version}-%{release} +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +%endif +Requires: ghc-%{name}%{?_isa} = %{version}-%{release} + +%description -n ghc-%{name}-devel +This package provides the Haskell %{name} library development files. + + +%if %{with haddock} +%package -n ghc-%{name}-doc +Summary: Haskell %{name} library documentation +BuildArch: noarch +Requires: ghc-filesystem + +%description -n ghc-%{name}-doc +This package provides the Haskell %{name} library documentation. +%endif + + +%if %{with ghc_prof} +%package -n ghc-%{name}-prof +Summary: Haskell %{name} profiling library +Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release} +Supplements: (ghc-%{name}-devel and ghc-prof) + +%description -n ghc-%{name}-prof +This package provides the Haskell %{name} profiling library. +%endif + + +%prep +# Begin cabal-rpm setup: +%autosetup -p1 +# End cabal-rpm setup + + +%build +# Begin cabal-rpm build: +%ghc_lib_build +# End cabal-rpm build +./manpage + + +%install +# Begin cabal-rpm install +%ghc_lib_install +# End cabal-rpm install + +install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1 + + +%check +%if %{with tests} +%cabal_test +%endif + + +%files +# Begin cabal-rpm files: +%license LICENSE +%doc README.md +%{_bindir}/shellcheck +# End cabal-rpm files +%{_mandir}/man1/shellcheck.1* + + +%files -n ghc-%{name} -f ghc-%{name}.files +# Begin cabal-rpm files: +%license LICENSE +# End cabal-rpm files + + +%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files +%doc README.md + + +%if %{with haddock} +%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files +%license LICENSE +%endif + + +%if %{with ghc_prof} +%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files +%endif + + +%changelog +* Mon Mar 04 2024 sunligang - 0.9.0-1 +- Init package build