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