[ghc-xss-sanitize] cblrpm-0.8.11

Jens Petersen petersen at fedoraproject.org
Fri Jun 13 01:54:41 UTC 2014


commit 9072ac828c33e5453ae7c009bbbb15ecb75b9917
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 13 10:54:34 2014 +0900

    cblrpm-0.8.11

 ghc-xss-sanitize.spec |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/ghc-xss-sanitize.spec b/ghc-xss-sanitize.spec
index 9bf99d5..897a668 100644
--- a/ghc-xss-sanitize.spec
+++ b/ghc-xss-sanitize.spec
@@ -2,9 +2,14 @@
 
 %global pkg_name xss-sanitize
 
+%bcond_with tests
+
+# no useful debuginfo for Haskell packages without C sources
+%global debug_package %{nil}
+
 Name:           ghc-%{pkg_name}
 Version:        0.3.5.2
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Sanitize untrusted HTML to prevent XSS attacks
 
 License:        BSD
@@ -21,6 +26,10 @@ BuildRequires:  ghc-network-devel
 BuildRequires:  ghc-tagsoup-devel
 BuildRequires:  ghc-text-devel
 BuildRequires:  ghc-utf8-string-devel
+%if %{with tests}
+BuildRequires:  ghc-HUnit-devel
+BuildRequires:  ghc-hspec-devel
+%endif
 # End cabal-rpm deps
 
 %description
@@ -52,6 +61,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,9 +80,13 @@ This package provides the Haskell %{pkg_name} library development files.
 
 
 %files devel -f %{name}-devel.files
+%doc README.md
 
 
 %changelog
+* Fri Jun 13 2014 Jens Petersen <petersen at redhat.com> - 0.3.5.2-3
+- cblrpm-0.8.11
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.5.2-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list