diff --git a/.gitignore b/.gitignore index 35a3b41..ebaa52e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /Diff-0.1.3.tar.gz /Diff-0.2.0.tar.gz /Diff-0.3.0.tar.gz +/Diff-0.3.4.tar.gz diff --git a/ghc-Diff.spec b/ghc-Diff.spec index fefd474..8463089 100644 --- a/ghc-Diff.spec +++ b/ghc-Diff.spec @@ -2,9 +2,11 @@ %global pkg_name Diff +%bcond_with tests + Name: ghc-%{pkg_name} -Version: 0.3.0 -Release: 6%{?dist} +Version: 0.3.4 +Release: 1%{?dist} Summary: O(ND) diff algorithm in Haskell License: BSD @@ -16,10 +18,18 @@ BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-array-devel BuildRequires: ghc-pretty-devel +%if %{with tests} +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-directory-devel +BuildRequires: ghc-process-devel +BuildRequires: ghc-test-framework-devel +BuildRequires: ghc-test-framework-quickcheck2-devel +%endif # End cabal-rpm deps %description -Basic implementation of the standard diff algorithm. +Implementation of the standard diff algorithm, and utilities for pretty +printing. %package devel @@ -45,6 +55,14 @@ This package provides the Haskell %{pkg_name} library development files. %install %ghc_lib_install +rm %{buildroot}%{ghc_pkgdocdir}/LICENSE + + +%check +%if %{with tests} +%cabal test +%endif + %post devel %ghc_pkg_recache @@ -55,13 +73,16 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files -%doc LICENSE +%license LICENSE %files devel -f %{name}-devel.files %changelog +* Thu Jun 23 2016 Jens Petersen - 0.3.4-1 +- update to 0.3.4 + * Wed Feb 03 2016 Fedora Release Engineering - 0.3.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index 01bcfd1..0aaf6cd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b41adb255cf762303441b75739f0777c Diff-0.3.0.tar.gz +a1806f2218e169fc6bd1c3a8ab082365 Diff-0.3.4.tar.gz