diff --git a/.gitignore b/.gitignore index b86e4e1..82c3b43 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /zlib-bindings-0.1.0.1.tar.gz /zlib-bindings-0.1.1.1.tar.gz /zlib-bindings-0.1.1.3.tar.gz +/zlib-bindings-0.1.1.5.tar.gz diff --git a/ghc-zlib-bindings.spec b/ghc-zlib-bindings.spec index 95eceef..05c3d03 100644 --- a/ghc-zlib-bindings.spec +++ b/ghc-zlib-bindings.spec @@ -2,36 +2,42 @@ %global pkg_name zlib-bindings +%bcond_with tests + Name: ghc-%{pkg_name} -Version: 0.1.1.3 -Release: 5%{?dist} +Version: 0.1.1.5 +Release: 1%{?dist} Summary: Low-level bindings to the zlib package 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 # Begin cabal-rpm deps: BuildRequires: ghc-bytestring-devel BuildRequires: ghc-zlib-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-hspec-devel +%endif # End cabal-rpm deps %description -Provides necessary functions for producing a streaming interface. -This is used for example by zlib-conduit and zlib-enum. +Deprecated in favor of streaming-commons. %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 zlib-bindings library development files. +This package provides the Haskell %{pkg_name} library development files. %prep @@ -46,6 +52,12 @@ This package provides the Haskell zlib-bindings library development files. %ghc_lib_install +%check +%if %{with tests} +%cabal test +%endif + + %post devel %ghc_pkg_recache @@ -62,6 +74,9 @@ This package provides the Haskell zlib-bindings library development files. %changelog +* Fri Jan 23 2015 Jens Petersen - 0.1.1.3-1 +- update to 0.1.1.5 + * Sat Aug 16 2014 Fedora Release Engineering - 0.1.1.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild diff --git a/sources b/sources index bfc0267..83736f8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d0a535c01d6773e9ef9318e43707601c zlib-bindings-0.1.1.3.tar.gz +c8c3d5e20a5c46612f0715f777a2823e zlib-bindings-0.1.1.5.tar.gz