[ghc-libmpd] update to cblrpm-0.8.11
Jens Petersen
petersen at fedoraproject.org
Tue Jun 10 08:11:50 UTC 2014
commit b5b5a9ce57de0714c8e88455c7ffcf7e82162b18
Author: Jens Petersen <petersen at redhat.com>
Date: Tue Jun 10 17:11:42 2014 +0900
update to cblrpm-0.8.11
ghc-libmpd.spec | 28 +++++++++++++++++++++++++---
1 files changed, 25 insertions(+), 3 deletions(-)
---
diff --git a/ghc-libmpd.spec b/ghc-libmpd.spec
index 4f47c5f..a5e8356 100644
--- a/ghc-libmpd.spec
+++ b/ghc-libmpd.spec
@@ -2,15 +2,20 @@
%global pkg_name libmpd
+%bcond_with tests
+
+# no useful debuginfo for Haskell packages without C sources
+%global debug_package %{nil}
+
Name: ghc-%{pkg_name}
Version: 0.8.0.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Haskell MPD client library
# README states LGPL 2.1
License: LGPLv2
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
@@ -24,6 +29,13 @@ BuildRequires: ghc-old-locale-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-utf8-string-devel
+%if %{with tests}
+BuildRequires: ghc-HUnit-devel
+BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-data-default-devel
+BuildRequires: ghc-hspec-devel
+BuildRequires: ghc-unix-devel
+%endif
# End cabal-rpm deps
%description
@@ -32,10 +44,11 @@ A client library for MPD, the Music Player Daemon (<http://www.musicpd.org/>).
%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.
@@ -53,6 +66,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
@@ -70,6 +89,9 @@ This package provides the Haskell %{pkg_name} library development files.
%changelog
+* Tue Jun 10 2014 Jens Petersen <petersen at redhat.com> - 0.8.0.2-5
+- update to cblrpm-0.8.11
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8.0.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list