From 4dc772385b3d9e6463f4865b6430e782433638cf4ae4859dce907fb542ab48cd Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 27 May 2024 13:00:25 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-hourglass revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hourglass?expand=0&rev=49 --- ghc-hourglass.changes | 6 +++ ghc-hourglass.spec | 4 +- hourglass.cabal | 91 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 100 insertions(+), 1 deletion(-) create mode 100644 hourglass.cabal diff --git a/ghc-hourglass.changes b/ghc-hourglass.changes index d5aa6fa..ac8492c 100644 --- a/ghc-hourglass.changes +++ b/ghc-hourglass.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun May 26 20:03:14 UTC 2024 - Peter Simons + +- Update hourglass to version 0.2.12 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Thu Mar 30 17:06:58 UTC 2023 - Peter Simons diff --git a/ghc-hourglass.spec b/ghc-hourglass.spec index 75f657d..e815ad6 100644 --- a/ghc-hourglass.spec +++ b/ghc-hourglass.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-hourglass # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ Summary: Simple performant time related library 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: ghc-Cabal-devel BuildRequires: ghc-base-devel BuildRequires: ghc-base-prof @@ -84,6 +85,7 @@ 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 diff --git a/hourglass.cabal b/hourglass.cabal new file mode 100644 index 0000000..72b9c62 --- /dev/null +++ b/hourglass.cabal @@ -0,0 +1,91 @@ +Name: hourglass +Version: 0.2.12 +x-revision: 1 +Synopsis: simple performant time related library +Description: + Simple time library focusing on simple but powerful and performant API + . + The backbone of the library are the Timeable and Time type classes. + . + Each Timeable instances can be converted to type that has a Time instances, + and thus are different representations of current time. +License: BSD3 +License-file: LICENSE +Copyright: Vincent Hanquez +Author: Vincent Hanquez +Maintainer: vincent@snarc.org +Category: Time +Stability: experimental +Build-Type: Simple +Homepage: https://github.com/vincenthz/hs-hourglass +Cabal-Version: >=1.10 +extra-source-files: README.md + , CHANGELOG.md + , tests/TimeDB.hs + +Library + Exposed-modules: Time.Types + , Time.System + , Time.Compat + , Data.Hourglass + , Data.Hourglass.Types + , Data.Hourglass.Epoch + , Data.Hourglass.Compat + , System.Hourglass + Other-modules: Data.Hourglass.Time + , Data.Hourglass.Format + , Data.Hourglass.Diff + , Data.Hourglass.Local + , Data.Hourglass.Calendar + , Data.Hourglass.Zone + , Data.Hourglass.Internal + , Data.Hourglass.Utils + Build-depends: base >= 4 && < 5 + , deepseq + ghc-options: -Wall -fwarn-tabs + Default-Language: Haskell2010 + if os(windows) + cpp-options: -DWINDOWS + Build-depends: Win32 + Other-modules: Data.Hourglass.Internal.Win + else + Other-modules: Data.Hourglass.Internal.Unix + c-sources: cbits/unix.c + +Test-Suite test-hourglass + type: exitcode-stdio-1.0 + hs-source-dirs: tests + Main-is: Tests.hs + Build-Depends: base >= 3 && < 5 + , mtl + , tasty + , tasty-quickcheck + , tasty-hunit + , hourglass + , deepseq + -- to test against some other reference + , time < 1.10 + , old-locale + ghc-options: -Wall -fno-warn-orphans -fno-warn-missing-signatures + Default-Language: Haskell2010 + if os(windows) + cpp-options: -DWINDOWS + +Benchmark bench-hourglass + hs-source-dirs: tests + Main-Is: Bench.hs + type: exitcode-stdio-1.0 + Default-Language: Haskell2010 + Build-depends: base >= 4 && < 5 + , bytestring + , gauge + , mtl + , deepseq + , hourglass + -- to benchmark against other reference + , time + , old-locale + +source-repository head + type: git + location: https://github.com/vincenthz/hs-hourglass