From 2aceaad9819ae1727ebd1111d7dbb6e78079332c Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 28 Jan 2015 15:09:44 +0900 Subject: [PATCH] cblrpm refresh --- ghc-yaml.spec | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/ghc-yaml.spec b/ghc-yaml.spec index 955c41e..af3de48 100644 --- a/ghc-yaml.spec +++ b/ghc-yaml.spec @@ -2,14 +2,16 @@ %global pkg_name yaml +%bcond_with tests + Name: ghc-%{pkg_name} Version: 0.8.8.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Support for parsing and rendering YAML documents License: BSD -URL: http://hackage.haskell.org/package/%{pkg_name} -Source0: http://hackage.haskell.org/package/%{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 @@ -27,13 +29,18 @@ BuildRequires: ghc-transformers-devel BuildRequires: ghc-unordered-containers-devel BuildRequires: ghc-vector-devel BuildRequires: pkgconfig(yaml-0.1) +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-directory-devel +BuildRequires: ghc-hspec-devel +%endif # End cabal-rpm deps %description Provides support for parsing and emitting Yaml documents. The package is broken down into two modules. "Data.Yaml" provides a high-level -interface based around the JSON datatypes provided by the aeson package. +interface based around the JSON datatypes provided by the 'aeson' package. "Text.Libyaml" provides a lower-level, streaming interface. For most users, "Data.Yaml" is recommended. @@ -68,7 +75,13 @@ rm -r libyaml %install %ghc_lib_install -%ghc_fix_dynamic_rpath yaml2json +%ghc_fix_dynamic_rpath json2yaml yaml2json + + +%check +%if %{with tests} +%cabal test +%endif %post devel @@ -84,11 +97,14 @@ rm -r libyaml %files devel -f %{name}-devel.files -%{_bindir}/yaml2json %{_bindir}/json2yaml +%{_bindir}/yaml2json %changelog +* Wed Jan 28 2015 Jens Petersen - 0.8.8.2-5 +- cblrpm refresh + * Sat Aug 16 2014 Fedora Release Engineering - 0.8.8.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild