bumped to version 0.3.1
Also added a workaround for the Fedora haskell toolchain (bug #1052117).
This commit is contained in:
parent
b0905b2aeb
commit
900c1f7712
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/v0.2.0.tar.gz
|
/v0.2.0.tar.gz
|
||||||
|
/v0.3.1.tar.gz
|
||||||
|
@ -1,17 +1,14 @@
|
|||||||
%global pkg_name ShellCheck
|
%global pkg_name ShellCheck
|
||||||
|
|
||||||
Name: %{pkg_name}
|
Name: %{pkg_name}
|
||||||
Version: 0.2.0
|
Version: 0.3.1
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Tool for checking common errors in POSIX shell scripts
|
Summary: Tool for checking common errors in POSIX shell scripts
|
||||||
|
|
||||||
License: AGPLv3+
|
License: AGPLv3+
|
||||||
URL: http://www.shellcheck.net/about.html
|
URL: http://www.shellcheck.net/about.html
|
||||||
Source0: https://github.com/koalaman/shellcheck/archive/v%{version}.tar.gz
|
Source0: https://github.com/koalaman/shellcheck/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
# https://github.com/koalaman/shellcheck/issues/44
|
|
||||||
Patch0: https://github.com/koalaman/shellcheck/commit/d4bc0f6.diff
|
|
||||||
|
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
# Begin cabal-rpm deps:
|
# Begin cabal-rpm deps:
|
||||||
@ -60,7 +57,10 @@ This package provides the Haskell %{name} library development files.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n shellcheck-%{version}
|
%setup -q -n shellcheck-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
# workaround until the tarball root directory becomes %%{name}-%%{version}
|
||||||
|
# see also "cd %%{_builddir}/%%{name}-%%{version}" in other sections
|
||||||
|
ln -s shellcheck-%{version} ../%{name}-%{version}
|
||||||
|
|
||||||
cat >Setup.hs <<EOF
|
cat >Setup.hs <<EOF
|
||||||
import Distribution.Simple
|
import Distribution.Simple
|
||||||
@ -70,15 +70,17 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
cd %{_builddir}/%{name}-%{version}
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
cd %{_builddir}/%{name}-%{version}
|
||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
rm %{buildroot}%{_bindir}/jsoncheck
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
cd %{_builddir}/%{name}-%{version}
|
||||||
make .tests
|
make .tests
|
||||||
|
|
||||||
|
|
||||||
@ -107,6 +109,10 @@ make .tests
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 04 2014 Dridi <dridi.boukelmoune@gmail.com> - 0.3.1-1
|
||||||
|
- bumped to version 0.3.1
|
||||||
|
- added a workaround for the Fedora haskell toolchain (bug #1052117)
|
||||||
|
|
||||||
* Tue Dec 03 2013 Dridi <dridi.boukelmoune@gmail.com> - 0.2.0-3
|
* Tue Dec 03 2013 Dridi <dridi.boukelmoune@gmail.com> - 0.2.0-3
|
||||||
- rebuilt
|
- rebuilt
|
||||||
|
|
||||||
|
21
d4bc0f6.diff
21
d4bc0f6.diff
@ -1,21 +0,0 @@
|
|||||||
diff --git a/ShellCheck/Parser.hs b/ShellCheck/Parser.hs
|
|
||||||
index 94536ee..7013547 100644
|
|
||||||
--- a/ShellCheck/Parser.hs
|
|
||||||
+++ b/ShellCheck/Parser.hs
|
|
||||||
@@ -1384,6 +1384,7 @@ prop_readForClause5 = isOk readForClause "for ((i=0;i<10 && n>x;i++,--n))\ndo \n
|
|
||||||
prop_readForClause6 = isOk readForClause "for ((;;))\ndo echo $i\ndone"
|
|
||||||
prop_readForClause7 = isOk readForClause "for ((;;)) do echo $i\ndone"
|
|
||||||
prop_readForClause8 = isOk readForClause "for ((;;)) ; do echo $i\ndone"
|
|
||||||
+prop_readForClause9 = isOk readForClause "for i do true; done"
|
|
||||||
readForClause = called "for loop" $ do
|
|
||||||
pos <- getPosition
|
|
||||||
(T_For id) <- g_For
|
|
||||||
@@ -1408,7 +1409,7 @@ readForClause = called "for loop" $ do
|
|
||||||
readRegular = do
|
|
||||||
name <- readVariableName
|
|
||||||
spacing
|
|
||||||
- values <- readInClause <|> (readSequentialSep >> return [])
|
|
||||||
+ values <- readInClause <|> (optional readSequentialSep >> return [])
|
|
||||||
return $ \id group -> (return $ T_ForIn id name values group)
|
|
||||||
|
|
||||||
prop_readSelectClause1 = isOk readSelectClause "select foo in *; do echo $foo; done"
|
|
Loading…
Reference in New Issue
Block a user