Synchronize builds with devel:languages:haskell:lts:7.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=17
This commit is contained in:
Peter Simons 2016-10-06 18:15:04 +00:00 committed by Git OBS Bridge
parent cf69d22151
commit 5bea17980d

View File

@ -23,13 +23,13 @@ Version: 0.4.1
Release: 0
Summary: A Lua language interpreter embedding in Haskell
License: MIT
Group: System/Libraries
Group: Development/Languages/Other
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
# Begin cabal-rpm deps:
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-rpm-macros
BuildRequires: lua51-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with tests}
BuildRequires: ghc-HUnit-devel
@ -39,8 +39,6 @@ BuildRequires: ghc-hspec-devel
BuildRequires: ghc-quickcheck-instances-devel
BuildRequires: ghc-text-devel
%endif
# End cabal-rpm deps
BuildRequires: lua51-devel
%description
The Scripting.Lua module is a wrapper of Lua language interpreter as described
@ -56,9 +54,9 @@ Summary: Haskell %{pkg_name} library development files
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires: lua51-devel
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
Requires: lua51-devel
%description devel
This package provides the Haskell %{pkg_name} library development files.
@ -66,21 +64,15 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
%build
%define cabal_configure_options -fsystem-lua
%ghc_lib_build
%install
%ghc_lib_install
%check
%if %{with tests}
%{cabal} test
%endif
%cabal_test
%post devel
%ghc_pkg_recache