From 5bea17980dbd00ddd99f46fb11f4c85b1d654e3469c72d554925a6e4c25dc31d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 6 Oct 2016 18:15:04 +0000 Subject: [PATCH] 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 --- ghc-hslua.spec | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/ghc-hslua.spec b/ghc-hslua.spec index 10bac16..0041aa3 100644 --- a/ghc-hslua.spec +++ b/ghc-hslua.spec @@ -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