[ghc-network] update to 2.4.2.2 with cblrpm-0.8.11

Jens Petersen petersen at fedoraproject.org
Wed Jun 4 07:23:15 UTC 2014


commit b801ff5d11b62b48397d5226e53bfaaad07cbda1
Author: Jens Petersen <petersen at redhat.com>
Date:   Wed Jun 4 16:22:23 2014 +0900

    update to 2.4.2.2 with cblrpm-0.8.11

 .gitignore       |    1 +
 ghc-network.spec |   25 +++++++++++++++++++++----
 sources          |    2 +-
 3 files changed, 23 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 45ed8c4..8a51edb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ network-2.2.1.7.tar.gz
 /network-2.3.0.5.tar.gz
 /network-2.3.0.11.tar.gz
 /network-2.4.1.2.tar.gz
+/network-2.4.2.2.tar.gz
diff --git a/ghc-network.spec b/ghc-network.spec
index 965f8fe..3f69f92 100644
--- a/ghc-network.spec
+++ b/ghc-network.spec
@@ -2,15 +2,17 @@
 
 %global pkg_name network
 
+%bcond_with tests
+
 Name:           ghc-%{pkg_name}
 # part of haskell-platform
-Version:        2.4.1.2
-Release:        31%{?dist}
-Summary:        Network library
+Version:        2.4.2.2
+Release:        1%{?dist}
+Summary:        Low-level networking interface
 
 License:        BSD
 URL:            http://hackage.haskell.org/package/%{pkg_name}
-Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
+Source0:        http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-rpm-macros
@@ -18,6 +20,12 @@ BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-parsec-devel
 BuildRequires:  ghc-unix-devel
+%if %{with tests}
+BuildRequires:  ghc-HUnit-devel
+BuildRequires:  ghc-test-framework-devel
+BuildRequires:  ghc-test-framework-hunit-devel
+BuildRequires:  ghc-test-framework-quickcheck2-devel
+%endif
 # End cabal-rpm deps
 
 %description
@@ -48,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
 
@@ -65,6 +79,9 @@ This package provides the Haskell %{pkg_name} library development files.
 
 
 %changelog
+* Wed Jun 04 2014 Jens Petersen <petersen at redhat.com> - 2.4.2.2-1
+- update to 2.4.2.2 with cabalrpm-0.8.11
+
 * Mon Mar 17 2014 Jens Petersen <petersen at redhat.com> - 2.4.1.2-31
 - bump release over haskell-platform
 
diff --git a/sources b/sources
index e9e785a..e9d570f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-032075c35dea5d23923af3928f9a5511  network-2.4.1.2.tar.gz
+ef57169f445f33bfe553c25a7496cec8  network-2.4.2.2.tar.gz


More information about the scm-commits mailing list