remove hlint Annotations on archs without ghci
They don't actually do anything at buildtime other than triggering ghci and of course silence some hlint noise
This commit is contained in:
parent
7c8d07b344
commit
0ff4897aa7
@ -7,24 +7,23 @@
|
|||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.11.0.1
|
Version: 0.11.0.1
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Utilities and combinators for parsing command line options
|
Summary: Utilities and combinators for parsing command line options
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://hackage.haskell.org/package/%{pkg_name}
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||||
|
Patch0: optparse-applicative-remove-ANN.patch
|
||||||
|
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
# Begin cabal-rpm deps:
|
# Begin cabal-rpm deps:
|
||||||
BuildRequires: ghc-ansi-wl-pprint-devel
|
BuildRequires: ghc-ansi-wl-pprint-devel
|
||||||
BuildRequires: ghc-process-devel
|
BuildRequires: ghc-process-devel
|
||||||
BuildRequires: ghc-transformers-devel
|
|
||||||
BuildRequires: ghc-transformers-compat-devel
|
BuildRequires: ghc-transformers-compat-devel
|
||||||
|
BuildRequires: ghc-transformers-devel
|
||||||
# End cabal-rpm deps
|
# End cabal-rpm deps
|
||||||
|
|
||||||
ExclusiveArch: %{ghc_arches_with_ghci}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Utilities and combinators for parsing command line options.
|
Utilities and combinators for parsing command line options.
|
||||||
|
|
||||||
@ -43,6 +42,9 @@ files.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pkg_name}-%{version}
|
%setup -q -n %{pkg_name}-%{version}
|
||||||
|
%ifnarch %{ghc_arches_with_ghci}
|
||||||
|
%patch0 -p1 -b .orig
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -74,6 +76,9 @@ files.
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 5 2014 Jens Petersen <petersen@redhat.com> - 0.11.0.1-3
|
||||||
|
- disable hlint Annotations on archs without ghci
|
||||||
|
|
||||||
* Tue Nov 4 2014 Ricky Elrod <relrod@redhat.com> - 0.11.0.1-2
|
* Tue Nov 4 2014 Ricky Elrod <relrod@redhat.com> - 0.11.0.1-2
|
||||||
- Add ExclusiveArch for GHCi dependency
|
- Add ExclusiveArch for GHCi dependency
|
||||||
|
|
||||||
|
16
optparse-applicative-remove-ANN.patch
Normal file
16
optparse-applicative-remove-ANN.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
diff -up optparse-applicative-0.11.0.1/Options/Applicative.hs~ optparse-applicative-0.11.0.1/Options/Applicative.hs
|
||||||
|
--- optparse-applicative-0.11.0.1/Options/Applicative.hs~ 2014-10-06 02:01:26.000000000 +0900
|
||||||
|
+++ optparse-applicative-0.11.0.1/Options/Applicative.hs 2014-11-05 10:42:59.741567059 +0900
|
||||||
|
@@ -35,4 +35,3 @@ import Options.Applicative.Builder
|
||||||
|
import Options.Applicative.Builder.Completer
|
||||||
|
import Options.Applicative.Extra
|
||||||
|
|
||||||
|
-{-# ANN module "HLint: ignore Use import/export shortcut" #-}
|
||||||
|
diff -up optparse-applicative-0.11.0.1/Options/Applicative/Help/Core.hs~ optparse-applicative-0.11.0.1/Options/Applicative/Help/Core.hs
|
||||||
|
--- optparse-applicative-0.11.0.1/Options/Applicative/Help/Core.hs~ 2014-10-06 02:01:26.000000000 +0900
|
||||||
|
+++ optparse-applicative-0.11.0.1/Options/Applicative/Help/Core.hs 2014-11-05 10:43:34.110704025 +0900
|
||||||
|
@@ -140,4 +140,3 @@ parserUsage pprefs p progn = hsep
|
||||||
|
, string progn
|
||||||
|
, align (extractChunk (briefDesc pprefs p)) ]
|
||||||
|
|
||||||
|
-{-# ANN footerHelp "HLint: ignore Eta reduce" #-}
|
Loading…
Reference in New Issue
Block a user