|
|
|
@ -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 <petersen@redhat.com> - 0.4.1-1
|
|
|
|
|
- update to 0.4.1
|
|
|
|
|
|
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.13-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|