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..8e78791bb48b4d5b003c0c6beb15e9811e4c6dbd --- /dev/null +++ b/ShellCheck.spec @@ -0,0 +1,158 @@ +%global pkg_name ShellCheck +%global pkgver %{pkg_name}-%{version} +%bcond_with tests + +Name: %{pkg_name} +Version: 0.9.0 +Release: 1 +Summary: Shell script analysis tool +License: GPL-3.0-or-later +Url: https://www.shellcheck.net/ +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz + + +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 +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 +%autosetup -p1 + + +%build +%ghc_lib_build +./manpage + + +%install +%ghc_lib_install + +install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1 + + +%check +%if %{with tests} +%cabal_test +%endif + + +%files +%license LICENSE +%doc README.md +%{_bindir}/shellcheck + +%{_mandir}/man1/shellcheck.1* + + +%files -n ghc-%{name} -f ghc-%{name}.files +%license LICENSE + + +%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 +* Fri Mar 29 2024 tenglei - 0.9.0-1 +- init package \ No newline at end of file