Accepting request 517341 from home:dimstar:Factory

- Fix build with the new lua package layout by specifying
  --extra-include-dirs based on lua.pc.

OBS-URL: https://build.opensuse.org/request/show/517341
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-hslua?expand=0&rev=22
This commit is contained in:
Peter Simons 2017-08-17 09:51:00 +00:00 committed by Git OBS Bridge
parent 365d80578c
commit 8a5426037c
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Aug 17 09:35:36 UTC 2017 - dimstar@opensuse.org
- Fix build with the new lua package layout by specifying
--extra-include-dirs based on lua.pc.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com

View File

@ -24,7 +24,7 @@ Release: 0
Summary: A Lua language interpreter embedding in Haskell Summary: A Lua language interpreter embedding in Haskell
License: MIT License: MIT
Group: Development/Languages/Haskell Group: Development/Languages/Haskell
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
BuildRequires: ghc-bytestring-devel BuildRequires: ghc-bytestring-devel
@ -64,7 +64,7 @@ This package provides the Haskell %{pkg_name} library development files.
%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 --extra-include-dirs=$(pkg-config --variable=includedir lua)
%ghc_lib_build %ghc_lib_build
%install %install