[ghc-attoparsec] update to 0.11.3.4

Jens Petersen petersen at fedoraproject.org
Mon Jan 26 05:28:28 UTC 2015


commit a61015dd8eb6ef299fe9386893bfec3c4a6398b7
Author: Jens Petersen <petersen at redhat.com>
Date:   Mon Jan 26 14:16:37 2015 +0900

    update to 0.11.3.4

 .gitignore          |    1 +
 ghc-attoparsec.spec |   32 +++++++++++++++++++++++---------
 sources             |    2 +-
 3 files changed, 25 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fe18593..8b4c1f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
 /attoparsec-0.10.1.1.tar.gz
 /attoparsec-0.10.2.0.tar.gz
 /attoparsec-0.10.4.0.tar.gz
+/attoparsec-0.11.3.4.tar.gz
diff --git a/ghc-attoparsec.spec b/ghc-attoparsec.spec
index af9848f..f33f05f 100644
--- a/ghc-attoparsec.spec
+++ b/ghc-attoparsec.spec
@@ -2,15 +2,17 @@
 
 %global pkg_name attoparsec
 
+%bcond_with tests
+
 Name:           ghc-%{pkg_name}
 # part of haskell-platform-2013.2+
-Version:        0.10.4.0
-Release:        4%{?dist}
+Version:        0.11.3.4
+Release:        1%{?dist}
 Summary:        Fast combinator parsing for bytestrings and text
 
 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
+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
@@ -19,21 +21,27 @@ BuildRequires:  ghc-array-devel
 BuildRequires:  ghc-bytestring-devel
 BuildRequires:  ghc-containers-devel
 BuildRequires:  ghc-deepseq-devel
+BuildRequires:  ghc-scientific-devel
 BuildRequires:  ghc-text-devel
+%if %{with tests}
+BuildRequires:  ghc-QuickCheck-devel
+BuildRequires:  ghc-test-framework-devel
+BuildRequires:  ghc-test-framework-quickcheck2-devel
+%endif
 # End cabal-rpm deps
 
 %description
-A fast parser combinator library, aimed particularly at dealing
-efficiently with network protocols and complicated text/binary
-file formats.
+A fast parser combinator library, aimed particularly at dealing efficiently
+with network protocols and complicated text/binary file formats.
 
 
 %package devel
 Summary:        Haskell %{pkg_name} library development files
+Provides:       %{name}-static = %{version}-%{release}
 Requires:       ghc-compiler = %{ghc_version}
 Requires(post): ghc-compiler = %{ghc_version}
 Requires(postun): ghc-compiler = %{ghc_version}
-Requires:       %{name} = %{version}-%{release}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
 
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
@@ -51,6 +59,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
 
@@ -64,7 +78,7 @@ This package provides the Haskell %{pkg_name} library development files.
 
 
 %files devel -f %{name}-devel.files
-%doc examples README.markdown
+%doc README.markdown examples
 
 
 %changelog
diff --git a/sources b/sources
index ca06494..7905413 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2b9ec5768797e8c649bf36efa9ef97e2  attoparsec-0.10.4.0.tar.gz
+95917e525a6d2a6a81be51cd816e4ca1  attoparsec-0.11.3.4.tar.gz


More information about the scm-commits mailing list