refresh to cabal-rpm-2.1.0 with SPDX migration

This commit is contained in:
Jens Petersen 2023-01-24 23:54:57 +08:00
parent 886da2c686
commit 3c895029b1
2 changed files with 149 additions and 3 deletions

136
fgl-5.7.0.3.cabal Normal file
View File

@ -0,0 +1,136 @@
name: fgl
version: 5.7.0.3
x-revision: 1
license: BSD3
license-file: LICENSE
author: Martin Erwig, Ivan Lazar Miljenovic
maintainer: Ivan.Miljenovic@gmail.com
category: Data Structures, Graphs
synopsis: Martin Erwig's Functional Graph Library
description: {
An inductive representation of manipulating graph data structures.
.
Original website can be found at <http://web.engr.oregonstate.edu/~erwig/fgl/haskell>.
}
cabal-version: >= 1.10
build-type: Simple
extra-source-files:
ChangeLog
tested-with: GHC == 7.2.2, GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4,
GHC == 7.10.2, GHC == 8.0.1, GHC == 8.2.2, GHC == 8.4.3,
GHC == 8.6.2, GHC == 8.8.2, GHC == 8.10.1
source-repository head
type: git
location: https://github.com/haskell/fgl.git
flag containers042 {
manual: False
default: True
}
library {
default-language: Haskell98
exposed-modules:
Data.Graph.Inductive.Internal.Heap,
Data.Graph.Inductive.Internal.Queue,
Data.Graph.Inductive.Internal.RootPath,
Data.Graph.Inductive.Internal.Thread,
Data.Graph.Inductive.Basic,
Data.Graph.Inductive.Example,
Data.Graph.Inductive.Graph,
Data.Graph.Inductive.Monad,
Data.Graph.Inductive.NodeMap,
Data.Graph.Inductive.PatriciaTree,
Data.Graph.Inductive.Query,
Data.Graph.Inductive.Tree,
Data.Graph.Inductive.Monad.IOArray,
Data.Graph.Inductive.Monad.STArray,
Data.Graph.Inductive.Query.ArtPoint,
Data.Graph.Inductive.Query.BCC,
Data.Graph.Inductive.Query.BFS,
Data.Graph.Inductive.Query.DFS,
Data.Graph.Inductive.Query.Dominators,
Data.Graph.Inductive.Query.GVD,
Data.Graph.Inductive.Query.Indep,
Data.Graph.Inductive.Query.MST,
Data.Graph.Inductive.Query.MaxFlow,
Data.Graph.Inductive.Query.MaxFlow2,
Data.Graph.Inductive.Query.Monad,
Data.Graph.Inductive.Query.SP,
Data.Graph.Inductive.Query.TransClos,
Data.Graph.Inductive
other-modules:
Paths_fgl
build-depends: base >= 4.3 && < 4.17
, transformers
, array
if flag(containers042)
build-depends: containers >= 0.4.2
, deepseq >= 1.1.0.0 && < 1.5
else
build-depends: containers < 0.4.2
if impl(ghc >= 7.2) && impl(ghc < 7.6)
build-depends:
ghc-prim
ghc-options: -Wall
}
test-suite fgl-tests {
default-language: Haskell98
type: exitcode-stdio-1.0
build-depends: fgl
, base
, QuickCheck >= 2.8 && < 2.15
, hspec >= 2.1 && < 2.8
, containers
hs-source-dirs: test
fgl-arbitrary
main-is: TestSuite.hs
other-modules: Data.Graph.Inductive.Arbitrary
, Data.Graph.Inductive.Graph.Properties
, Data.Graph.Inductive.Proxy
, Data.Graph.Inductive.Query.Properties
ghc-options: -Wall
}
benchmark fgl-benchmark {
if flag(containers042)
buildable: True
else
buildable: False
default-language: Haskell98
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: benchmark.hs
other-modules: Data.Graph.Inductive.Proxy
build-depends: fgl
, base
, microbench
, deepseq
ghc-options: -Wall
}

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-2.0.9
# generated by cabal-rpm-2.1.0
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name fgl
@ -9,10 +9,10 @@
Name: ghc-%{pkg_name}
Version: 5.7.0.3
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Martin Erwig's Functional Graph Library
License: BSD
License: BSD-3-Clause
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
@ -21,11 +21,18 @@ Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-array-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-transformers-devel
%if %{with ghc_prof}
BuildRequires: ghc-array-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-transformers-prof
%endif
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-hspec-devel
@ -120,6 +127,9 @@ This package provides the Haskell %{pkg_name} profiling library.
%changelog
* Thu Feb 16 2023 Jens Petersen <petersen@redhat.com> - 5.7.0.3-5
- refresh to cabal-rpm-2.1.0 with SPDX migration
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.7.0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild