diff --git a/.gitignore b/.gitignore index 503d70c..c08146d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /hslua-0.3.6.1.tar.gz /hslua-0.3.10.tar.gz /hslua-0.3.13.tar.gz +/hslua-0.4.1.tar.gz diff --git a/ghc-hslua.spec b/ghc-hslua.spec index f2bb288..4cf5bef 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -2,9 +2,11 @@ %global pkg_name hslua +%bcond_with tests + Name: ghc-%{pkg_name} -Version: 0.3.13 -Release: 3%{?dist} +Version: 0.4.1 +Release: 1%{?dist} Summary: Lua language interpreter embedding in Haskell License: MIT @@ -15,7 +17,15 @@ Patch0: hslua-0.3.10-pkgconfig-lua-5.1.patch BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: -BuildRequires: ghc-mtl-devel +BuildRequires: ghc-bytestring-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-QuickCheck-devel +BuildRequires: ghc-hspec-contrib-devel +BuildRequires: ghc-hspec-devel +BuildRequires: ghc-quickcheck-instances-devel +BuildRequires: ghc-text-devel +%endif BuildRequires: pkgconfig(lua-5.1) # End cabal-rpm deps @@ -53,6 +63,14 @@ rm src/*.c src/*.h %install %ghc_lib_install +rm %{buildroot}%{ghc_pkgdocdir}/COPYRIGHT + + +%check +%if %{with tests} +%cabal test +%endif + %post devel %ghc_pkg_recache @@ -63,13 +81,17 @@ rm src/*.c src/*.h %files -f %{name}.files -%doc COPYRIGHT +%license COPYRIGHT %files devel -f %{name}-devel.files +%doc CHANGELOG.md README.md examples %changelog +* Thu Jun 23 2016 Jens Petersen - 0.4.1-1 +- update to 0.4.1 + * Wed Feb 03 2016 Fedora Release Engineering - 0.3.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index 182dc37..84330eb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4fc85cad09464dd767747041202e5b17 hslua-0.3.13.tar.gz +6f73759272a938ce091be463676b3e84 hslua-0.4.1.tar.gz