1
0
forked from pool/ghc-hourglass

Accepting request 1178295 from devel:languages:haskell

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1178295
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-hourglass?expand=0&rev=14
This commit is contained in:
Ana Guerrero 2024-06-03 15:45:02 +00:00 committed by Git OBS Bridge
commit d8337cb0f9
3 changed files with 100 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun May 26 20:03:14 UTC 2024 - Peter Simons <psimons@suse.com>
- 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 <psimons@suse.com>

View File

@ -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

91
hourglass.cabal Normal file
View File

@ -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 <vincent@snarc.org>
Author: Vincent Hanquez <vincent@snarc.org>
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