osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-language-c revision:3, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-language-c?expand=0&rev=28
This commit is contained in:
2025-03-02 22:00:43 +00:00
committed by Git OBS Bridge
commit ed8013300f
8 changed files with 383 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

107
ghc-language-c.changes Normal file
View File

@@ -0,0 +1,107 @@
-------------------------------------------------------------------
Sat Mar 1 14:57:43 UTC 2025 - Peter Simons <psimons@suse.com>
- Update language-c to version 0.10.0 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Sun Nov 17 23:09:27 UTC 2024 - Peter Simons <psimons@suse.com>
- Update language-c to version 0.10.0.
## 0.10.0
- Support for half-precision floating point `__fp16`, `_Float16`, and `_Float16x`.
- Support for bfloat16 `__bf16`.
- Support alignment specifier `_Alignas` in struct declatations.
-------------------------------------------------------------------
Fri Oct 18 23:11:01 UTC 2024 - Peter Simons <psimons@suse.com>
- Update language-c to version 0.9.4.
## 0.9.4
- Support `happy-2.1`.
-------------------------------------------------------------------
Sat Jan 20 15:44:41 UTC 2024 - Peter Simons <psimons@suse.com>
- Update language-c to version 0.9.3.
Upstream has renamed and modified the change log file(s) in this
release. Unfortunately, the automatic updater cannot reliable
determine relevant entries for this release.
-------------------------------------------------------------------
Tue Nov 7 17:32:33 UTC 2023 - Peter Simons <psimons@suse.com>
- Update language-c to version 0.9.2 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Thu Apr 6 12:23:52 UTC 2023 - Peter Simons <psimons@suse.com>
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
-------------------------------------------------------------------
Tue Jan 10 13:52:16 UTC 2023 - Peter Simons <psimons@suse.com>
- Update language-c to version 0.9.2.
## 0.9.2
- Add support for 128 bit builtin integer types
-------------------------------------------------------------------
Wed Apr 6 09:31:53 UTC 2022 - Peter Simons <psimons@suse.com>
- Update language-c to version 0.9.1.
## 0.9.1
- Support parsing an empty list of clobbers after a colon in `asm` statements
-------------------------------------------------------------------
Wed Mar 16 08:39:25 UTC 2022 - Peter Simons <psimons@suse.com>
- Update language-c to version 0.9.0.2.
## 0.9.0.2
- Correct lower bound on GHC
-------------------------------------------------------------------
Sat Feb 5 00:26:26 UTC 2022 - Peter Simons <psimons@suse.com>
- Update language-c to version 0.9.0.1 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Sun Dec 20 13:15:08 UTC 2020 - psimons@suse.com
- Update language-c to version 0.9.0.1.
## 0.9.0.1
- Scrap dependency on syb
Thanks to @vmchale
-------------------------------------------------------------------
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
- disable %{ix86} build
-------------------------------------------------------------------
Fri Sep 4 17:21:42 UTC 2020 - psimons@suse.com
- Update language-c to version 0.9.
Upstream has edited the change log file since the last release in
a non-trivial way, i.e. they did more than just add a new entry
at the top. You can review the file at:
http://hackage.haskell.org/package/language-c-0.9/src/ChangeLog
-------------------------------------------------------------------
Tue Aug 18 10:45:17 UTC 2020 - Peter Simons <psimons@suse.com>
- Replace %setup -q with the more modern %autosetup macro.
-------------------------------------------------------------------
Tue Jun 9 10:27:02 UTC 2020 - psimons@suse.com
- Add language-c at version 0.8.3.

117
ghc-language-c.spec Normal file
View File

@@ -0,0 +1,117 @@
#
# spec file for package ghc-language-c
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global pkg_name language-c
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.10.0
Release: 0
Summary: Analysis and generation of C code
License: BSD-3-Clause
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
BuildRequires: alex
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-array-prof
BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-containers-devel
BuildRequires: ghc-containers-prof
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-directory-devel
BuildRequires: ghc-directory-prof
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-filepath-prof
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-mtl-prof
BuildRequires: ghc-pretty-devel
BuildRequires: ghc-pretty-prof
BuildRequires: ghc-process-devel
BuildRequires: ghc-process-prof
BuildRequires: ghc-rpm-macros
BuildRequires: happy
ExcludeArch: %{ix86}
%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.
%package devel
Summary: Haskell %{pkg_name} library development files
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%package -n ghc-%{pkg_name}-doc
Summary: Haskell %{pkg_name} library documentation
Requires: ghc-filesystem
BuildArch: noarch
%description -n ghc-%{pkg_name}-doc
This package provides the Haskell %{pkg_name} library documentation.
%package -n ghc-%{pkg_name}-prof
Summary: Haskell %{pkg_name} profiling library
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
%description -n ghc-%{pkg_name}-prof
This package provides the Haskell %{pkg_name} profiling library.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
%install
%ghc_lib_install
%check
%cabal_test
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%files devel -f %{name}-devel.files
%doc AUTHORS AUTHORS.c2hs ChangeLog.md README.md
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
%license LICENSE
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
%changelog

3
language-c-0.10.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:67ac1b5fcd5f8ce1e226b4042ca73d16ab581df9e0e55cd430c7820c1abc6d54
size 125515

3
language-c-0.9.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:01713fb6c2174fb043d62237019d5c4f0e1b7deb185735c4b51ce97fb86ce253
size 125062

3
language-c-0.9.4.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:61ec340dca369d399fd89b54ecdc3a42e569cfd025d866f9d552c54a1e866233
size 125101

126
language-c.cabal Normal file
View File

@@ -0,0 +1,126 @@
cabal-version: 2.2
name: language-c
version: 0.10.0
x-revision: 1
license: BSD-3-Clause
license-file: LICENSE
copyright: LICENSE
maintainer: language.c@monoid.al
author: AUTHORS
tested-with:
ghc ==9.12.1 ghc ==9.10.1 ghc ==9.8.2 ghc ==9.6.6 ghc ==9.4.8
ghc ==9.2.8 ghc ==9.0.2 ghc ==8.10.7 ghc ==8.8.4 ghc ==8.6.5
ghc ==8.4.4 ghc ==8.2.2 ghc ==8.0.2
homepage: https://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
build-type: Simple
extra-doc-files:
ChangeLog.md
README.md
AUTHORS
AUTHORS.c2hs
source-repository head
type: git
location: https://github.com/visq/language-c.git
flag usebytestrings
description: Use ByteString as InputStream datatype
manual: True
flag iecfpextension
description:
Support IEC 60559 floating point extension (defines _Float128)
manual: True
library
exposed-modules:
Language.C
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
Language.C.Syntax
Language.C.Syntax.AST
Language.C.Syntax.Constants
Language.C.Syntax.Ops
Language.C.Syntax.Utils
Language.C.Parser
Language.C.Pretty
Language.C.System.Preprocess
Language.C.System.GCC
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
Language.C.Analysis.Export
build-tool-depends: happy:happy, alex:alex
hs-source-dirs: src
other-modules:
Language.C.Data.RList
Language.C.Parser.Builtin
Language.C.Parser.Lexer
Language.C.Parser.ParserMonad
Language.C.Parser.Tokens
Language.C.Parser.Parser
default-language: Haskell2010
default-extensions:
CPP DeriveDataTypeable DeriveGeneric PatternGuards BangPatterns
ExistentialQuantification GeneralizedNewtypeDeriving
ScopedTypeVariables
ghc-options: -Wall -Wno-redundant-constraints
build-depends:
base >=4.9 && <5,
array <0.6,
containers >=0.3 && <0.9,
deepseq >=1.4.0.0 && <1.6,
directory <1.4,
filepath <1.6,
mtl <2.4,
pretty <1.2.0,
process <1.7
if flag(usebytestrings)
build-depends: bytestring >=0.9.0 && <0.13
else
cpp-options: -DNO_BYTESTRING
if flag(iecfpextension)
cpp-options: -DIEC_60559_TYPES_EXT
test-suite language-c-harness
type: exitcode-stdio-1.0
main-is: test/harness/run-harness.hs
default-language: Haskell2010
build-depends:
base <5,
directory,
process,
filepath