Accepting request 609837 from devel:languages:haskell

Update ShellCheck to latest version.

OBS-URL: https://build.opensuse.org/request/show/609837
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ShellCheck?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2018-05-30 10:21:42 +00:00 committed by Git OBS Bridge
commit 4a46dc1074
3 changed files with 39 additions and 8 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:184955264d42c5dca0300fb9688b9a6c9a1c70c345dbcd8e30bb48a049a70d7c
size 126593
oid sha256:d5a22c9be927b25e0a2cac188d7c9bd40fd7dbc420bdaa7dc76988505fb0c73a
size 171980

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Wed May 16 14:36:30 UTC 2018 - psimons@suse.com
- Update to version v0.4.7-106-g235bf66 from Github to fix the
build with GHC 8.4.x.
* Added:
SC2232: Warn about invalid arguments to sudo
SC2231: Suggest quoting expansions in for loop globs
SC2229: Warn about 'read $var'
SC2227: Warn about redirections in the middle of 'find' commands
SC2224,SC2225,SC2226: Warn when using mv/cp/ln without a destination
SC2223: Quote warning specific to : ${var=value}
SC1131: Warn when using elseif or elsif
SC1128: Warn about blanks/comments before shebang
SC1127: Warn about C-style comments
* Fixed:
Annotations intended for a command's here documents now work
Escaped characters inside groups in =~ regexes now parse
Associative arrays are now respected in arithmetic contexts
SC1087 about $var[@] now correctly triggers on any index
Bad expansions in here documents are no longer ignored
FD move operations like {fd}>1- now parse correctly
* Changed:
SC1073: 'else if' is now parsed correctly and not like 'elif'
SC2163: 'export $name' can now be silenced with 'export ${name?}'
SC2183: Now warns when printf arg count is not a multiple of format count
-------------------------------------------------------------------
Thu Apr 12 10:15:44 UTC 2018 - guillaume@opensuse.org

View File

@ -25,7 +25,7 @@ Summary: Shell script analysis tool
License: GPL-3.0-or-later
Group: Development/Libraries/Haskell
URL: https://hackage.haskell.org/package/%{name}
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
Source0: https://github.com/koalaman/shellcheck/archive/v0.4.7-106-g235bf66.tar.gz#/%{name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{name}-%{version}/revision/1.cabal#/%{name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-QuickCheck-devel
@ -37,6 +37,7 @@ BuildRequires: ghc-parsec-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-regex-tdfa-devel
BuildRequires: ghc-rpm-macros
BuildRequires: pandoc
%description
The goals of ShellCheck are:
@ -69,14 +70,14 @@ Requires(postun): ghc-compiler = %{ghc_version}
This package provides the Haskell %{name} library development files.
%prep
%setup -q
cp -p %{SOURCE1} %{name}.cabal
%setup -q -n shellcheck-235bf6605fed31c90b17f3f76a30945ef344d015
%build
%ghc_lib_build
%install
%ghc_lib_install
pandoc -s -t man shellcheck.1.md -o shellcheck.1
install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
%check
@ -89,13 +90,13 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
%ghc_pkg_recache
%files
%doc LICENSE
%license LICENSE
%doc README.md
%{_bindir}/shellcheck
%{_mandir}/man1/shellcheck.1*
%{_mandir}/man1/shellcheck.1%{?ext_man}
%files -n ghc-%{name} -f ghc-%{name}.files
%doc LICENSE
%license LICENSE
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%doc README.md