From fbae405dca1cbbb48a17939a80d8b17df4e938bf6a84485af18a93e2aef92266 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 2 Jun 2018 11:51:09 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ShellCheck revision:8, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ShellCheck?expand=0&rev=38 --- ShellCheck-0.4.7.tar.gz | 3 -- ShellCheck-0.5.0.tar.gz | 3 ++ ShellCheck.cabal | 102 ---------------------------------------- ShellCheck.spec | 14 +++--- 4 files changed, 10 insertions(+), 112 deletions(-) delete mode 100644 ShellCheck-0.4.7.tar.gz create mode 100644 ShellCheck-0.5.0.tar.gz delete mode 100644 ShellCheck.cabal diff --git a/ShellCheck-0.4.7.tar.gz b/ShellCheck-0.4.7.tar.gz deleted file mode 100644 index b0d2f3d..0000000 --- a/ShellCheck-0.4.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5a22c9be927b25e0a2cac188d7c9bd40fd7dbc420bdaa7dc76988505fb0c73a -size 171980 diff --git a/ShellCheck-0.5.0.tar.gz b/ShellCheck-0.5.0.tar.gz new file mode 100644 index 0000000..d0c3ee6 --- /dev/null +++ b/ShellCheck-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b9430736f48de17a60c035546a6a969c14392521bec30119e1c869017d3307c +size 133265 diff --git a/ShellCheck.cabal b/ShellCheck.cabal deleted file mode 100644 index 9df300a..0000000 --- a/ShellCheck.cabal +++ /dev/null @@ -1,102 +0,0 @@ -Name: ShellCheck -Version: 0.4.7 -x-revision: 1 -Synopsis: Shell script analysis tool -License: GPL-3 -License-file: LICENSE -Category: Static Analysis -Author: Vidar Holen -Maintainer: vidar@vidarholen.net -Homepage: https://www.shellcheck.net/ -Build-Type: Custom -Cabal-Version: >= 1.8 -Bug-reports: https://github.com/koalaman/shellcheck/issues -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. - -Extra-Source-Files: - -- documentation - README.md - shellcheck.1.md - -- built with a cabal sdist hook - shellcheck.1 - -- tests - test/shellcheck.hs - -custom-setup - setup-depends: - base >= 4 && <5, - process >= 1.0 && <1.7, - Cabal >= 1.10 && <2.3 - -source-repository head - type: git - location: git://github.com/koalaman/shellcheck.git - -library - build-depends: - base >= 4 && < 5, - containers >= 0.5, - directory, - json, - mtl >= 2.2.1, - parsec, - regex-tdfa, - QuickCheck >= 2.7.4, - -- When cabal supports it, move this to setup-depends: - process - exposed-modules: - ShellCheck.AST - ShellCheck.ASTLib - ShellCheck.Analytics - ShellCheck.Analyzer - ShellCheck.AnalyzerLib - ShellCheck.Checker - ShellCheck.Checks.Commands - ShellCheck.Checks.ShellSupport - ShellCheck.Data - ShellCheck.Formatter.Format - ShellCheck.Formatter.CheckStyle - ShellCheck.Formatter.GCC - ShellCheck.Formatter.JSON - ShellCheck.Formatter.TTY - ShellCheck.Interface - ShellCheck.Parser - ShellCheck.Regex - other-modules: - Paths_ShellCheck - -executable shellcheck - build-depends: - base >= 4 && < 5, - containers, - directory, - json >= 0.3.6, - mtl >= 2.2.1, - parsec >= 3.0, - regex-tdfa, - QuickCheck >= 2.7.4 - main-is: shellcheck.hs - -test-suite test-shellcheck - type: exitcode-stdio-1.0 - build-depends: - base >= 4 && < 5, - containers, - directory, - json, - mtl >= 2.2.1, - parsec, - regex-tdfa, - QuickCheck >= 2.7.4 - main-is: test/shellcheck.hs - diff --git a/ShellCheck.spec b/ShellCheck.spec index 398609d..3f72d1f 100644 --- a/ShellCheck.spec +++ b/ShellCheck.spec @@ -19,25 +19,25 @@ %global pkg_name ShellCheck %bcond_with tests Name: %{pkg_name} -Version: 0.4.7 +Version: 0.5.0 Release: 0 Summary: Shell script analysis tool License: GPL-3.0-or-later Group: Development/Libraries/Haskell URL: https://hackage.haskell.org/package/%{name} -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 +Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz +BuildRequires: chrpath BuildRequires: ghc-Cabal-devel BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-aeson-devel +BuildRequires: ghc-bytestring-devel BuildRequires: ghc-containers-devel BuildRequires: ghc-directory-devel -BuildRequires: ghc-json-devel BuildRequires: ghc-mtl-devel 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: @@ -70,14 +70,14 @@ Requires(postun): ghc-compiler = %{ghc_version} This package provides the Haskell %{name} library development files. %prep -%setup -q -n shellcheck-235bf6605fed31c90b17f3f76a30945ef344d015 +%setup -q %build %ghc_lib_build %install %ghc_lib_install -pandoc -s -t man shellcheck.1.md -o shellcheck.1 +%ghc_fix_rpath %{pkg_name}-%{version} install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1 %check