public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ghc-language-c] epel9: revise .cabal
@ 2026-07-13 13:58 Jens Petersen
  0 siblings, 0 replies; only message in thread
From: Jens Petersen @ 2026-07-13 13:58 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ghc-language-c
Branch : epel9
Commit : 6f076abc3efb740fe239faae7cbf9be0948bcb81
Author : Jens Petersen <petersen@redhat.com>
Date   : 2022-06-18T00:21:41+08:00
Stats  : +134/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/ghc-language-c/c/6f076abc3efb740fe239faae7cbf9be0948bcb81?branch=epel9

Log:
revise .cabal

---
diff --git a/ghc-language-c.spec b/ghc-language-c.spec
index 81d1874..eda6a30 100644
--- a/ghc-language-c.spec
+++ b/ghc-language-c.spec
@@ -15,9 +15,11 @@ License:        BSD
 Url:            https://hackage.haskell.org/package/%{pkg_name}
 # Begin cabal-rpm sources:
 Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
+Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
 # End cabal-rpm sources
 
 # Begin cabal-rpm deps:
+BuildRequires:  dos2unix
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-array-prof
@@ -78,6 +80,7 @@ This package provides the Haskell %{pkg_name} profiling library.
 %prep
 # Begin cabal-rpm setup:
 %setup -q -n %{pkgver}
+dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal
 # End cabal-rpm setup
 
 

diff --git a/language-c-0.9.0.1.cabal b/language-c-0.9.0.1.cabal
new file mode 100644
index 0000000..3a8dd22
--- /dev/null
+++ b/language-c-0.9.0.1.cabal
@@ -0,0 +1,131 @@
+Name:           language-c
+Version:        0.9.0.1
+x-revision: 1
+Cabal-Version:  >= 1.10
+Build-Type:     Simple
+License:        BSD3
+License-File:   LICENSE
+Copyright:      LICENSE
+Author:         AUTHORS
+Maintainer:     language.c@monoid.al
+Stability:      experimental
+Homepage:       http://visq.github.io/language-c/
+Bug-reports:    https://github.com/visq/language-c/issues/
+
+Synopsis:       Analysis and generation of C code
+Description:    Language C is a haskell library for the analysis and generation of C code.
+                It features a complete, well tested parser and pretty printer for all of C99 and a large
+                set of C11 and clang/GNU extensions.
+Category:       Language
+Tested-With:    GHC == 8.0.*, GHC == 8.2.*, GHC == 8.4.*, GHC == 8.6.*, GHC == 8.8.*, GHC == 8.10.*
+
+Extra-Source-Files: AUTHORS AUTHORS.c2hs ChangeLog README
+                    src/Language/C/Parser/Lexer.x
+                    src/Language/C/Parser/Parser.y
+
+Source-Repository head
+  type:     git
+  location: https://github.com/visq/language-c.git
+
+Flag useByteStrings
+    Description: Use ByteString as InputStream datatype
+    Default: True
+Flag allWarnings
+    Description: Turn on all warnings for building (development)
+    Default: False
+Flag iecFpExtension
+    Description: Support IEC 60559 floating point extension (defines _Float128)
+    Default: True
+Library
+    default-extensions: CPP, DeriveDataTypeable, DeriveGeneric, PatternGuards, BangPatterns, ExistentialQuantification, GeneralizedNewtypeDeriving, ScopedTypeVariables
+    Build-Depends: base >= 4.8 && < 5,
+                   array,
+                   containers >= 0.3,
+                   deepseq >= 1.4.0.0 && < 1.5,
+                   directory,
+                   filepath,
+                   mtl,
+                   pretty < 1.2.0,
+                   process
+    if flag(allWarnings)
+        if impl(ghc >= 8.0)
+          ghc-options:     -Wall -Wno-redundant-constraints
+        else
+          ghc-options:     -Wall
+
+    Build-Depends:
+      base >=4 && <5
+
+    if flag(useByteStrings)
+        Build-Depends: bytestring >= 0.9.0
+    else
+        cpp-options: -DNO_BYTESTRING
+
+    if flag(iecFpExtension)
+        cpp-options: -DIEC_60559_TYPES_EXT
+
+     -- GHC.Generics lived in `ghc-prim` for GHC 7.2 & GHC 7.4
+    if impl(ghc == 7.4.*)
+        build-depends: ghc-prim == 0.2.*
+
+    Build-Tools:    happy, alex
+
+    Hs-Source-Dirs: src
+    Exposed-Modules:
+                      -- top-level
+                      Language.C
+                      -- data
+                      Language.C.Data
+                      Language.C.Data.Position
+                      Language.C.Data.Ident
+                      Language.C.Data.Error
+                      Language.C.Data.Name
+                      Language.C.Data.Node
+                      Language.C.Data.InputStream
+                      -- syntax
+                      Language.C.Syntax
+                      Language.C.Syntax.AST
+                      Language.C.Syntax.Constants
+                      Language.C.Syntax.Ops
+                      Language.C.Syntax.Utils
+                      -- parser
+                      Language.C.Parser
+                      -- pretty printer
+                      Language.C.Pretty
+                      -- system
+                      Language.C.System.Preprocess
+                      Language.C.System.GCC
+                      -- analysis [experimental]
+                      Language.C.Analysis
+                      Language.C.Analysis.ConstEval
+                      Language.C.Analysis.Builtins
+                      Language.C.Analysis.SemError
+                      Language.C.Analysis.SemRep
+                      Language.C.Analysis.DefTable
+                      Language.C.Analysis.TravMonad
+                      Language.C.Analysis.AstAnalysis
+                      Language.C.Analysis.DeclAnalysis
+                      Language.C.Analysis.Debug
+                      Language.C.Analysis.TypeCheck
+                      Language.C.Analysis.TypeConversions
+                      Language.C.Analysis.TypeUtils
+                      Language.C.Analysis.NameSpaceMap
+                      Language.C.Analysis.MachineDescs
+                      -- semrep -> code [alpha]
+                      Language.C.Analysis.Export
+    Other-Modules:
+                      Language.C.Data.RList
+                      -- parser implementation
+                      Language.C.Parser.Builtin
+                      Language.C.Parser.Lexer
+                      Language.C.Parser.ParserMonad
+                      Language.C.Parser.Tokens
+                      Language.C.Parser.Parser
+  default-language: Haskell2010
+
+-- test description
+Test-Suite language-c-harness
+    type:       exitcode-stdio-1.0
+    main-is:    test/harness/run-harness.hs
+    build-depends: base, directory, process, filepath
+    default-language: Haskell2010

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-13 13:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-13 13:58 [rpms/ghc-language-c] epel9: revise .cabal Jens Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox