From 4784925b52f911f0e2a377ac022f7e712b798a8c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 23 Jan 2015 13:13:20 +0900 Subject: [PATCH] update to 0.3.4 --- .gitignore | 1 + ghc-unix-time.spec | 27 +++++++++++++++++++++++---- sources | 2 +- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 67ed9f4..56681b4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /unix-time-0.1.5.tar.gz /unix-time-0.1.8.tar.gz /unix-time-0.2.2.tar.gz +/unix-time-0.3.4.tar.gz diff --git a/ghc-unix-time.spec b/ghc-unix-time.spec index b578e5f..c01e633 100644 --- a/ghc-unix-time.spec +++ b/ghc-unix-time.spec @@ -2,20 +2,30 @@ %global pkg_name unix-time +%bcond_with tests + Name: ghc-%{pkg_name} -Version: 0.2.2 -Release: 3%{?dist} +Version: 0.3.4 +Release: 1%{?dist} Summary: Unix time parser/formatter and utilities License: BSD -URL: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Url: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: +BuildRequires: ghc-binary-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-old-time-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-doctest-devel +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-old-locale-devel +BuildRequires: ghc-time-devel +%endif # End cabal-rpm deps %description @@ -46,6 +56,12 @@ This package provides the Haskell %{pkg_name} library development files. %ghc_lib_install +%check +%if %{with tests} +%cabal test +%endif + + %post devel %ghc_pkg_recache @@ -62,6 +78,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Fri Jan 23 2015 Jens Petersen - 0.3.4-1 +- update to 0.3.4 + * Sat Aug 16 2014 Fedora Release Engineering - 0.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild diff --git a/sources b/sources index 867d2e0..f157a0b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a58e893cc041c4d55d54b83dd07bf7b6 unix-time-0.2.2.tar.gz +0aa95c153e22f305f9b32d0758f47e54 unix-time-0.3.4.tar.gz