2013-10-30 23:31:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package ghc-hslua
|
|
|
|
#
|
2017-02-22 19:02:02 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-10-30 23:31:22 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-05-02 12:02:18 +02:00
|
|
|
|
2013-10-30 23:31:22 +01:00
|
|
|
%global pkg_name hslua
|
2016-07-17 01:26:32 +02:00
|
|
|
%bcond_with tests
|
|
|
|
Name: ghc-%{pkg_name}
|
2017-12-21 20:52:25 +01:00
|
|
|
Version: 0.9.3
|
2013-10-30 23:32:43 +01:00
|
|
|
Release: 0
|
2013-10-30 23:31:22 +01:00
|
|
|
Summary: A Lua language interpreter embedding in Haskell
|
2015-05-02 12:02:18 +02:00
|
|
|
License: MIT
|
2017-08-17 14:47:38 +02:00
|
|
|
Group: Development/Libraries/Haskell
|
|
|
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
2016-07-17 01:26:32 +02:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
2013-10-30 23:31:22 +01:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2016-07-17 01:26:32 +02:00
|
|
|
BuildRequires: ghc-bytestring-devel
|
2017-12-21 20:52:25 +01:00
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-exceptions-devel
|
|
|
|
BuildRequires: ghc-fail-devel
|
|
|
|
BuildRequires: ghc-mtl-devel
|
2016-07-17 01:26:32 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2017-12-21 20:52:25 +01:00
|
|
|
BuildRequires: ghc-text-devel
|
2016-07-17 01:26:32 +02:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
BuildRequires: ghc-quickcheck-instances-devel
|
2017-12-21 20:52:25 +01:00
|
|
|
BuildRequires: ghc-tasty-devel
|
|
|
|
BuildRequires: ghc-tasty-expected-failure-devel
|
|
|
|
BuildRequires: ghc-tasty-hunit-devel
|
|
|
|
BuildRequires: ghc-tasty-quickcheck-devel
|
2016-07-17 01:26:32 +02:00
|
|
|
%endif
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%description
|
2017-12-21 20:52:25 +01:00
|
|
|
The Foreign.Lua module is a wrapper of Lua language interpreter as described on
|
|
|
|
<https://www.lua.org/ lua.org>.
|
2016-07-17 01:26:32 +02:00
|
|
|
|
2017-12-21 20:52:25 +01:00
|
|
|
This package contains a full Lua interpreter version 5.3.4. If you want to link
|
|
|
|
it with a system-wide Lua installation, use the 'system-lua' flag.
|
2013-10-30 23:31:22 +01:00
|
|
|
|
2017-12-21 20:52:25 +01:00
|
|
|
<https://github.com/hslua/hslua-examples Example programs> are available in a
|
|
|
|
separate repository.
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
2017-08-11 10:57:53 +02:00
|
|
|
Group: Development/Libraries/Haskell
|
2016-07-17 01:26:32 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2013-10-30 23:32:43 +01:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
2015-04-07 20:56:54 +02:00
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2015-04-07 20:56:54 +02:00
|
|
|
|
2013-10-30 23:31:22 +01:00
|
|
|
%build
|
2017-12-21 20:52:25 +01:00
|
|
|
%define cabal_configure_options -f-system-lua
|
2013-10-30 23:31:22 +01:00
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
2016-07-17 01:26:32 +02:00
|
|
|
%check
|
2016-10-06 20:15:04 +02:00
|
|
|
%cabal_test
|
2016-07-17 01:26:32 +02:00
|
|
|
|
2013-10-30 23:31:22 +01:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%doc COPYRIGHT
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
2017-12-21 20:52:25 +01:00
|
|
|
%doc CHANGELOG.md README.md
|
2013-10-30 23:31:22 +01:00
|
|
|
|
|
|
|
%changelog
|