From 14778dc5fa0c1b1cbb7aa165a62ab1ecc329607f Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 22 Jan 2023 22:30:17 +0800 Subject: [PATCH] update to 0.2 refresh to cabal-rpm-2.1.0 with SPDX migration --- .gitignore | 1 + data-clist-0.1.2.3.cabal | 33 --------------------------------- ghc-data-clist.spec | 30 +++++++++++++++++++++++------- sources | 2 +- 4 files changed, 25 insertions(+), 41 deletions(-) delete mode 100644 data-clist-0.1.2.3.cabal diff --git a/.gitignore b/.gitignore index ebbffda..f624a47 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /data-clist-0.1.2.3.tar.gz +/data-clist-0.2.tar.gz diff --git a/data-clist-0.1.2.3.cabal b/data-clist-0.1.2.3.cabal deleted file mode 100644 index ad028e0..0000000 --- a/data-clist-0.1.2.3.cabal +++ /dev/null @@ -1,33 +0,0 @@ -Name: data-clist -Synopsis: Simple functional ring type. -Description: Simple functional bidirectional ring type. - - Given that the ring terminiology clashes with certain - mathematical branches, we're using the term CList or - CircularList instead. -Version: 0.1.2.3 -x-revision: 1 -License: BSD3 -License-File: LICENSE -Author: John Van Enk -Maintainer: Jeremy Huffman , John Van Enk -Stability: experimental -Category: Data Structures -Cabal-Version: >= 1.6 -Build-Type: Simple -Homepage: https://github.com/sw17ch/data-clist - -source-repository head - type: git - location: git://github.com/sw17ch/data-clist.git - -Library - Build-Depends: base >= 4 && < 5, - deepseq >= 1.1 && < 1.5, - QuickCheck >= 2.4 && < 2.15 - - Exposed-Modules: - Data.CircularList - - ghc-options: -Wall - hs-source-dirs: src diff --git a/ghc-data-clist.spec b/ghc-data-clist.spec index 5ded2a7..bef8431 100644 --- a/ghc-data-clist.spec +++ b/ghc-data-clist.spec @@ -1,27 +1,34 @@ -# 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 data-clist %global pkgver %{pkg_name}-%{version} +%bcond_without tests + Name: ghc-%{pkg_name} -Version: 0.1.2.3 -Release: 12%{?dist} +Version: 0.2 +Release: 1%{?dist} Summary: Simple functional ring type -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 -Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -BuildRequires: ghc-QuickCheck-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-deepseq-devel +%if %{with ghc_prof} BuildRequires: ghc-base-prof BuildRequires: ghc-deepseq-prof +%endif +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +%endif # End cabal-rpm deps %description @@ -68,7 +75,6 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} -cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -84,6 +90,12 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm install +%check +%if %{with tests} +%cabal_test +%endif + + %files -f %{name}.files # Begin cabal-rpm files: %license LICENSE @@ -105,6 +117,10 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal %changelog +* Sun Jan 22 2023 Jens Petersen - 0.2-1 +- https://hackage.haskell.org/package/data-clist-0.2/changelog +- refresh to cabal-rpm-2.1.0 with SPDX migration + * Thu Jul 21 2022 Fedora Release Engineering - 0.1.2.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/sources b/sources index 702e634..daf522f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (data-clist-0.1.2.3.tar.gz) = efd547b36452f46943778059b5b7854932b9459faa3e196bae9571504ad4f4cb71f07c5b2f8d05faa1752147704008ac1091d391e341b6775534e250939e63c4 +SHA512 (data-clist-0.2.tar.gz) = d47b7208170b05610c3e37e02e9a807fe20023413c3498148164fdae1b306c1bde30a76a0a99dd2b2d1d0fabbf2ebe487454cf296cdc558bbf56a89c9db52f14