5 Commits

3 changed files with 113 additions and 108 deletions

View File

@@ -1,106 +1,105 @@
Name: cpphs Name: cpphs
Version: 1.20.9.1 Version: 1.20.9.1
x-revision: 1 x-revision: 2
Copyright: 2004-2017, Malcolm Wallace Copyright: 2004-2017, Malcolm Wallace
License: LGPL License: LGPL
License-File: LICENCE-LGPL License-File: LICENCE-LGPL
Cabal-Version: >= 1.8 Cabal-Version: >= 1.8
Author: Malcolm Wallace <Malcolm.Wallace@me.com> Author: Malcolm Wallace <Malcolm.Wallace@me.com>
Maintainer: Malcolm Wallace <Malcolm.Wallace@me.com> Maintainer: Malcolm Wallace <Malcolm.Wallace@me.com>
Homepage: http://projects.haskell.org/cpphs/ Homepage: http://projects.haskell.org/cpphs/
bug-reports: https://github.com/malcolmwallace/cpphs/issues bug-reports: https://github.com/malcolmwallace/cpphs/issues
Synopsis: A liberalised re-implementation of cpp, the C pre-processor. Synopsis: A liberalised re-implementation of cpp, the C pre-processor.
Description: Description:
Cpphs is a re-implementation of the C pre-processor that is both Cpphs is a re-implementation of the C pre-processor that is both
more compatible with Haskell, and itself written in Haskell so more compatible with Haskell, and itself written in Haskell so
that it can be distributed with compilers. that it can be distributed with compilers.
. .
This version of the C pre-processor is pretty-much This version of the C pre-processor is pretty-much
feature-complete and compatible with traditional (K&R) feature-complete and compatible with traditional (K&R)
pre-processors. Additional features include: a plain-text mode; pre-processors. Additional features include: a plain-text mode;
an option to unlit literate code files; and an option to turn an option to unlit literate code files; and an option to turn
off macro-expansion. off macro-expansion.
Category: Development Category: Development
Build-type: Simple Build-type: Simple
Extra-Source-Files: README, LICENCE-GPL, LICENCE-commercial, CHANGELOG, docs/cpphs.1, docs/index.html Extra-Source-Files: README, LICENCE-GPL, LICENCE-commercial, CHANGELOG, docs/cpphs.1, docs/index.html
tested-with: tested-with:
ghc ==9.2.1 GHC == 9.12.2
|| ==9.0.1 GHC == 9.10.2
|| ==8.10.7 GHC == 9.8.4
|| ==8.8.4 GHC == 9.6.7
|| ==8.6.5 GHC == 9.4.8
|| ==8.4.4 GHC == 9.2.8
|| ==8.2.2 GHC == 9.0.2
|| ==8.0.2 GHC == 8.10.7
|| ==7.10.3 GHC == 8.8.4
|| ==7.8.4 GHC == 8.6.5
|| ==7.6.3 GHC == 8.4.4
|| ==7.4.2 GHC == 8.2.2
|| ==7.2.2 GHC == 8.0.2
|| ==7.0.4
flag old-locale
flag old-locale description: If true, use old-locale, otherwise use time 1.5 or newer.
description: If true, use old-locale, otherwise use time 1.5 or newer. manual: False
manual: False default: False
default: False
Library
Library Build-Depends: base >= 4.3 && <5, directory <1.4, polyparse>=1.13 && <1.14
Build-Depends: base >= 4.3 && <5, directory <1.4, polyparse>=1.13 && <1.14
if flag(old-locale)
if flag(old-locale) Build-Depends:
Build-Depends: old-locale >=1.0.0.2 && <1.1
old-locale >=1.0.0.2 && <1.1 , time >=0 && <1.5
, time >=0 && <1.5 Hs-Source-Dirs: . old
Hs-Source-Dirs: . old
else
else Build-Depends: time >=1.5 && <1.15
Build-Depends: time >=1.5 && <1.13 Hs-Source-Dirs: . new
Hs-Source-Dirs: . new
Exposed-Modules:
Exposed-Modules: Language.Preprocessor.Cpphs
Language.Preprocessor.Cpphs Language.Preprocessor.Unlit
Language.Preprocessor.Unlit Other-Modules:
Other-Modules: Language.Preprocessor.Cpphs.CppIfdef
Language.Preprocessor.Cpphs.CppIfdef Language.Preprocessor.Cpphs.HashDefine
Language.Preprocessor.Cpphs.HashDefine Language.Preprocessor.Cpphs.MacroPass
Language.Preprocessor.Cpphs.MacroPass Language.Preprocessor.Cpphs.Options
Language.Preprocessor.Cpphs.Options Language.Preprocessor.Cpphs.Position
Language.Preprocessor.Cpphs.Position Language.Preprocessor.Cpphs.ReadFirst
Language.Preprocessor.Cpphs.ReadFirst Language.Preprocessor.Cpphs.RunCpphs
Language.Preprocessor.Cpphs.RunCpphs Language.Preprocessor.Cpphs.SymTab
Language.Preprocessor.Cpphs.SymTab Language.Preprocessor.Cpphs.Tokenise
Language.Preprocessor.Cpphs.Tokenise TimeCompat
TimeCompat
Executable cpphs
Executable cpphs Build-Depends: base >=4.3 && <5, directory <1.4, polyparse>=1.13 && <1.14
Build-Depends: base>=3&&<6, directory <1.4, polyparse>=1.13 && <1.14 Main-Is: cpphs.hs
Main-Is: cpphs.hs
if flag(old-locale)
if flag(old-locale) Build-Depends:
Build-Depends: old-locale >=1.0.0.2 && <1.1
old-locale >=1.0.0.2 && <1.1 , time >=0 && <1.5
, time >=0 && <1.5 Hs-Source-Dirs: . old
Hs-Source-Dirs: . old
else
else Build-Depends: time >=1.5 && <1.15
Build-Depends: time >=1.5 && <1.13 Hs-Source-Dirs: . new
Hs-Source-Dirs: . new
Other-Modules:
Other-Modules: Language.Preprocessor.Cpphs
Language.Preprocessor.Cpphs Language.Preprocessor.Unlit
Language.Preprocessor.Unlit Language.Preprocessor.Cpphs.CppIfdef
Language.Preprocessor.Cpphs.CppIfdef Language.Preprocessor.Cpphs.HashDefine
Language.Preprocessor.Cpphs.HashDefine Language.Preprocessor.Cpphs.MacroPass
Language.Preprocessor.Cpphs.MacroPass Language.Preprocessor.Cpphs.Options
Language.Preprocessor.Cpphs.Options Language.Preprocessor.Cpphs.Position
Language.Preprocessor.Cpphs.Position Language.Preprocessor.Cpphs.ReadFirst
Language.Preprocessor.Cpphs.ReadFirst Language.Preprocessor.Cpphs.RunCpphs
Language.Preprocessor.Cpphs.RunCpphs Language.Preprocessor.Cpphs.SymTab
Language.Preprocessor.Cpphs.SymTab Language.Preprocessor.Cpphs.Tokenise
Language.Preprocessor.Cpphs.Tokenise TimeCompat
TimeCompat
Source-Repository head
Source-Repository head Type: git
Type: git Location: https://github.com/hackage-trustees/malcolm-wallace-universe
Location: https://github.com/hackage-trustees/malcolm-wallace-universe

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat May 17 07:04:51 UTC 2025 - Peter Simons <psimons@suse.com>
- Update cpphs to version 1.20.9.1 revision 2.
Upstream has revised the Cabal build instructions on Hackage.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 30 17:05:40 UTC 2023 - Peter Simons <psimons@suse.com> Thu Mar 30 17:05:40 UTC 2023 - Peter Simons <psimons@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package cpphs # spec file for package cpphs
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,7 @@ Summary: A liberalised re-implementation of cpp, the C pre-processor
License: GPL-2.0-only AND LGPL-2.1-only License: GPL-2.0-only AND LGPL-2.1-only
URL: https://hackage.haskell.org/package/%{name} URL: https://hackage.haskell.org/package/%{name}
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{name}-%{version}/revision/1.cabal#/%{name}.cabal Source1: https://hackage.haskell.org/package/%{name}-%{version}/revision/2.cabal#/%{name}.cabal
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-base-devel BuildRequires: ghc-base-devel
BuildRequires: ghc-base-prof BuildRequires: ghc-base-prof