Hello community, here is the log from the commit of package ghc-clock for openSUSE:Factory checked in at 2016-07-21 08:03:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-clock (Old) and /work/SRC/openSUSE:Factory/.ghc-clock.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-clock" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-clock/ghc-clock.changes 2016-05-31 12:24:15.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-clock.new/ghc-clock.changes 2016-07-21 08:03:28.000000000 +0200 @@ -1,0 +2,5 @@ +Sun Jul 10 17:01:52 UTC 2016 - [email protected] + +- Update to version 0.7.2 revision 0 with cabal2obs. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-clock.spec ++++++ --- /var/tmp/diff_new_pack.uF2WZH/_old 2016-07-21 08:03:29.000000000 +0200 +++ /var/tmp/diff_new_pack.uF2WZH/_new 2016-07-21 08:03:29.000000000 +0200 @@ -1,7 +1,7 @@ # -# spec file for package ghc +# spec file for package ghc-clock # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,46 +17,97 @@ %global pkg_name clock - -Name: ghc-clock +%bcond_with tests +Name: ghc-%{pkg_name} Version: 0.7.2 Release: 0 Summary: High-resolution clock functions: monotonic, realtime, cputime License: BSD-3-Clause Group: System/Libraries - Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +# Begin cabal-rpm deps: +%if %{with tests} +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-quickcheck-devel +%endif +# End cabal-rpm deps %description A package for convenient access to high-resolution clock and timer functions of different operating systems via a unified API. +POSIX code and surface API was developed by Cetin Sert in 2009. + +Windows code was contributed by Eugene Kirpichov in 2010. + +FreeBSD code was contributed by Finn Espen Gundersen on 2013-10-14. + +OS X code was contributed by Gerolf Seitz on 2013-10-15. + +Derived 'Generic', 'Typeable' and other instances for 'Clock' and 'TimeSpec' +was contributed by Mathieu Boespflug on 2014-09-17. + +Corrected dependency listing for 'GHC < 7.6' was contributed by Brian McKenna +on 2014-09-30. + +Windows code corrected by Dimitri Sabadie on 2015-02-09. + +Added 'timeSpecAsNanoSecs' as observed widely-used by Chris Done on 2015-01-06, +exported correctly on 2015-04-20. + +Imported Control.Applicative operators correctly for Haskell Platform on +Windows on 2015-04-21. + +Unit tests and instance fixes by Christian Burger on 2015-06-25. + +Removal of fromInteger : Integer -> TimeSpec by Cetin Sert on 2015-12-15. + +New Linux-specific Clocks: MonotonicRaw, Boottime, MonotonicCoarse, +RealtimeCoarse by Cetin Sert on 2015-12-15. + +Reintroduction fromInteger : Integer -> TimeSpec by Cetin Sert on 2016-04-05. + +Fixes for older Linux build failures introduced by new Linux-specific clocks by +Mario Longobardi on 2016-04-18. + +[Version Scheme] Major-'/R/'-ewrite . New-'/F/'-unctionality . +'/I/'-mprovementAndBugFixes . '/P/'-ackagingOnly + +* 'PackagingOnly' changes are made for quality assurance reasons. + %package devel Summary: Haskell %{pkg_name} library development files Group: Development/Libraries/Other +Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} -Requires: %{name} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. - %prep %setup -q -n %{pkg_name}-%{version} + %build %ghc_lib_build + %install %ghc_lib_install + +%check +%if %{with tests} +%{cabal} test +%endif + + %post devel %ghc_pkg_recache
